Click to See Complete Forum and Search --> : filesystem permissions


knaapie
12-30-2001, 08:40 PM
Hi,
I am trying to set up a separate filesystem for data. I have ceated the filesystem during install (RH 7.2).
When I am root, it works ok, but I want to use it as other users as well. Somehow I can't get other users the permissions to write.

I have set the group to 'data' and the permissions to 775. I figured that all the users that are member of the 'data' group should now be able to write in the directory, but it's still not possible.
What am I doing wrong?

camelrider
12-30-2001, 08:49 PM
Initially, chmod with the -R switch should do the trick, BUT, when more files are created in this directory are they owned by group "data" or by the user who created them?

knaapie
12-30-2001, 08:54 PM
I already tried to do chmod -R, but still cannot create files within the directories on the filesystem.

If I change the permissions to 777, I am able to create files, though.
I am not sure about the permissions on created files. If they are created with enough permissions for the group 'data', that'll be fine for me.

bdl
12-30-2001, 09:28 PM
# chown -R root.data /mnt/data
# chmod -R 775 /mnt/data

These commands should do the trick. Of course, this assumes your users have been added to the 'data' group and have logged out at least once and logged back in or used the 'newgrp' command to change to the 'data' group. You can type 'groups' to verify which groups that user belongs to.

You might also consider how the filesystem is mounted and the type of filesystem. If for example, it's a FAT/FAT32 filesystem, it must be mounted in such a way to allow perms to specific groups and users.

Please be as specific as possible when posting; the type of filesystem, how it's being mounted, etc. Luck!

knaapie
12-30-2001, 09:49 PM
Logging out and back in did the trick.

Thanks! :cool: