Results 1 to 7 of 7
I am setting up a directory for some of my users to access code in a shared folder across the filesystem. I know this should be something easy but for ...
- 02-16-2011 #1Just Joined!
- Join Date
- Dec 2010
- Location
- Key-stone state
- Posts
- 54
File access
I am setting up a directory for some of my users to access code in a shared folder across the filesystem. I know this should be something easy but for some reason the file server is being difficult.
My goal is to allow one group to be the only one to access this folder. I created the directory, used chmod to change the permission and then I used chown to change the ownership of the group. However I am unable to access the directory even though I am a member of the group.
Would it be possible to know what the procedure is to create a group folder, thanks.
- 02-18-2011 #2Just Joined!
- Join Date
- Feb 2011
- Posts
- 5
I am taking you have root....
If your using the Gnome GUI, go to Applications - System Settings - Users and Groups
Terminal
#su
#redhat-config-users
- 02-19-2011 #3Just Joined!
- Join Date
- May 2006
- Posts
- 73
Does the file have read permissions for the group or only for owner?
- 02-19-2011 #4Just Joined!
- Join Date
- Feb 2011
- Posts
- 5
Say your folder name is "/opt/share" and the group is "fileshare" Here is the command line i would run:
chgrp fileshare /opt/share
chmod o-rwx /opt/share
chmod g+rwx /opt/share
This setup should allow no one else but the owner of the folder and the members of the "fileshare" group to access this directory. You can change owners of the folder by running
chown "username" /opt/share.
- 02-24-2011 #5Just Joined!
- Join Date
- Sep 2010
- Location
- Dhaka, Bangladesh
- Posts
- 29
Thank you kernelzack.
Once that is done, do not forget to use sticky bit as well to protect the files within the group itself.
- 02-24-2011 #6Just Joined!
- Join Date
- Feb 2011
- Posts
- 5
Welcome. Yes sarmed makes a good point , I forgot to mention that intially. THanks sarmed!
- 02-24-2011 #7Just Joined!
- Join Date
- Dec 2010
- Location
- Key-stone state
- Posts
- 54
I was able to get the folder to be group accessed. For some reason the users in the group were not in the group. I ended up removing the group and folder in question. Then just recreated the folder and group under a slightly different name. It works now, weird.


Reply With Quote