Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-21-2005, 08:45 AM   #1
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
cant login. "no directory /home/chris!" (SOLVED)

I have problems acessing my samba shares on my home directory from windowsXP

i often have to modify privilages and access rights.

i do this every time i need to move some files to my windows machine.

i use the commands..

chmod 755 /home/chris/
chmod 755 /home/chris/local_share/
chmod 744 /home/chris/local_share/*
(normally, all files in /home/chris are set to chmod 700)

normally, this allows all my local share files readable from windows.

however this time it did not work.

Now, i i cant even login, i get errors about no such firectory /home/<username>

even if i chmod 777 /home/ and /home/chris/

i still get errors about /home/vhruis not existing

here are my access rights and ownders of ome key files and directorys.

drwxr-xr-x   8 root users    86 Nov 21 14:26 /home
drwxr-xr-x   2 chris users    6 Nov 21 14:26 /home/chris
WHY canot any users login !!!???

i can only login as root.

(attempting to login via the console, NOT graphically)

i edited /etc/passwd and changed chris home directory to /tmp/chris/
created the directory /tmp/chris with ownder=chris, group=users and chmod 754.

i still cannot even login to /tmp !!!!!!


maybe my permissions of / are wrong ? how do you get / set them ? what should they be ?


chmod 755 /

fixed it.. although i have no idea how / got changed, ive looked through my back histyory and i did not make any typing mistakes !

Last edited by qwijibow; 11-21-2005 at 09:42 AM.
Old 11-21-2005, 09:48 PM   #2
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Rep: Reputation: 31
I'm glad that you figured it out... If a guru didn't know then I sure as heck wouldn't have been able to help...
Old 11-28-2005, 06:42 PM   #3
LQ Newbie
Registered: Nov 2005
Posts: 1

Rep: Reputation: 0
THANK YOU!!!!!!!
i had the exact problem... so weird, dont know how it could happen..
well thank you so much i typed 'chmod 755 /' and it worked! presto... good stuff
Old 09-04-2006, 01:37 AM   #4
LQ Newbie
Registered: Sep 2006
Posts: 1

Rep: Reputation: 0
I had this problem today.

While I was able to solve it with:

# chmod 755 /

I was still curious as to how in heck the permissions of / had been set incorrectly. A little detective work and I discovered that the drive had been mounted by another *nix OS and had the mount point's permissions set to 700.

This could also happen if any of you run a live distro with some scripts which are well-meaning but just plain wrong.

Apologies for bumping up this thread, but I hope the info is useful to someone pulling their hair out looking for rootkits and/or intrusions like I was.
Old 09-04-2006, 08:58 AM   #5
Registered: Mar 2006
Location: belguim
Distribution: fedora, mandriva, suse
Posts: 148

Rep: Reputation: 15
thanks for the warning. but you should watch out with those permissions on / still. it gives people read+execute. might not be the best way. try setting it back to a lower lever (eg: chmod 744 /).
Old 02-26-2009, 12:58 PM   #6
LQ Newbie
Registered: Dec 2003
Distribution: Fedora Core 3
Posts: 29

Rep: Reputation: 15
Originally Posted by shorun View Post
thanks for the warning. but you should watch out with those permissions on / still. it gives people read+execute. might not be the best way. try setting it back to a lower lever (eg: chmod 744 /).
That's wrong. The x bit on a directory means you can enter it. It has nothing to do with execution.


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
Is "~/" assumed to be a user's home directory ColKurtz Linux - Newbie 3 01-25-2005 09:49 PM
permissions of my /home/"user" directory error darkleaf Linux - Software 10 09-26-2004 02:08 AM
"No write access to $HOME directory" Arthaus Linux - Newbie 2 01-12-2004 07:22 PM
Does anyone know the origin of using "~" to represent the user's home directory? GonzoJohn General 6 10-14-2003 03:42 PM
RH9 NIS login error: "home directory does not exist" airrr Linux - Networking 2 08-06-2003 01:47 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration