LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to set users parameters (https://www.linuxquestions.org/questions/linux-software-2/how-to-set-users-parameters-57441/)

fkarenzi 04-30-2003 05:30 AM

How to set users parameters
 
have redhat 8.0 on my machine and if i log in as any user other than root the system tells me that "no /home/$user" directory ,but if i log as root and check the home directory, i find that the users are there .how can i handle this problem ??.

thanks a lot

jharris 04-30-2003 05:37 AM

What are the permissions on users's home directory and on /home itself?

cheers

Jamie...

fkarenzi 04-30-2003 06:49 AM

the permissions on /home/user are 777 and still not get the user "user" able to log in either localy or by telnet. can it be a problem of login shell set to no login ??.

best regards

jharris 04-30-2003 09:27 AM

And what about the perms on /home?

Jamie...

wapcaplet 04-30-2003 10:10 AM

Try (as root):

chmod 754 /home
chmod 754 /home/username (for each username)

If /home is not readable (execute permission on the directory) by the user, I don't think it'll let anyone login.

It's probably not a good idea to use chmod 777 on anything. You don't want just anyone in the world writing/deleting stuff in your home directory :)

jharris 04-30-2003 10:16 AM

I would have said 711 or 755 for /home and 700 for /home/user unless you want either your group or anyone to list your directory contents. You need at least 711 on /home/user if you are planning to use anything like a public_html directory.

cheers

Jamie...

wapcaplet 04-30-2003 11:43 AM

True, 711 would probably be better. I guess it's a matter of preference, or how secure you need the machine to be. For a home machine with only a couple users, allowing other users to read your home dir might be ok.


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