Find the answer to your Linux question:
Results 1 to 2 of 2
I'm using Fedora 6 and have setup a samba share. I'm sharing out the /home directory. I want to give a user read/write access to another users folder: I want ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2006
    Posts
    82

    user rights to another directory


    I'm using Fedora 6 and have setup a samba share. I'm sharing out the /home directory. I want to give a user read/write access to another users folder:

    I want to give user1 access to user2 directory
    /home/user1
    /home/user2

    How do I do that?

    Thanks.

  2. #2
    Just Joined!
    Join Date
    Nov 2006
    Posts
    3

    try out this

    In the samba server, pls change the permission of /home/user2 directory to 770

    chmod 770 /home/user2 ( do this as user2 )

    and as root, execute the command

    usermod -G user2 user1 --- This is for making user2 as a secondary group for user1 ( in other words user1 will be added as a member of group user2 )

    Now in samba share configuration, put the below mentioned entry.

    [sharename]
    comment = Insert a comment here
    valid users = @user2

Posting Permissions

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