LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-31-2009, 07:57 AM   #1
deepak_cucek
Member
 
Registered: Feb 2008
Posts: 36

Rep: Reputation: 16
Question can not SU to a user in one scenario


am using suse 10 , in that i created a user usr1 , and and made the home directory of the user as blank [by editing the passwd file]

if you try to login with this user , system will automatically take "/" as the home directory .

but if you try to su to the user it is throwing error that "user doesnt exist"

what is the reason for this behaviour
 
Old 07-31-2009, 08:25 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Jessie (Fluxbox WM)
Posts: 1,388
Blog Entries: 52

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Defaulting to the root directory is actually an error behaviour (because the home directory could not be found). If for some reason you really want the home directory to be root (!), then don't leave the entry blank, make it '/'.

The security configurations for login and su are not necessarily the same. They used to be in /etc/login.defs (a relevant flag would be DEFAULT_HOME). Now that authentication is done by pam, they have separate configurations in /etc/pam.d/login and /etc/pam.d/su, or else in separate entries in /etc/pam.conf.
 
  


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
suggests scenario for HA sheikhsa Linux - Networking 1 10-04-2006 07:28 AM
new crash scenario Trio3b Mandriva 1 03-05-2005 01:20 PM
install scenario Jeebizz Slackware 8 10-14-2004 04:54 AM
Fireall scenario??? Mr-TY Linux - Security 1 07-01-2004 05:35 PM
my email scenario jerrypoon Linux - Networking 3 12-24-2003 03:16 AM


All times are GMT -5. The time now is 05:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration