-----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-----
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!