I have an Ubuntu server 16.04 running samba which other people log into with multiple pcs (windows and Mac). What I'm trying to do is have it log me in with the user lan-admin from my PCs but everyone else is treated as a guest and mapped to the user lan-users even if they don't enter a password (we all share the same group lan-data). Here is my config file:
Code:
[global]
unix extensions = no
follow symlinks = yes
wide links = yes
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
pam password change = yes
map to guest = bad user
[Shared]
server string = Data Repository
comment = File Server
path = /data/netshare
; force user = lan-users
force group = lan-data
read only = no
create mask = 0644
directory mask = 0755
guest only = no
guest ok = yes
guest account = lan-users
unix extensions = no
nt acl support = no
follow symlinks = yes
wide links = yes
veto files = /.DS_Store/.TemporaryItems/.Trashes/._*/Thumbs.db/.com.apple.timemachine.supported/
delete veto files = yes
What I want is for files the "lan-admin" account adds have the owner lan-admin:lan-data while everyone else would have the owner lan-users:lan-data. That way, files I add can't be modified but they can be read.