LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:03 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration