Results 1 to 3 of 3

Thread: Samba force group question

  1. #1
    Join Date
    Aug 2011

    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 this:

    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:

    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?


  2. #2
    Join Date
    Mar 2010
    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.
      comment = Home Directories
      hosts allow =  
      hosts deny =
      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
    Metro Boston
    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


Posting Permissions

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