[Samba] smbtar and smbmount fails, mount -t cifs works

Adam Williams awilliam at mdah.state.ms.us
Thu Nov 2 16:08:05 GMT 2006


I am running CentOS 4.4 with kernel 2.6.9-42.0.2.ELsmp, with samba 3.0.23c ( http://us4.samba.org/samba/ftp/Binary_Packages/Fedora/SRPMS/samba-3.0.23c-4.src.rpm ).  It appears that smbmount and
smbtar do not authenticate properly, while mount -t cifs works.  Attached are examples and my smb.conf.  Any Ideas?  Thanks.

[root at archives4 bin]# smbmount //10.8.8.224/vreporter /media/cdrom -o username=backup,password=xxxxxxxx
22571: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed

[root at roark ~]# smbtar -vs 10.8.8.224 -x vreporter -u backup -p xxxxxxxx
-t /tmp/testfile
server    is 10.8.8.224
share     is vreporter\\
tar args  is
tape      is /tmp/testfile
blocksize is
added interface ip=10.8.8.2 bcast=10.8.8.255 nmask=255.255.255.0
session setup failed: NT_STATUS_LOGON_FAILURE
session setup failed: NT_STATUS_LOGON_FAILURE

[root at archives4 bin]# mount -t cifs //10.8.8.224/vreporter /media/cdrom -o username=backup,password=xxxxxxxx
[root at archives4 bin]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      2.5T  102G  2.2T   5% /
/dev/sda1              99M   33M   62M  35% /boot
none                  2.0G     0  2.0G   0% /dev/shm
//10.8.8.224/vreporter
                       75G   14G   62G  18% /media/cdrom



----smb.conf----

[global]
        netbios name = archives4
        workgroup = OLDCAPITOL
        server string = samba server %V
        hosts allow = 10.8.
        os level = 66
        smb passwd file = /etc/samba/smbpasswd
        wins server = 10.8.8.2
        passwd program = /usr/bin/passwd %U
        domain master = yes
        name resolve order = hosts bcast wins
        pam password change = yes
        printing = cups
        dns proxy = no
        encrypt passwords = yes
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        printcap name = /etc/printcap
        max log size = 1000000
        preferred master = yes
        obey pam restrictions = yes
        passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*al
l*authentication*tokens*updated*successfully*
        security = user
        unix password sync = yes
        local master = yes
        server string = Samba Server
        wins proxy = yes
        wins support = yes
        log file = /var/log/samba/%m.log
        load printers = yes
        hosts allow = 10.8.
        log level = 1
        update encrypted = yes
        null passwords = yes
        domain logons = yes
        logon path = \\%N\profiles\%U
        logon script = scripts\%U.bat
        logon drive = R:
        logon home = \\archives4\%U
        guest account = nobody
        map to guest = bad user
        guest ok = yes
        dns proxy = No
        hide dot files = yes
   template shell = /bin/false
   winbind use default domain = no

[homes]
        comment = Home Directories
        writeable = Yes
        browseable = No
        hide dot files = yes
       public = no
        valid users = %S
[printers]
        path = /var/spool/samba
        comment = All Printers
        guest ok = Yes
        printable = yes
        create mask = 0700
        use client driver = yes

[netlogon]
        path = /var/lib/samba/netlogon
        read only = yes
        guest ok = no
        browsable = no
        write list = awilliam

[profiles]
        path = /var/lib/samba/profiles
        writeable = yes
        create mask = 0600
        directory mask = 0700
        browseable = no
[printers]
        path = /var/spool/samba
        comment = All Printers
        browseable = no
        printable = yes
        print command = lpr.cups -P %p -o raw %s -r
        lpq command = lpq.cups -P%p %j
        lprm command = lprm.cups -P%p %j
        use client driver = yes

[share]
   comment = Public Stuff
   path = /home/samba/share
   public = yes
   writable = yes
   create mask = 0770
   directory mask = 0770
   force group = museum
   valid users = @museum
   force directory mode = 770
   directory mode = 770
   force create mode = 770

[staceyandcheryl]
   comment = Public Stuff
   path = /home/samba/staceyandcheryl
   public = yes
   writable = yes
   create mask = 0770
   directory mask = 0770
   force group = staceyandcheryl
   valid users = @staceyandcheryl
   force directory mode = 770
   directory mode = 770
   force create mode = 770

[newmuse]
   comment = Public Stuff
   path = /home/samba/newmuse
   public = yes
   writable = yes
   create mask = 0770
   directory mask = 0770
   force group = newmuse
   valid users = @newmuse
   force directory mode = 770
   directory mode = 770
   force create mode = 770
[adam]
   comment = Public Stuff
   path = /adam
   public = yes
   writable = yes
   create mask = 0770
   directory mask = 0770
   force group = museum
   valid users = @museum
   force directory mode = 777
   directory mode = 777
   force create mode = 777









More information about the samba mailing list