Unable to get a login shell


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Unable to get a login shell
# 1  
Old 01-07-2001
Network

I have started using SunOS 5.6 as an administrator. By mistake I changed the default shell entry for root in /etc/passwd file to /bin/ksh. Since there is no such shell available in the bin directory, I am not able to log on to the system.(This happens even in the console)

The error is - no shell.

Can anyone help me


Thanks
# 2  
Old 01-07-2001
The fix is somewhat awkward but not very hard. Commands are bold and include the prompt for reference. From memory;

Put your Solaris 2.6 CD in and boot off the cd:
ok boot cdrom
You can get the ok prompt by pressing stop & a simultaneously

Go through the installer and answer all the questions (don't worry, we aren't installing/deleting anything). When you get near the end it will give you the option to EXIT (maybe CANCEL). Do this. Don't worry too much about answering any of the questions properly, just don't click FINISH. The last question asks if you want to auto-reboot or manual-reboot after installation. If you get this far go back. This will drop you on a root shell in the upper right corner. The mouse pointer must be in this window for you to type.
Depending on how your disk is partitioned you may need to mount /etc. Do this only if you cannot open /etc/passwd
# mount /etc
You may need to replace /etc with the device

Edit the password file and make sure the path is correct
# vi /etc/passwd

Bounce the system
# reboot

I hope this helps.
-Chuck
# 3  
Old 01-07-2001
You could also mount the /bin directory (device) as root and copy a valid shell (ksh or other) to /bin/ksh. There are a couple of ways to fix this problem.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Unable to login with any user

Hi Please I need help on trying to login on a solaris 10, blade server. login as: root Using keyboard-interactive authentication. Password: I even try a normal user, I do not get the prompt. I suspect the reason could be that /varis at 98% because I have configure email alerts to warn me... (9 Replies)
Discussion started by: fretagi
9 Replies

2. Shell Programming and Scripting

Script as login shell (passing args to login shell)

Hello all, for security reasons my compagny imposes that my script be launch remotly via ssh under the users login shell. So serverA launches the ssh command to serverB which has a local user with my script as a login shell. Local script works like a charm on his own. serverB$ grep... (20 Replies)
Discussion started by: maverick72
20 Replies

3. How to Post in the The UNIX and Linux Forums

Unable to see my threads when i login

Hello, Is there a way to display all of the posts I have authored? Many thanks in advance. (2 Replies)
Discussion started by: Anamika08
2 Replies

4. Red Hat

Unable to login after patching

Hello, Sorry for posting here..i know there is another section for Urgent...However, i could not locate it... Issue: ) After patching rhel 5.8 with couple of patches. When user is trying to login via putty . They get login promt and when they type their username, screen get freezed kindaa... (3 Replies)
Discussion started by: saurabh84g
3 Replies

5. Forum Support Area for Unregistered Users & Account Problems

Unable to login

Hi, It has been a while since I logged into Unix.com and I have forgotten my userID and password. Please help. Thanks, Ananth. (1 Reply)
Discussion started by: Unregistered
1 Replies

6. Solaris

unable to login Solaris 10

I have inherited a solaris 10 server. I went to log into it the other day over the console connection, and after sucessfully entering the password, I was booted back to the login prompt with no errors visible. If I enter an incorect password, the console displays 'incorrect password' and kicks... (8 Replies)
Discussion started by: Sol-nova
8 Replies

7. Solaris

Unable to login

Hi, I am doing Active Directory(Win 2008) and UNIX(Solaris 10) integration. I was unable to create home directory for the Active Directory users on the first login. So i added other session required pam_mkhomedir.so skel=/etc/skel umask=0022 to pam.conf in /etc/pam.conf. But now I am... (2 Replies)
Discussion started by: sathya47
2 Replies

8. UNIX for Dummies Questions & Answers

AIX Unable to Login

Was OK on AIX5.2. Have installed AIX 5.3 ML02 and now only root can log in. Other users get "You are not allowed to login at this time." Once in as root, it's possible to su or 'su -' to other users. All user parameters are OK. (0 Replies)
Discussion started by: skinthegoat
0 Replies

9. Forum Support Area for Unregistered Users & Account Problems

Unable to login

Hi Admin/Moderator, I am unable to login with my user id "chanakyahere", even it is not accepting my mail id to which i got one reply aso.. it is saying that i suppied "mail id that is not recognised".. please look forward regarding this problem.. i joined on last saturday i.e on... (1 Reply)
Discussion started by: Chanakya
1 Replies

10. UNIX for Dummies Questions & Answers

unable to login HELP!!!

Hi, I have installed for the first time sun solaris on my pc and I am trying to learn unix. I created a new user using the following steps: -create a new group : groupadd work -created a new user: useradd -g work -d /export/home -s /usr/bin/ksh gbruno (i checked the path of the shell... (3 Replies)
Discussion started by: giulianob
3 Replies
Login or Register to Ask a Question