LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   login shell not started properly (http://www.linuxquestions.org/questions/linux-software-2/login-shell-not-started-properly-568761/)

powah 07-12-2007 10:30 AM

login shell not started properly
 
I set the login shell to my command line interface program cli.

$ su - admin
$ ps -ef|grep cli
root 32059 32058 0 10:17 pts/1 00:00:00 cli
root 32184 32183 0 10:17 ? 00:00:00 /bin/sh /usr/local/cli/Ldir/C
root 32195 32184 0 10:17 ? 00:00:00 /bin/sh /usr/local/cli/Ldir/C
root 32196 32184 0 10:17 ? 00:00:00 /bin/sh /usr/local/cli/Ldir/C
root 32197 32184 0 10:17 ? 00:00:00 /bin/sh /usr/local/cli/Ldir/C
cli is started properly for user "admin".

$ /usr/sbin/useradd test -p "\$1\$nrKQ3Kh3\$2Hr1BYPHbdM68lXCzPqpj/" -s /usr/local/cli/cli -u 0 -o -g 0
$ su - test
$ ps -ef|grep cli
root 5178 5177 0 10:28 pts/1 00:00:00 -cli

Why cli is not started properly for user "test"?

unSpawn 07-12-2007 02:22 PM

Please don't add a user "test" to your system. It's a name that's used often to probe for accounts. Making it a an equivalent of the root account is only making it worse. It's in violation of any form of common sense and best practices. I realise this isn't helping you solve your problem: just see it as helping you keep your problem from getting any bigger :-]

Mara 07-13-2007 03:21 PM

Moved: This thread is more suitable in Linux-Software and has been moved accordingly to help your thread/question get the exposure it deserves.

I second the unSpawn's post. Also, have you added /usr/local/cli/cli to /etc/shells?


All times are GMT -5. The time now is 08:54 PM.