LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-12-2007, 10:30 AM   #1
powah
Member
 
Registered: Mar 2005
Distribution: FC, Gentoo
Posts: 276

Rep: Reputation: 30
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"?

Last edited by powah; 07-12-2007 at 10:34 AM.
 
Old 07-12-2007, 02:22 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,953
Blog Entries: 54

Rep: Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733
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 :-]
 
Old 07-13-2007, 03:21 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,533

Rep: Reputation: 148Reputation: 148
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between normal shell and login shell Manish Linux - General 7 11-14-2012 08:30 AM
Backup shell script not working properly jamespetts Linux - Networking 2 07-15-2006 11:03 AM
wrong login shell prevent root login cefs99 Linux - Security 4 05-31-2006 08:28 AM
Shell script not functioning properly jordanmc31 Programming 21 04-17-2006 06:35 AM
How to Log everything command in a root-shell started by SUDO dussel Linux - Security 13 02-21-2006 09:47 AM


All times are GMT -5. The time now is 02:26 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration