You have it configured it locked down to just the one user... When you said, force user = Jim, then it limited to just Jim.
Let me walk you through that as summarized...
Code:
# Creating the share called "anonymous".
sudo mkdir -p /mnt/md0/samba/anonymous
# Create the group users
sudo groupadd users
# Change the group ownership and permissions of the directory
sudo chgrp users /mnt/md0/samba/anonymous
sudo chmod -R 770 /mnt/md0/samba/anonymous
# Add users to the group in the system
sudo usermod -a -G users Jim
sudo usermod -a -G users Jane
# Add the users to Samba
sudo smbpasswd -a Jim
sudo smbpasswd -e Jane
If Samba security is set to allow verified users who used system credentials, then you don't need that last part... But you did say you locked it down to two users...
The in the Samba Config:
Code:
[global}
workgroup = WORKGROUP
server string = Name_Of_Server
netbios name = Ubuntu
security = user
map to guest = bad user
dns proxy = no
#### SHARES ####
[anonymous]
path = /mnt/md0/samba/anonymous
browsable = yes
writable = yes
guest ok = yes
read only = no
valid users = @users
At least, that is "one way" to set up groups to a Samba Share.
Personally, I would use a group name that is not as close to a system type of name. "users" is, well... LOL
Bookmarks