Find the answer to your Linux question:
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 ...
  1. #1
    Just 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.

  2. #2
    Just Joined!
    Join Date
    Feb 2011
    Posts
    5

    Smile

    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

  3. #3
    Just Joined!
    Join Date
    May 2006
    Posts
    73
    Does the file have read permissions for the group or only for owner?

  4. #4
    Just 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.

  5. #5
    Just 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.

  6. #6
    Just Joined!
    Join Date
    Feb 2011
    Posts
    5
    Welcome. Yes sarmed makes a good point , I forgot to mention that intially. THanks sarmed!

  7. #7
    Just 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...