Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-20-2006, 01:25 PM   #1
Registered: Oct 2005
Location: Bangladesh
Posts: 497

Rep: Reputation: 30
"chsh" and SQuid problem

Dear friends ,

I have the following two questions ,

1 ) I am using now Fedora Core 5 Distribution . Suddenly I have written the following command into my shell Promt .
"chsh -s root"
After this, when i reboot my server in next time then I can't login my server as "root" user .

In this moment Is there any solution to get rid of this problem ?

2) I want to know aboud Squid Log /var/log/squid/access.log) File .

a) Which amount of spaces the squid Log (/var/log/squid/access.log) File takes into my HDD Normailly ?

b) If I want to see the last One(1) week Log file into my (/var/log/squid/access.log) File then which command will help me to see this ?
Old 07-20-2006, 01:57 PM   #2
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (
Posts: 1,900

Rep: Reputation: 68
Login as ordinary user, run 'su -c /bin/bash' . Now read man chsh, and try to correct your mistakes.
Old 07-20-2006, 02:04 PM   #3
Registered: Mar 2006
Location: Fort McMurray, Canada
Distribution: Gentoo ~amd64
Posts: 163

Rep: Reputation: 30
download the fedora core 5 rescue cd, burn it to a disk, and boot it up. at the boot prompt, hit enter.
fill out the first two questions as needed. then say "no" to keep network interfaces down. enter "Continue" so you can edit your files. press OK next. then type:
vi /mnt/sysimage/etc/passwd
press l (as in "log") until the cursor is right of the last colon (. press "c$" (without the quotes) and type /bin/bash. press escape, and type ":wq" (again without the quotes). eject the CD and press Control-Alt-Delete. when your system reboots, you should be able to log in as root.

What went wrong:
chsh means "Change Shell". when you pass -s as an argument, it assumes the next argument is the shell you want for the current user.
chsh user means "change user's login shell", and I think that is what you meant.

I don't know about squid, sorry.

EDIT: I see I replied seven minutes too late.

Last edited by burninGpi; 07-20-2006 at 02:05 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
New SQUID user: How to clear the "access.log" and "store.log" automatically? yuzuohong Linux - Networking 2 12-02-2006 06:37 AM
Proposed solution for "status" (aka "problem solved") indicator demerson3 LQ Suggestions & Feedback 12 04-08-2006 03:15 PM
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 05:51 AM
I can't "service squid start" , and chkconfig squid on not working Niceman2005 Linux - Software 0 11-10-2004 09:18 PM
what is "S" instead of "X" in the file permission when i look at /usr/bin/chsh? Linux_interest Linux - Newbie 4 08-28-2004 10:22 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration