Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a mount point /data (/dev/sdc) I want all users in a certain group to be able to write to that folder. I created a group called data and added the users to that group.
I then:
Code:
chown -R root:data /data
user 'chris' wasn't able to write so I:
Code:
chmod -Rv 775 /data
Still nothing, tried:
Code:
chmod g+rwx /data
LS -la shows:
Code:
[root@fedora ~]# ls -la /data
total 32
drwxrwxr-x 4 root data 4096 Dec 22 10:17 .
drwxr-xr-x 24 root root 4096 Dec 22 07:32 ..
drwxrwxr-x 2 root data 4096 Dec 22 10:17 FC5Stuff
drwx------ 2 root data 16384 Dec 21 12:08 lost+found
Am i missing something? Does it matter if the group i created is the users prinary group? I think that if I 777 the directory it would work but i don't want everyone to access it, just a few users.
I don't see anything wrong. In particular, any member of group data should be able to write to /data/FC5stuff. Just to make sure nothing weird is going on (that I missed), I suggest you verify that root can write to this folder.
Beyond that, verify that chris is actually a member of group data by having that user type groups, which will list all groups that user is a member of. Or you can do this yourself by suing to that user.
Beyond that, be aware that groups are assigned at login. This means if a user is logged on when you change group assignments, that user will need to log out and log back in before the change takes effect.
Thanks blackhole54 for the help! Well since I am running linux and never have to reboot. I had never logged off user chris and once i did it all worked.
Yes, I've been caught by that before. You can change the permissions and add a group to a user, but until they logout and login it does not take effect.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.