![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| localhost-routing not working anymore in OpenSuse v10.1 | Corvin | UNIX for Dummies Questions & Answers | 2 | 09-10-2007 10:14 AM |
| Can't detect usb thumbdrive anymore | feef | UNIX for Dummies Questions & Answers | 2 | 12-01-2005 06:38 PM |
| cannot login after changing login shell | hardesh | HP-UX | 4 | 09-13-2005 09:21 PM |
| After installing linux cannot boot PC anymore? | RellioN | Linux | 4 | 05-05-2004 08:52 AM |
| Standard login shell | Fwurm | UNIX for Dummies Questions & Answers | 4 | 11-05-2001 08:43 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
the root shell has been changed in the file /etc/passwd, basically pointing to an incorrect directory. So now every time we login as 'su' I get the message
'su: no shell' so we can't login as superuser. Is there an easy way to rectify this? please use step by step instructions/commands - I know one way is to boot off a cd on the machine in single mode and then mount the root dir and then change the file...but I'm unsure about the command line. Is there any other way? I've tried linking the path, but permission rights stopped this. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Hi
Try if u can change roots shell in /etc/passwd file, if any root currently log in, else try to machine in single user mode and mount the /, then change roots shell.
Awadhesh |
|
#3
|
||||
|
||||
|
If you have permissions, you can copy the shell to the "incorrect location"... what is the full path of the shell in /etc/passwd now?
|
|
#4
|
|||
|
|||
|
permissions dont allow me to copy bash to the 'incorrect dir'.
in /etc/passwds it's set to /sbin/bash but should have been /usr/bin/bash. |
|
#5
|
||||
|
||||
|
Have run into this before. The only thing that we could do was reboot.
1. reboot from cdrom 2. mount the '/' filesystem as /a 3. vi /a/etc/passwd and change the shell to the required value 4. save and exit 5. reboot from disk |
||||
| Google The UNIX and Linux Forums |