Latest LQ Deal: Linux Power User Bundle
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 04-09-2007, 11:20 PM   #1
LQ Newbie
Registered: Dec 2006
Location: sydney
Distribution: debian
Posts: 9

Rep: Reputation: 0
user permissions

When I login as a user-

I cant write to that user's /home/user

windoze@debian:~$ pwd
windoze@debian:~$ mkdir ad
mkdir: cannot create directory `ad': Permission denied

i suppose i must have done something wierd when i logged in as root.
How do i restore the permissions?

thanks in advance
Old 04-10-2007, 12:07 AM   #2
Senior Member
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
As root, do this (for now):
chown -R windoze /home/windoze
chmod 775 -R /home/windoze
This will give user windoze back ownership of his files and make the /home/windoze path rwxrwxr-x, which is the default permission when first creating a user's home path.

Last edited by Micro420; 04-10-2007 at 12:08 AM.
Old 04-10-2007, 02:05 AM   #3
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
chmod 750 -R /home/windoze
chmod 700 -R /home/windoze
depending on what the users primary group, your paranoia
level and the usage of the machine are like.

Personally I find 700 very sane. :}

Old 04-10-2007, 03:19 AM   #4
LQ Newbie
Registered: Dec 2006
Location: sydney
Distribution: debian
Posts: 9

Original Poster
Rep: Reputation: 0

i cant figure out what i did that screwed it in the first place


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 permissions VirtualDreams Linux - Security 2 02-27-2007 05:35 PM
user permissions mark_alfred Debian 7 09-10-2005 09:18 PM
User permissions dmanchepalli Red Hat 2 02-14-2005 09:23 PM
user permissions blubbfish Linux - Newbie 1 04-27-2004 02:22 PM
User Permissions BigDDave2001 Linux - Security 4 11-17-2003 06:43 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:46 AM.

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