LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-30-2003, 05:30 AM   #1
fkarenzi
LQ Newbie
 
Registered: Apr 2003
Location: Butare Rwanda
Posts: 4

Rep: Reputation: 0
Unhappy 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
 
Old 04-30-2003, 05:37 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
What are the permissions on users's home directory and on /home itself?

cheers

Jamie...
 
Old 04-30-2003, 06:49 AM   #3
fkarenzi
LQ Newbie
 
Registered: Apr 2003
Location: Butare Rwanda
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
Old 04-30-2003, 09:27 AM   #4
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
And what about the perms on /home?

Jamie...
 
Old 04-30-2003, 10:10 AM   #5
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
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
 
Old 04-30-2003, 10:16 AM   #6
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
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...
 
Old 04-30-2003, 11:43 AM   #7
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
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.
 
  


Reply



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
Set Up network parameters on card? krazeybeautiful Linux - Wireless Networking 1 10-11-2005 09:14 AM
how to set module parameters lordofring Programming 2 09-02-2005 06:07 AM
How to add the parameters "set LD_ASSUME_KERNEL=2.4.19" chinesealbert Linux - General 2 07-01-2004 05:45 AM
How to set a Gnome theme as default for all users and future users ? MDesigner Linux - Newbie 1 06-28-2004 11:12 AM
Is there a way to set up the default look for all new users? HGeneAnthony Linux - General 1 03-17-2003 04:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:36 AM.

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
Open Source Consulting | Domain Registration