Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I am trying to configure a Samba file server on CentOS 5.4 running kernel version 2.6.18-164.11.1.el5 and samba version 3.0.33-3.15.el5_4.1. If I configure Samba for "forced user" mode which ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2010
    Posts
    3

    Samba Configuration Problem


    Hi,

    I am trying to configure a Samba file server on CentOS 5.4 running kernel version 2.6.18-164.11.1.el5 and samba version 3.0.33-3.15.el5_4.1.

    If I configure Samba for "forced user" mode which is basically anonymous access, there is no problem accessing the shares. The config I have for this is:

    [global]

    server string = CentOS VM File Server %v
    security = user
    passdb backend = tdbsam
    wins server = 192.168.21.2
    map to guest=Bad User
    [data]
    comment = Data Storage
    path = /data
    force user = myuser
    force group = sambausers
    ; valid users = myuser
    read only = No
    guest ok = Yes
    nt acl support = No

    When I attempt to switch the configuration to only allow valid windows users to access the share I run into problems. The windows usernames (myuser for this example) is the same on the windows machines and was setup as follows as the linux machine:

    # useradd myuser -G sambausers
    # passwd myuser
    .....entered password matching windows password twice, said it was successful

    Then I configured permissions on the share path (this was actually done the same way for the "anonymous" access above:

    # chown -R myuser:sambausers /data
    # chmod -R ug+rwxs,o-w,o+rw /data

    The Samba configuration was updated to:

    [global]

    server string = CentOS VM File Server %v
    security = user
    passdb backend = tdbsam
    wins server = 192.168.21.2
    ; map to guest=Bad User
    [data]
    comment = Data Storage
    path = /data
    ; force user = myuser
    ; force group = sambausers
    valid users = myuser
    read only = No
    ; guest ok = Yes
    ; nt acl support = No

    After restarting the samba server, I attempt to access the share from a windows machine logged in as "myuser" and I receive a "Login failure: unknown user or bad password" error with a box prompting for credentials. I retype the login info and the same box just comes up. I have no trouble logging onto the linux machine directly using these same credentials, so I am at a loss as to the problem.

    I also tried commenting out the valid users line and still have the same problem.

    Any help would be greatly appreciated.

  2. #2
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    did you add the user using smbpasswd?

  3. #3
    Just Joined!
    Join Date
    Feb 2010
    Posts
    3
    I was under the impression that using the tdbsam backend no longer required the use of smbpasswd?

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Feb 2010
    Posts
    3
    I apparently I misread something somewhere as that did the trick.

Posting Permissions

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