Results 1 to 3 of 3

Thread: Samba force group question

  1. #1
    Join Date
    Aug 2011
    Beans
    54

    Samba force group question

    Over the years, I've migrated my smb settings from one version to the next and always had "force user" and "force group" under the share setups...like this:

    [home]
    comment = Home
    path = /home
    public = yes
    writable = yes
    create mask = 0660
    directory mask = 0770
    force user = don
    # force group = mythtv

    On this version, "force group" gave me errors similar to this thread:

    https://www.pickysysadmin.ca/2015/08...uthentication/

    Removing that line seems to have resolved the problem. Not sure why I've always had it,or, what it does. Is that parameter obsolete?

    Don

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

    Re: Samba force group question

    I don't know. Never used either "force whatever" myself. We always setup Unix groups and all members for a specific share are in the same group.
    For lots of locations, only the [homes] stanza is needed.
    Code:
    [homes]
      comment = Home Directories
      hosts allow = 127.0.0.1 172.22.22.0/24  
      hosts deny = 0.0.0.0/0
      browseable = yes
      guest ok = no
      writable = yes
      create mask = 0644
      directory mask = 0755
      valid users = %S
    Homes is special.

  3. #3
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    14,439
    Distro
    Kubuntu Development Release

    Re: Samba force group question

    Force user/group tells Samba to use those credentials when talking with the operating system. I've used them in the past when I was sharing an accounting application to a half-dozen users and wanted all the Linux-level file transactions to take place under a single pseudo-user.

    In your case, there's no obvious reason why you would want Linux to address the /home branch as group "mythtv". I'm actually a little puzzled as to why user "don" is the owner of /home. /home should be owned by root:root. /home/don should be owned by user "don" and by don's primary group. Usually in Ubuntu those are the same.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

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
  •