EDIT: The problem actually turned out to be a missing file error. Still can't fix that :/ The missing file is /var/lib/samba/usershares/public
EDIT2: Can't even access the server itself. Googled and found the answer. It's down there /
Basically, title says it all, but here's my smb.conf
(without comments):
[global]
server string = %h server (Samba, Ubuntu)
server role = standalone server
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
idmap config * : backend = tdb
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[public]
path = /home/public/public
valid users = public
read only = No
And here's my directory info:
total 36K
527845 drwx--x--x 3 public public 4.0K Dec 3 14:45 .
524289 drwxr-xr-x 6 root root 4.0K Dec 3 13:38 ..
527847 -rw-r--r-- 1 public public 220 Dec 3 13:21 .bash_logout
527848 -rw-r--r-- 1 public public 3.7K Dec 3 13:21 .bashrc
527846 -rw-r--r-- 1 public public 8.8K Dec 3 13:21 examples.desktop
527849 -rw-r--r-- 1 public public 675 Dec 3 13:21 .profile
527429 drwxrwxrwx 2 public root 4.0K Dec 3 14:45 public
BTW, sorry, I'm a bit of a noob in Samba. Hope you'll understand.
Thanks in advance,
matemate01
PS: I've done the smbpasswd -a public
and tried my best to follow this tutorial
Here's my actual error:
tree connect failed: NT_STATUS_ACCESS_DENIED
smbclient \\\\localhost\public -U public
. It asks for password and then says that error message. Tried with Windows, using the IP address, gives Access Denied error.can't open username map /etc/samba/smbusers. No such file or directory
auth.log says:pam_unix(samba:session): session closed for user nobody
PS: Still don't know how to fix that :(