Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
SUSE / openSUSE This Forum is for the discussion of Suse Linux.


  Search this Thread
Old 04-22-2007, 07:24 AM   #1
Registered: Feb 2004
Posts: 77

Rep: Reputation: 15
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?
Old 04-22-2007, 07:45 AM   #2
LQ Newbie
Registered: Apr 2007
Location: Mims, Florida
Distribution: Multiple
Posts: 13

Rep: Reputation: 0
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...

Old 04-22-2007, 02:14 PM   #3
Registered: Feb 2004
Posts: 77

Original Poster
Rep: Reputation: 15
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
Old 04-22-2007, 06:17 PM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
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.
Old 04-22-2007, 09:44 PM   #5
Registered: Feb 2004
Posts: 77

Original Poster
Rep: Reputation: 15
The user in question is a member of the domain. Hence my first post:
chown {option} domain/user:{group} {folder/file}
Old 04-22-2007, 11:50 PM   #6
Registered: Apr 2007
Location: Adelaide, Australia
Distribution: Ubuntu 8.10 and 7.10 server
Posts: 95

Rep: Reputation: 15
Post 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.


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
how to stop system from auto resetting permissions of /home folder? gain Linux - Networking 5 08-17-2006 10:59 PM
Can't allow partion permissions for a vfat partition, mounted as my home folder DrD Linux - General 19 07-26-2006 01:26 PM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 06:23 PM
accidentally changed permissions on home folder Cinematography Linux - General 7 05-15-2005 05:32 AM
losing permissions on /home folder johnnymo Linux - Software 1 01-25-2005 10:59 PM > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 01:51 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