Results 1 to 6 of 6

Thread: Samba Active Directory Permissions on Share Folder

  1. #1
    Join Date
    Jun 2018
    Beans
    7

    Samba Active Directory Permissions on Share Folder

    Hey everyone, I have I think a simple question about Samba integration with AD permissions:

    We have a special folder on this Ubuntu server in which we store music for our users

    The idea is that only two users can have write permissions on the share folder, all the others should have read only.

    This is my smb.con file and also my Windows settings:

    https://imgur.com/a/0Io4SqP

    https://imgur.com/a/ecBNJpj

    So what changes do I need to perform in order for only our 2 users to be able to copy files on the folder and all domain users should have read only?

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Samba Active Directory Permissions on Share Folder

    Can't see images, but if you want different permissions via samba, the easy solution is to make 2 different "shares" - 1 for the group of users with read-only and 1 for the group with read-write.

  3. #3
    Join Date
    Jun 2018
    Beans
    7

    Re: Samba Active Directory Permissions on Share Folder

    Images can be seen by clicking on the links, simple as that.

    Unfortunately your suggestions is not valid on my scenario, we need to set this up on the same shared folder, and I am pretty sure that this can be accomplished by modifying something on the config files (represented on images)

  4. #4
    Join Date
    Feb 2010
    Location
    In My Food Forest
    Beans
    9,318

    Re: Samba Active Directory Permissions on Share Folder

    Quote Originally Posted by erudes91 View Post
    Images can be seen by clicking on the links, simple as that.

    Unfortunately your suggestions is not valid on my scenario, we need to set this up on the same shared folder, and I am pretty sure that this can be accomplished by modifying something on the config files (represented on images)
    If you'd like users to view your images, then it'd be best to use the paperclip icon in the Advanced Reply window to upload them. Some users have strict policies against visiting 3rd party sites to view images and some users don't use browsers that will load images at all. You can also post the output of the command in the first image using code tags.
    Cheers & Beers, uRock
    [SIGPIC][/SIGPIC]

  5. #5
    Join Date
    Jun 2018
    Beans
    7

    Re: Samba Active Directory Permissions on Share Folder

    Thanks for the tip, here are the images!

    sdadas.jpgSamba Proper Conf.jpg

  6. #6
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Samba Active Directory Permissions on Share Folder

    We don't use AD here. Searching these forums found this :
    https://ubuntuforums.org/showthread.php?t=874982

    Code:
    valid users=@WRITE_LIST @READ_LIST
    write list=@WRITE_LIST
    read list=@READ_LIST
    public=No
    browseable=No
    The smb.conf manpage says:
    Code:
           read list (S)
    
               This is a list of users that are given read-only access to a
               service. If the connecting user is in this list then they will not
               be given write access, no matter what the read only option is set
               to. The list can include group names using the syntax described in
               the invalid users parameter.
    
               Default: read list =
    
               Example: read list = mary, @students
    ...
           write list (S)
    
               This is a list of users that are given read-write access to a
               service. If the connecting user is in this list then they will be
               given write access, no matter what the read only option is set to.
               The list can include group names using the @group syntax.
    
               Note that if a user is in both the read list and the write list
               then they will be given write access.
    
               Default: write list =
    
               Example: write list = admin, root, @staff
    The group of users with write need to have the native Unix group permissions of rwx and g+s on all the directories. Those commands are at the "share level." I haven't tested any of this.

    Perhaps it will work? I should have posted images of the settings, so copy/paste wasn't possible, sorry.

Tags for this Thread

Bookmarks

Posting Permissions

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