LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-17-2010, 01:44 PM   #1
shah_dan
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Rep: Reputation: 0
/home permission 666


Hi,
By mistake I change the permission of /home folder to 666.
when I run a $ls -la /home, it is showing following
?----------- ? ? ? ? ?.
?----------- ? ? ? ? ?..
?----------- ? ? ? ? ?dl3k

dl3k is user name and having a folder in /home directory..

now I cannot access/open the dl3k folder as a user.

I change the persmission to
# chmod 644 /home (default setting)
# chown -R dl3k /home

but still cannot access the content of /home folder as a user...

please help me asap..
 
Old 03-17-2010, 01:48 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
You must chmod folders 755, 644 is NOT the default setting.
So as root
chmod 755 /home
chown root:root /home
 
Old 03-17-2010, 02:07 PM   #3
shah_dan
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks buddy..
chown root:root /home
means that root will have Rd/Wr access while user with have restriction ??


Due to the /home problem..now I cannot open the terminal..

Idoit,
Dan

Last edited by shah_dan; 03-17-2010 at 02:10 PM.
 
Old 03-17-2010, 02:17 PM   #4
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
root owns the home directory, the user owns the users directory inside home. You need execute permissions to open a directory.

If the user owns home then one user can get at other users files.

The commands I gave you are all you need, as long as you haven't made any files in users directory owned by root.

If you can't open a terminal reboot and go into rescue mode or edit the kernel options by adding a space then 1 to the end of the line.

This will give you root access, do the commands
chmod 755 /home
chown root:root /home

then either
reboot
or
telinit 5

and log in as normal.
 
Old 03-17-2010, 02:33 PM   #5
shah_dan
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Original Poster
Rep: Reputation: 0
thats great buddy..

thanks for saving my a**
 
  


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
[SOLVED] 'Could not chdir to home directory /home/[user]: Permission denied' arashi256 Linux - Newbie 25 11-11-2011 10:29 AM
NFS problem: "Could not chdir to home directory /home/USER: Permission denied" sumanc Linux - Server 4 07-22-2010 05:12 PM
permission of home directory binish Linux - Server 0 10-12-2006 12:58 AM
why "permission denied" though chmod 666? baosheng Linux - Networking 12 10-11-2005 12:40 AM
Errot 403 on 666 permission file baosheng Linux - Software 4 10-10-2005 06:00 AM


All times are GMT -5. The time now is 11:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration