LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Suse/Novell (http://www.linuxquestions.org/questions/suse-novell-60/)
-   -   Home folder permissions (http://www.linuxquestions.org/questions/suse-novell-60/home-folder-permissions-548017/)

carnold 04-22-2007 06:24 AM

Home folder permissions
 
Hello all! I am running SLED10 (based on suse 10). Can i change the permissions on my home folder and have those permissions "inherited" to all folders and files below the home folder? If so, what command do i use, chown <something>. The man pages arent clear on domain users. So chown {option} domain/user:{group} {folder/file} would be the syntax? But how do you specify all files below a folder?

gmckinney 04-22-2007 06:45 AM

Check the man page specifically the -R option (recursive). If you are the owner of the folder and its content then using the recursive option should do what you are wanting...

gm...

carnold 04-22-2007 01:14 PM

When i run:
chown -R domain\user:domain\domain users
I get 'invalid users'
I am trying to do this on a domain users home folder on the SLED box

jschiwal 04-22-2007 05:17 PM

Where are you getting domain from?
Look at the chmod man page and the coreutils info manual.
chmod user:group -R directory

You can change your default group in YaST2 -> Users -> Edit -> Details -> Default Group (Drop down list).
Then new files will be created with that default group. If you want to change the default permissions, you can add a "umask" command to your ~/.profile startup script. Then files will be created with that mask.

carnold 04-22-2007 08:44 PM

The user in question is a member of the domain. Hence my first post:
chown {option} domain/user:{group} {folder/file}

mechdave 04-22-2007 10:50 PM

RE:Home folder permissions
 
The GNU chown program does not have a option for a domain, you actually have to be logged into the box and have the required permissions on the files and directories that you are trying to change. The man page is here syntax is chown option user:group file , file being either directory or file name. To recursively use the -R option, that will descend into your directory and change every file in it to mirror the parent's owner and group settings.


All times are GMT -5. The time now is 09:47 AM.