Hello!
I am setting up a samba fileserver for a smaller network in a shool. It is actually the first time im doing this so the answer might be simple.
The problem: The fileserver doesn’t recognize the user accounts. You get access as guest and can share files in the folders that allow guests to do so, but as soon as guests are not allowed to touch anything it shuts the users that should be able to read and write out.
I do not believe this is a smb.conf problem. I’ve been trying to work this out for quite some time now, to no avail. In threads i’ve looked into they speak about setting the primary login to “Windows-login” instead of client for microsoft networks, but the hosts are Windows XP computers and i cant seem to find any such option on my network connection. Tried to uncheck the “Client for Microsoft networks” box but then i cant access the server at all.
I have added users to the server, added smbpasswd to these and added users withe the same name to the windows host.
I am aware that linux is case sensitive. I have tried adding the users to hosts files in both windows and linux and i have tried to have the passwords in linus both exactly the same and different.
Pasting the smb.conf just in case (as it might contain errors):
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2009/10/08 11:18:03
[global]
workgroup = MIKAEL
netbios name = server1
map to guest = Bad User
printcap name = cups
# logon path = \\%L\profiles\.msprofile
# logon drive = P:
# logon home = \\%L\%U\.9xprofile
usershare allow guests = Yes
usershare path = /etc/samba/usershares
printing = cups
include = /etc/samba/dhcp.conf
local master = Yes
preferred master = Yes
os level = 65
security = user
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = Yes
domain master = Yes
usershare max shares = 100
en crypt passwords = true
[homes]
comment = Home Directories
valid users = %S, %D%w%S
read only = No
inherit acls = Yes
browseable = No
[profiles]
comment = Network Profiles Service
path = %H
read only = No
create mask = 0600
directory mask = 0700
store dos attributes = Yes
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
browseable = No
[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin, root
force group = ntadmin
create mask = 0664
directory mask = 0775
[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
write list = root
[elev]
comment = För elever
path = /home/elev
admin users = @larare
read only = No
create mask = 0765
inherit acls = Yes
[kansli]
path = /home/kansli
read only = No
inherit acls = Yes
[larare]
path = /home/larare
read only = No
inherit acls = Yes
[tmp]
comment = temporary file space
path = /tmp
read only = No
guest ok = Yes
Thanks in advance!