Weird Problems with User Home Directory , Asking for help

Matthew Seaman m.seaman at
Mon Mar 22 14:52:48 UTC 2010

Hash: SHA1

On 22/03/2010 12:46:06, Aaron Lewis wrote:
> Matthew Seaman wrote:
>> On 22/03/2010 07:11:23, Aaron Lewis wrote:
>>> Hello BSD hackers,
>>>    I have a strange problems with user's home directory , if i log in
>>> through ssh , everything's fine.
>>>    But on virtual terminals , it tolds me:
>>>    no home directory
>>>    Logging in with home dir "/"
>>>    Does anyone has any ideas ?
>>>    Here's some debug information
>>> =========================================
>>> %> grep aaron /etc/passwd
>>> aaron:*:1001:1001:frozen:/home/aaron:/usr/local/bin/bash
>>> %> ls -ladh /home/aaron/
>>> drwxr-xr-x  3 aaron aaron   512B Mar  5 22:36 /home/aaron
>>> ============================================
>> What are the settings for
>>     ChallengeResponseAuthentication
>>     UsePam
>> in your /etc/ssh/sshd_config?
> Nothing found , or commented out.

Commented out means using the default setting -- which is 'yes' for both
of those.  ie. sshd is using the PAM system.  Which means that PAM is
probably working just fine.

>> What are the contents of /etc/pam.d/login and /etc/pam.d/sshd ?
> # grep -v -e "^#" /etc/pam.d/sshd | sed '/^$/d'
> auth        sufficient        no_warn no_fake_prompts
> auth        requisite    no_warn allow_local
> auth        required        no_warn try_first_pass
> account        required
> account        required
> account        required
> session        required
> password    required        no_warn try_first_pass

These are also the default settings for sshd -- which as you say is working.

> # grep -v -e "^#" /etc/pam.d/login  | sed '/^$/d'
> auth        sufficient        no_warn
> auth        include        system
> account        requisite
> account        required
> account        include        system
> session        include        system
> password    include        system

Again, this is the default for login.   I should have asked you for the
contents of /etc/pam.d/system as well, but if you say it's not been
modified I'll believe you.  Hmmmm...

> It's all fresh install , did i do something wrong ? It's really strange
> .. never met before.

Something is a bit fubar somewhere, yes.  From the symptoms you
described,  the immediate suspect would be the PAM system, but there are
no obvious configuration problems with what you've shown me.

Is there anything notable in /var/log/auth.log from the failed console
logins?  Can you try gratuitously creating another user account and
seeing if that is affected in the same way, or indeed if it makes any
difference to the original user account?



- -- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP:     Ramsgate
                                                  Kent, CT11 9PW
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla -


More information about the freebsd-questions mailing list