LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   user permissions (https://www.linuxquestions.org/questions/linux-newbie-8/user-permissions-544693/)

snutter 04-09-2007 10:20 PM

user permissions
 
When I login as a user-

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

Code:

windoze@debian:~$ pwd
/home/windoze
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

Micro420 04-09-2007 11:07 PM

As root, do this (for now):
Code:

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.

Tinkster 04-10-2007 01:05 AM

Or
Code:

chmod 750 -R /home/windoze
or
Code:

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. :}



Cheers,
Tink

snutter 04-10-2007 02:19 AM

thanks

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


All times are GMT -5. The time now is 02:33 PM.