Announcement

Collapse
No announcement yet.

[Fixed] - Samba woes

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [Fixed] - Samba woes

    I am unable to write to samba shares on my linux server. Evreything mounts ok and I have read access, but no write access.

    When I look at the files on the server from my remote machine the owner name is 1001. Locally the same files show the username of the actual owner.

    Can someone tell me what is wrong??

    Output from my smb.conf is:

    [global]
    server string = %h server (Samba, Ubuntu)
    map to guest = Bad User
    obey pam restrictions = Yes
    pam password change = Yes
    passwd program = /usr/bin/passwd %u
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    unix password sync = Yes
    syslog = 0
    log file = /var/log/samba/log.%m
    max log size = 1000
    dns proxy = No
    usershare allow guests = Yes
    panic action = /usr/share/samba/panic-action %d

    [homes]
    comment = Home Directories
    valid users = %S
    read only = No
    create mask = 0700
    directory mask = 0700
    browseable = No
    browsable = No

    [printers]
    comment = All Printers
    path = /var/spool/samba
    create mask = 0700
    printable = Yes
    browseable = No
    browsable = No

    [print$]
    comment = Samba server's CD-ROM
    path = /media/cdrom0
    guest ok = Yes
    locking = No
    preexec = /bin/mount /media/cdrom0
    postexec = /bin/umount /media/cdrom0

    [server1]
    path = /srv/1
    valid users = kris
    write list = kris
    read only = No
    create mask = 0775
    directory mask = 0775
    guest ok = Yes

    [server2]
    path = /srv/2
    valid users = kris
    write list = kris
    force user = kris
    read only = No
    create mask = 0775
    directory mask = 0775
    guest ok = Yes

    [server3]
    path = /srv/3
    valid users = kris
    write list = kris
    read only = No
    create mask = 0775
    directory mask = 0775
    guest ok = Yes
    Thanks to anyone who can tell me what I am overlooking!!

    #2
    Re: Samba woes

    Are those last three entries the "shares" you are trying to get to? Do you have appropriate permissions to that directory? That isn't a directory where you would normally do work or shares - AFAIK.

    Also, what version of Kubuntu are you running?

    Comment


      #3
      Re: [Fixed] - Samba woes

      as it worked out, I needed to add uid=xxx and gid=xxx to /etc/fstab. The client was mounting the shares as root. I added my uid to the fstab and it resolved the issue.

      Comment


        #4
        Re: [Fixed] - Samba woes

        Great! Glad you were able to figure out the problem.

        Cheers!

        Comment

        Working...
        X