For a mounted partition with the reiserfs, you use the chmod and chgrp commands to set the owner, group owner and permissions on the mount point. You do this after it is mounted, and need to be root to do it. After that, the permissions on the directory where the partition is mounted will change when the partition is mounted.
sudo chown sl4ckw4re:data /mnt/data
sudo chmod 0777 /mnt/data
You could leave the /mnt/data partition being owned by root, but use chmod on directories owned by the respective users. For this, you would use the same owner/group/permission settings that you have for the /home partition.
For some file systems such as vfat, you need to use the "uid=" and "gid=" and "fmask=" and "dmask=" options in the mount command, and the ownership and permission settings are made for the entire partition.
If this is not a removable drive (as /dev/hdc indicates), then don't use the noauto option. You will want it to be mounted when you boot up.
If you want to have a directory where certain users can read and write to, then create a group for that directory. If you want finer control, such as allowing groupA, groupB and groupC full access, but groupD, groupE read-only access and other groups no access, then use the "setfacl" program. See your documentation on acl support for reiserfs. Your system may not support it, or the filesystem may not have been created with acl support. You also need to mount the partition with the appropriate options.
Last edited by jschiwal; 07-20-2006 at 05:51 PM.
|