Visit The New, Modern Unix Linux Community

cannot login after changing login shell

Thread Tools Search this Thread
Operating Systems HP-UX cannot login after changing login shell
# 1  
Data cannot login after changing login shell

Hello Everyone,

I am a newbie in unix. I was practicing shell scripts on hp unix machine.

I changed my current login shell (Korn) to Bourne shell giving the following command.

$ chsh username /usr/bash

I am using secure shell client for accessing the hp ux server.

After which i disconnected from the server. Now problem is when i am trying to login again to the hp ux machine it's not accepting the password.

i guess i am in trouble and pls help me to find solution to it.

# 2  
is it /bin/bash or /usr/bin/bash ?
Ask the sysadmin to correct the shell or reset password
# 3  

sorry is /usr/bin/bash

is thr anyother way other than contacting the system admin to resolve this issue.
# 4  
I dont think so. You would have to run chsh again to change your shell, and you cannot do that as you cant login - because your shell is non existent. Your admin would have to fix this for you.
# 5  
Thanks the issue got resolved.

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #759
Difficulty: Medium
Commodore filed for bankruptcy in 1994 and its assets were purchased by a German PC manufacturer who created the subsidiary company Amiga Technologies.
True or False?

8 More Discussions You Might Find Interesting

1. 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

2. Post Here to Contact Site Administrators and Moderators

Changing login details

Dear Administrators! I would like to change my username for this forum, would it be possible? Regards FR (1 Reply)
Discussion started by: fretagi
1 Replies

3. Shell Programming and Scripting

Changing the Login Path

Hi frnds! i m installing a software named 'Gamit' by using bash. bt i recieved the follwoing error: .. removing any existing Makefiles or archive files from libraries directories /root/Documents/ISP/Gamit_10.4/com/rmfresh: Permission denied. .. removing any existing Makefiles or... (1 Reply)
Discussion started by: Engr. Shoaib
1 Replies

4. HP-UX

Changing the default login directory of a user

I want to change the default login directory of a user from /home/user to a new directory. how can i do this? thanks in advance....:) (1 Reply)
Discussion started by: smahe23
1 Replies

5. Ubuntu

Changing an image between grub and GDM Login

Sorry. I know this has been asked before but I am not finding anything that works and after a couple of days I am getting frustrated. I am using Ubuntu 10.04 i386 I know how to change the Grub menu image. I have the login screen image and theme changed as well with GDM. What I am trying to... (2 Replies)
Discussion started by: Nix_Cola
2 Replies

6. Solaris

error message rmclomv ... SC Login Failure for user Please login:

Hello World ~ HW : SUN Fire V240 OS : Solaris 8 Error message prompts 'rmclomv ... SC login failure ...' on terminal. and Error Message prompts continually 'SC Login Failure for user Please login:' on Single Mode(init S) The System is in normal operation, though In case of rain, Can... (1 Reply)
Discussion started by: lifegeek
1 Replies

7. UNIX for Dummies Questions & Answers

Changing default login shell

Hi everybody, The problem is quite simple, I want to change my default shell which is /bin/csh to /bin/bash. I have looked online for solutions to my problem, but to no avail. I have tried chsh, but it tells me this: chsh: can only change local entries; use ypchsh instead. I use ypchsh,... (7 Replies)
Discussion started by: z1dane
7 Replies

8. UNIX for Dummies Questions & Answers

changing login prompt on redhat

Hi... Can anyone help! I am in dire need to change the "login:" prompt to "username:" any ideas? Thanks in advance :) (6 Replies)
Discussion started by: juilan
6 Replies

Featured Tech Videos