1834811 Members
2499 Online
110070 Solutions
New Discussion

Re: chsh problem

 
Karthik S S
Honored Contributor

chsh problem

Hi,

When I try to change the default login shell it gives the following error,

$ chsh /usr/bin/ksh
Can't bind library /usr/lib/libpwpauth.sl: Unresolved external.
chsh: you have no password file entry
Usage: chsh name [ shell ]

What could be the problem?

OS is 10.20 running on 712 workstation.
Pl. help

Thanks
Karthik
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
6 REPLIES 6
U.SivaKumar_2
Honored Contributor

Re: chsh problem

Hi,

$chsh myusername /usr/bin/ksh

should work.

regards,
U.SivaKumar

Innovations are made when conventions are broken
Vincent Stedema
Esteemed Contributor

Re: chsh problem

Hi,

U.SivaKumar is right. I actually think that chsh will not work on a user who is currently logged in, but I'm not sure. In that case, use vipw to edit /etc/passwd.

BTW, never set the root user's shell to /usr/bin/ksh, as your system won't come up after a reboot....

Regards,

Vincent
Karthik S S
Honored Contributor

Re: chsh problem

Even that is not working,


$ chsh sysadm /usr/bin/ksh
Can't bind library /usr/lib/libpwpauth.sl: Unresolved external.

here sysadm is the user name. I tried the same command on different machines where it works just fine ....


Karthik
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Rajeev  Shukla
Honored Contributor

Re: chsh problem

Thats right karthik, go through the man pages of chsh. It requires username whose shell u want to change.

Rajeev
U.SivaKumar_2
Honored Contributor

Re: chsh problem

Then you are missing setuid bit on /bin/chsh executable.

Do this as root.

#chmod +s /bin/chsh

regards,
U.SivaKumar
Innovations are made when conventions are broken
Karthik S S
Honored Contributor

Re: chsh problem

Hi

setuid is already set. But even as root it is giving me the same error. I know that the easy way is to manually edit the passwd file but, I wanted to know what exactly is the problem.

When I run this as root,

# chsh sysadm /usr/bin/ksh
Can't bind library /usr/lib/libpwpauth.sl: Unresolved external.

Pl. help

Thanks
Karthik
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn