Very simple Samba setup that I cannot, for the life of me, get to work. I'd really appreciate a bit of help!
Linux PC:
- Debian etch 4.0 (Linux debian 2.6.18-5-686 #1 SMP Fri Jun 1 00:47:00 UTC 2007 i686 GNU/Linux)
- Samba v3.0.24 installed
- IP of eth1 is 10.0.11.19
- Only two users on this machine, "root" and "steve". Samba password for "steve" has been updated with smbpasswd.
- Shared directory is "/shared", owned by "root", group is "users". Permissions are drwxrwxr-x.
- I have been able to mount a folder that is shared on the Windows PC.
- Hostname is "debian"
- When I try to mount the samba share I am denied access:
Code:
debian:/tmp# mkdir deb
debian:/tmp# mount -t smbfs -o username=steve //debian/shared deb
Password:
3561: tree connect failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed
- Log files do not show any issues. I deleted all the files in /var/log/samba, restarted samba and tried to access the share fromboth the Linux machine and the Windows machine. Some log files were created, but the only entries in the log pertain to printing.
Code:
debian:/var/log/samba# ls
log.10.0.11.19 log.10.0.11.64 log.smbd log.stevespc
debian:/var/log/samba# head -n 4 log.10.0.11.19
debian:/var/log/samba# head -n 4 log.10.0.11.64
[2007/09/17 10:24:42, 0] printing/pcap.c:pcap_cache_reload(159)
Unable to open printcap file /etc/printcap for read!
[2007/09/17 10:24:42, 0] printing/pcap.c:pcap_cache_reload(159)
Unable to open printcap file /etc/printcap for read!
debian:/var/log/samba# head -n 4 log.smbd
[2007/09/17 10:42:15, 0] printing/pcap.c:pcap_cache_reload(159)
Unable to open printcap file /etc/printcap for read!
[2007/09/17 10:42:15, 0] printing/pcap.c:pcap_cache_reload(159)
Unable to open printcap file /etc/printcap for read!
debian:/var/log/samba# head -n 4 log.stevespc
debian:/var/log/samba#
Windows PC:
- Windows XP SP2
- PC name is "stevespc"
- IP of this PC is 10.0.11.64
- Workgroup is "workgroup"
- Username is "steve". Password is the same as the password for "steve" on the Linux PC.
- No firewall software installed
- Can browse other Windows PC's without an issue
- I can browse to the "debian" machine and see that there is a "shared" folder, but when I double click the folder to open it I am asked to authenticate. None of the usernames will work "steve", "debian\steve", "steve@debian", etc.
My current smb.conf file:
Code:
[global]
netbios aliases = deb1000
server string = %h
interfaces = eth1
bind interfaces only = Yes
obey pam restrictions = Yes
passdb backend = tdbsam
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
syslog = 10
log file = /var/log/samba/log.%m
max log size = 1000
load printers = No
dns proxy = No
ldap ssl = no
panic action = /usr/share/samba/panic-action %d
invalid users = root
hosts allow = 10.0.11.0/255.255.255.0
[shared]
comment = Shared files
path = /shared
valid users = %S
read only = No
create mask = 0775
directory mask = 0775