Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
Can't get user logins and guest users to work at the same time on Samba
I'm trying to get it setup so that there's a user which has access to my ~/ and a guest user which just has read access to ~/Media so that the Media centre can read all the files from it without having to login.
I think I've created the users ok and when the security type is set to USER I can login using my user name and password and access the Home Share which points to ~/ but I can't access the ~/Media share.
However when I reset the security type to SHARE (as I've read in this forum a few places). It allows me to login but every share says it's unable to access them (from both my laptop and media centre). But when I just login as a guest (no user/pass) I can access ~/Media
Really confusing, but I guess I'm probably missing something stupidly obvious?
Last edited by juliushibert; 07-09-2010 at 04:58 PM. Reason: Spelt samba wrong
I've managed to have a bit more of a play with Samba and SWAT today and the problem seems to be when Security = USER -- I'm able to login and access both ~/Media and ~/ as two seperate shares.
However when I set map to guest from Never to either bad user or bad password, then I can access the ~/Media share but when I try to access the ~/ share I don't get any login box just an error saying I don't have permission to access the share.
Here's my smb.conf in case that offers any luck?
# Samba config file created using SWAT # from 192.168.1.65 (192.168.1.65) # Date: 2010/07/10 20:39:16 # Global parameters [global] workgroup = MS_HOME server string = %h server (Samba %v) obey pam restrictions = Yes passdb backend = tdbsam, guest passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spas$ syslog = 0 log file = /var/log/samba/log.%m max log size = 1000 dns proxy = No ldap ssl = no panic action = /usr/share/samba/panic-action %d invalid users = root valid users = gil, live write list = gil hosts allow = 127.0.0.1, 192.168.1.0/254 hosts deny = 0.0.0.0 [homes] comment = Home Directories path = /home/gil/ create mask = 0700 directory mask = 0700 browseable = No [printers] comment = All Printers path = /tmp create mask = 0700 printable = Yes browseable = No [print$] comment = Printer Drivers path = /var/lib/samba/printers [Media] comment = Media Files path = /home/gil/Media/ valid users = write list = guest only = Yes guest ok = Yes [gil] comment = Home Directory of Gil path = /home/gil/ valid users = gil read only = No