Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-31-2009, 08:57 AM   #1
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, 09:25 AM   #2
Senior Member
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Stretch (Fluxbox WM)
Posts: 1,389
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.


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

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

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