LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 04-22-2007, 06:24 AM   #1
carnold
Member
 
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, 06:45 AM   #2
gmckinney
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...

gm...
 
Old 04-22-2007, 01:14 PM   #3
carnold
Member
 
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, 05:17 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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, 08:44 PM   #5
carnold
Member
 
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, 10:50 PM   #6
mechdave
Member
 
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.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 05:15 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
Open Source Consulting | Domain Registration