LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
LinkBack Search this Thread
Old 07-20-2006, 12:25 PM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 447

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, 12:57 PM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

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, 01:04 PM   #3
burninGpi
Member
 
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:
Code:
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 01:05 PM.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 05:37 AM
Proposed solution for "status" (aka "problem solved") indicator demerson3 LQ Suggestions & Feedback 12 04-08-2006 02:15 PM
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 04:51 AM
I can't "service squid start" , and chkconfig squid on not working Niceman2005 Linux - Software 0 11-10-2004 08: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 09:22 AM


All times are GMT -5. The time now is 08:02 AM.

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