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

Notices

Reply
 
Search this Thread
Old 08-26-2007, 10:13 PM   #1
KenHirst
LQ Newbie
 
Registered: Aug 2007
Distribution: Pink Tie
Posts: 2

Rep: Reputation: 0
/home/user not found at login


I have begun to set up Pink Tie Linux as a home offince server for windows machines on a home office. While working on getting Samba configured (success), I did something that has affected my login.
I get the message:
Your home directory is listed as '/home/khirst' but it does not appear to exist. Do you want to log in with the /(root)directory as your home directory?
If I select Yes, the session fails with a message saying User's $HOME/.dmrc file is being ignored.
If I try to login in with SSH, I get:
Could not chdir to home directory /home/khirst: Premission denied
-bash: /home/khirst/.bash_profile: Permission denied.

I can log in as root by either method, only user login is affected.

Windows acces by samba works for public directories, but fails for access to /home/khirst, Message: \\Server\khirst is not accesible.

I have confirmed (while logged in as root) that /home/khirst does inded exist. I have tried several different permissions on both /home and /home/khirst (644, 755, even 777).

Why would this directory be not found at login? What should the proper permissions be for these two directories?
 
Old 08-26-2007, 10:59 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
The directory should belong to the user it is for, and generally the group "users". So start with:

Code:
sudo chmod khirst:users /home/khirst
A sane default for permissions would be 755. This gives the user full control, and everyone else read/execute. You may want to use 700 though, which will give only the owner access to the directory. You definitely don't want to be doing 777 for home directories.

Also, check that the files inside of /home/khirst have the proper permissions and ownership, not just the base directory. If the individual files are set improperly, then you can use the "-R" switch on both chmod and chown to make them work recursively, or in other words, change all of the files that are contained within the directory they are pointed to.
 
Old 08-28-2007, 10:25 PM   #3
KenHirst
LQ Newbie
 
Registered: Aug 2007
Distribution: Pink Tie
Posts: 2

Original Poster
Rep: Reputation: 0
Cool Success

Changing the permissions of the directories did not work, but...

chmod -R 755 /home/khirst
chown -R khirst:users /home/khirst

DID work, I can now log in properly again. So the invisible .files inside the directory must have had the wrong permissions or ownership. I just wanted to follow up in case others have this problem.

Thanks for the help!!

Ken
 
  


Reply


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
user login: could not resolve xml:readwrite: /home/.gconf flipwhy Linux - Newbie 4 08-20-2006 01:57 PM
How to get home directory of a login user lucky6969b Programming 5 02-20-2006 01:46 AM
Load kde profile from /mnt/removable/user instead of /home/user preacher.ca Linux - General 3 12-02-2005 03:00 PM
User Login Problem: "command not found" unless root! DreameR-X Linux - General 15 12-21-2004 11:27 AM
nis client login - user home dir not fnd synfield Linux - Networking 0 03-27-2003 03:51 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration