I'm trying to set up Samba on my Pi and access it from my Windows machines.
I've plugged a usb drive in and mounted /dev/sda1 to /media/usbdrive (I think)
I can see the share in Explorer but not login in to it and no matter how much searching I do I can't find the answer and am at the stage where I think I am doing more damage than good so want to ask some grownups for help please.
I have a usb drive plugged in and mounted under /media.
Output of mount
Code: Select all
/dev/sda1 on /media/usbdrive type vfat (rw,relatime,uid=1000,gid=1000,fmask=0022,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro)Code: Select all
drwxr-xr-x 4 root root 4096 Aug 19 16:10 .
drwxr-xr-x 24 root root 4096 Aug 19 11:16 ..
drwxr-xr-x 4 root root 1024 Jan 1 1970 SETTINGS
drwx------ 14 pi pi 32768 Jan 1 1970 usbdriveCode: Select all
#======================= Global Settings =======================
[global]
log file = /var/log/samba/log.%m
# guest account = guest (If this was left in then smbd failed to start)
obey pam restrictions = yes
encrypt passwords = yes
public = yes
passdb backend = tdbsam
dns proxy = no
netbios name = Pi NAS
writeable = yes
server string = %h NAS Server
invalid users = root
workgroup = WOODLANDS
os level = 20
syslog = 0
security = share
panic action = /usr/share/samba/panic-action %d
max log size = 1000
[USBDRIVE]
path = /media/usbdrive
force group = users
create mask = 0660
comment = Media Drive on Pi
directory mask = 0771
valid users = @usersI've then added the user hedley to samba
Code: Select all
smbpasswd –a hedleyroot@raspberrypi:/home/pi# service samba restart
[ ok ] Stopping Samba daemons: nmbd smbd.
[ ok ] Starting Samba daemons: nmbd smbd.
But when I try to login to the share from windows explorer \\192.168.19.90\usbdrive with the user details:
raspberrypi\hedley
password (as set in smbpasswd)
or any combination of just username, workgroup\user etc it doesn't log me in. (I checked that raspberrypi is the correct hostname)
I'm a bit lost now. I've read a stack of articles but don't seem to be getting anywhere. Although a few posts ask for the contents of fstab which oddly on mine doesn't mention /dev/sda1
Code: Select all
proc /proc proc defaults 0 0
/dev/mmcblk0p5 /boot vfat defaults 0 2
/dev/mmcblk0p6 / ext4 defaults,noatime 0 1Thanks for your help, it is very much appreciated.
Heds