LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] File ownerships with chown? FC3

[ILUG] File ownerships with chown? FC3

John Madden maddenj+ilug at skynet.ie
Thu Feb 10 13:13:25 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On (10/02/05 12:44), Frank Murphy didst pronounce:
> 
> I want to take ownership of for example: /var/pets/cat & all files 
> within, whether currently created or not, so I can read/execute as 
> "user" without having to chown every new file individually.
> 
If you want a specific user to own all the files :: 
chown -R user:group /var/pets/

If you want a specific group to own all the files :: 
chown -R root:group /var/pets/ && chmod 775 /var/pets/ 
You'll need to chmod the files in the directory separately if you don't
want them executable. If there are no other directories in /var/pets,
chmod 664 /var/pets/* will do it.

> Likewise I want to take ownership of a mountpoint (softraid) & all files 
> beneath it, automatically made to "user" whether placed there from the 
> workgroup or removable means, by user or root 24/7.
> 
Again, use of chown and chmod here will change ownership and permissions
of the files. To make all files written to the directory afterwards
owned by a specific group, you'll have to SGID the directory with chmod
aswell. On top of that, if you want it to come back in the same state
after a reboot, you'll need to man mount and find the specific options
for your filesystem to put into /etc/fstab so that ownership and
permissions are re-set on the mountpoint on boot.

- -- 
Chat ya later,

John.
- --
BOFH excuse #115: your keyboard's space bar is generating spurious keycodes.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCC130QBw+ZtKOvTIRAjJrAJ4tU3oo4MLXp/eiCJop2aA7cBrnRwCfStBk
IY7X/Dqz9lF88MdnNo7AkLM=
=yjwy
-----END PGP SIGNATURE-----



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell