1848634 Members
6833 Online
104033 Solutions
New Discussion

Re: Login

 
SOLVED
Go to solution
Francisco_29
Occasional Contributor

Login

I have a problem with login, when I login with ROOT users I can login, but when I try to login with another one the next message appears

"Unable to change directory to users/myuserid"

What can I do...?
8 REPLIES 8
Dave Johnson_1
Super Advisor

Re: Login

check the permissions on the directory the user is assigned to. They will need read and execute on the directory.

-Dave
Chris Watkins_1
Respected Contributor

Re: Login

Make sure /users/myuserid exists and has proper permissions?
Not without 2 backups and an Ignite image!
Chris Watkins_1
Respected Contributor

Re: Login

See Dave, you got me that time ;-)


<< No points for this, please >>
Not without 2 backups and an Ignite image!
Francisco_29
Occasional Contributor

Re: Login

I tried to change the directory to /users/ but the directory is empty...?
Chris Watkins_1
Respected Contributor
Solution

Re: Login

make sure the directory "users" is mode 755 (at least)

Then:

#mkdir /users/myuserid
#chown myuserid:users /users/myuserid

And try it again.
Not without 2 backups and an Ignite image!
Dave Johnson_1
Super Advisor

Re: Login

How were the userid's created. If you just edit the password file, hopefully with vipw, then you will have to create the user directorys by hand.
Simply:

mkdir /users/myuserid
chown myuserid /users/myuserid
chmod u+rwx /users/myuserid

and you should be cool.

-Dave
Jean-Louis Phelix
Honored Contributor

Re: Login

Hi,

If /users is really empty, perhaps I can also imagine that it's a mount point not currently mounted. Check also your /etc/default/security file. By default users should be able to log in with / as a home dir if their home dirs don't exist. see 'man 4 security' and look for 'ABORT_LOGIN_ON_MISSING_HOMEDIR' variable.

Regards.
It works for me (© Bill McNAMARA ...)
Fabio Ettore
Honored Contributor

Re: Login

Hi,

it sounds like if /users directory is NFS mounted because I don't want to think that /users directories were removed.
If yes before you should verify the NFS daemon is running and NFS configuration is ok.

Best regards,
Ettore
WISH? IMPROVEMENT!