Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30

Thread: samba help

  1. #11
    Join Date
    Feb 2008
    Location
    38.6272° N, 90.1978° W
    Beans
    65
    Distro
    Ubuntu

    Re: samba help

    Code:
    :~$ testparm -s
    Load smb config files from /etc/samba/smb.conf
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
    WARNING: The "syslog" option is deprecated
    Processing section "[printers]"
    Processing section "[print$]"
    Processing section "[SHARE]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    
    #Global parameters
    [global]
       dns proxy = No
       log file = /var/log/samba/log.%m
       map to guest = Bad User
       max log size = 1000
       obey pam restrictions = Yes
       pam password change = Yes
       panic action = /usr/share/samba/panic-action %d
       password chat = *...*.
       passwd program = /usr/bin/passwd %u
       security = USER
       server role = standalone server
       server string = %h server (Samba, Ubuntu)
       syslog = 0
       unix password sync = Yes
       usershare allow guests = Yes
       workgroup = GROUP
       idmap config * : backend = tdb
    
    [printers]
       browsable = No
       comment = All Printers
       create mask = 0700
       path = /var/spool/samba
       printable = Yes
    
    [print$]
       comment = Printer Drivers
       path = /var/lib/samba/printers
    
    [SHARE]
       create mask = 0664
       force directory mode = 02775
       force group = input
       path = /srv/samba/iti
       read only = No
       valid users = @input
    I have only added 1 user so far:
    Code:
    sudo useradd USER
    sudo usermod -a -G input USER
    sudo passwd USER
    sudo smbpasswd -a USER
    Set up the share:
    Code:
    sudo mkdir -p /srv/samba/iti
    sudo chmod -R 2775 /srv/samba/iti
    sudo chown root:input /srv/samba/iti
    Last edited by steveo314; September 20th, 2018 at 10:37 PM.

  2. #12
    Join Date
    Dec 2009
    Beans
    6,771

    Re: samba help

    As it turns out I have the same share definition on my test server ... well almost. The group I used was plugdev and I have a different path.

    So I created the USER user which is something I wouldn't have done - all caps, etc...the same way you did except with a different group:
    sudo useradd USER
    sudo usermod -a -G plugdev USER
    sudo passwd USER
    sudo smbpasswd -a USER
    I can connect to the server with the USER user and when I add a file it saves the way I expected it to:
    ls -al /srv/PrivateSGID | grep USER
    -rw-rw-r-- 1 USER plugdev 0 Sep 20 17:54 USERfile.txt
    That's a long winded way of saying I cannot reproduce your symptoms.

    I see nothing wrong with what you have done or how your smb.conf is set up so I will have to think about this a bit to see how I can force my own setup to fail with your error message.

  3. #13
    Join Date
    Feb 2008
    Location
    38.6272° N, 90.1978° W
    Beans
    65
    Distro
    Ubuntu

    Re: samba help

    I didn't use USER for a username

    I need to check the permissions on my share the way you did. That may be my issue.

  4. #14
    Join Date
    Feb 2008
    Location
    38.6272° N, 90.1978° W
    Beans
    65
    Distro
    Ubuntu

    Re: samba help

    When I enter this command using your example:
    Code:
    ls -al /srv/PrivateSGID | grep USER
    -rw-rw-r-- 1 USER plugdev 0 Sep 20 17:54 USERfile.txt
    I do not get any output for the samba user. if i change USER to the local server user i get the same output as you.

  5. #15
    Join Date
    Dec 2009
    Beans
    6,771

    Re: samba help

    Then it worked as expected.

  6. #16
    Join Date
    Feb 2008
    Location
    38.6272° N, 90.1978° W
    Beans
    65
    Distro
    Ubuntu

    Re: samba help

    I still cannot get into the share from the Windows 7 machine.

    The local user is the user setup during install. The samba user is USER in the example commands

    I can SSH in, but was looking to be able to use Windows Explorer
    Last edited by steveo314; September 21st, 2018 at 05:00 PM.

  7. #17
    Join Date
    Dec 2009
    Beans
    6,771

    Re: samba help

    Then I do not understand this post:

    Quote Originally Posted by steveo314 View Post
    When I enter this command using your example:
    Code:
    ls -al /srv/PrivateSGID | grep USER
    -rw-rw-r-- 1 USER plugdev 0 Sep 20 17:54 USERfile.txt
    I do not get any output for the samba user. if i change USER to the local server user i get the same output as you.

  8. #18
    Join Date
    Feb 2008
    Location
    38.6272° N, 90.1978° W
    Beans
    65
    Distro
    Ubuntu

    Re: samba help

    If I use the Ubuntu user I get:
    Code:
    ls -al /srv/PrivateSGID | grep UUSER
    -rw-rw-r-- 1 UUSER plugdev 0 Sep 20 17:54 USERfile.txt
    If I use the user i added and added to the samba group I get:
    Code:
    ls -al /srv/PrivateSGID | grep USER

  9. #19
    Join Date
    Dec 2009
    Beans
    6,771

    Re: samba help

    I didn't understand that either.

    Let's try this:

    [1] Run this command on the server to find the permissions of the shared folder:
    Code:
    ls -dl /srv/samba/iti
    It should come back with something like:
    drwxrwsr-x 3 root input .......
    [2] Make sure that the user name you are using in Win7 to access the samba server is a member of the input group in Ubuntu:
    Code:
    id whatever-user-name-you-are-using-to-access-this-machine-from-Win7
    [3] Make sure the user name you are using in Win7 to access the samba server is in the samba password database:
    Code:
    sudo pdbedit -L
    That and samba actually running are all you need to access the share.

  10. #20
    Join Date
    Feb 2008
    Location
    38.6272° N, 90.1978° W
    Beans
    65
    Distro
    Ubuntu

    Re: samba help

    1.
    Code:
    drwxrwsr-x 2 root input 4096 Sep 21 13:55 /srv/samba/iti
    2.
    Code:
    uid=1001(USER) gid=1001(USER) groups=1001(USER),104(input)
    3.
    Code:
    USER:1001:

Page 2 of 3 FirstFirst 123 LastLast

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
  •