LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Problems with /usr/bin/chsh (https://www.linuxquestions.org/questions/slackware-14/problems-with-usr-bin-chsh-189010/)

kbolino 06-02-2004 06:22 PM

Problems with /usr/bin/chsh
 
Okay, I downloaded and installed Slackware 9.1. When attempting to run chsh as a non-root user, I get "You may not change the shell for kbolino." (in this case, I was kbolino when executing). I didn't pay it much mind, downloaded and installed Slackware-current packages. But, I'm still getting the same problem. /usr/bin/chsh gives the following `ls -l':

-rws--x--x 1 root bin 27780 May 20 22:01 chsh*

I also notice that the setuid bit will sometimes turn itself off (?!?) but setting on/off has no effect (same message is produced). I tried changing user/group to root/root, no avail. Tried using permissions -rwsr-sr-x, no avail. No problems with `passwd' or `chfn'. Maybe someone else has encountered this problem?

320mb 06-02-2004 08:16 PM

well, what is your users default $SHELL??
Code:

which $SHELL

Ipolit 06-03-2004 05:27 AM

why you want to run chsh as an ordinary user?
the syntaxis of the command is
chsh -s /bin/..sh kbolino as root


All times are GMT -5. The time now is 06:35 PM.