I have a Raspberry Pi (though could be any Debian Linux box) connected to an external hard disk formatted as NTFS.
My disk mount in fstab
is:
/dev/sda1 /media/disk ntfs-3g defaults,uid=1000,gid-1000,dmask=007,fmask=007 0 0
where user 1000 is the 'pi' user
/media/disk/shared is my Samba root folder. Must be accessible from Windows and Mac
Now, I can see the share in Windows, but I get permission denied. If I try mapping a drive to it, and attempt login using \machinename\pi the login fails.
Any ideas?
Edit-- smb.conf below. I've removed all comment lines (I assume lines beginning # or ; are comments)
[global]
workgroup = WORKGROUP
server string = %h server
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
[shared]
comment = Ali and Greg Shared Folders
writeable = yes
public = yes
browseable = yes
path = /media/disk/shared
guest only = yes
guest ok = yes
read only = no
create mask = 0777
directory mask = 0777
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
[hdd]
comment = Samba server's HDD
read only = no
locking = no
path = /media/disk/shared
guest ok = yes
smbpasswd -a
? Samba does not authenticate against/etc/shadow
&&/etc/passwd
. Seehttp://www.samba.org/samba/docs/man/manpages-3/smbpasswd.8.html
.smb.conf
file?