help me with samba homes please..
People, I'm configuring a school network and I need a homedir for each user. Everything else is working fine but this.. users can see their shares when they're logged in, but when they try to open it, it asks for a password, but even giving their valid password it doesn't work anyway. I've tried a lot in smb.conf, here is it and help me please, i'm desperate!
[global] workgroup = pdc netbios name = pdcmoon server string = samba de janeiro printing = cups log file = /var/log/samba/log.%m max log size = 50 log level = 2 guest account = nobody security = domain password server = * smb passwd file = /etc/samba/private/smbpasswd unix password sync = Yes username map = /etc/samba/smbusers socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 local master = yes os level = 64 domain master = true preferred master = true domain logons = yes logon script = logon.bat logon path = \\pdcmoon\profiles\%u logon drive = H: logon home = \\pdcmoon\var\lib\samba\profiles\%u\ wins proxy = yes dns proxy = no [homes] comment=Home directory for %u valid users = %u force user= %u writable = yes write list= %u read list = %u browseable = no locking = no create mask = 0775 directory mask = 0775 [netlogon] comment = Network Logon Service path = /home/samba/netlogon guest ok = yes writeable = no [Profiles] path = /var/lib/samba/profiles writeable = yes browseable = yes valid users = @administrators, @professores, @alunos profile acls = yes [public] comment = Area publica da escola path = /home/public read only = no browseable = yes public = yes writable = yes write list = @administrators, @professores, @alunos read list = @administrators, @professores, @alunos valid users = @administrators, @professores, @alunos create mask = 0774 directory mask = 0775 [setup] comment = area de configuracao path = /home/setup valid users = @administrators, @professores read list = @administrators, @professores writable = yes write list = @administrators read only = No create mask = 0774 directory mask = 0775 |
username map = /etc/samba/smbusers
Did you look into this file? you may need your users in there, since its global. browseable = no This will need to be yes, or else , ....... !! lol.! valid users = @administrators, @professores, @alunos What is this? |
thank you for answering AutOPSY.
@administrators @professores @alunos are the groups i've created, and tha't seems to be working fine, (administrators,professors,students). I did what you said but it's still not going on, I've added to smbusers, ygor = ygor arede = arede gil = gil since I added them both in linux and samba. I need this working quick soon, please help me! |
I introduced in [homes] :
path = /home/samba/homedir, and I can get to the shares in windows, but as you see, this way all users have the same directory as home. I've tried to do /home/samba/homedir/%u or %S , so that should create 'on the fly' a homedir for each user, but it does not, and in windows it says that 'the network path was not found'. |
All times are GMT -5. The time now is 02:19 AM. |