As mentioned earlier, you can specify users who have guest access to a share. The options that control guest access are easy to work with. The first option,
guest
account, specifies the Unix account that guest users should be assigned when connecting to the Samba server. The default value for this is set during compilation, and is typically
nobody. However, you may want to reset the guest user to
ftp if you have trouble accessing various system services.
If you wish to restrict access in a share only to guests - in other words, all clients connect as the guest account when accessing the share - you can use the
guest
only option in conjunction with the
guest ok option, as shown in the following example:
[sales]
path = /home/sales
comment = Fiction Corp Sales Data
writeable = yes
guest ok = yes
guest account = ftp
guest only = yes
Make sure you specify
yes for both
guest only and
guest ok in this scenario; otherwise, Samba will not use the guest acount that you specify.