I am using rhel 7.6. the guest account of samba is default "nobody" user.
my ftp service use "nobody" account. I want a simple samba share with ftp. so both ftp/samba service will use nobody account to read/write files. I create user account for samba. and smb.conf like below:
security = user
guest account = nfsnobody
path = /share/ftp
read only = Yes
force user = nobody
force group = nobody
the ftp folder is owned by nobody with "0700" permission.
I change samba guest account to "nfsnobody" and hope now "nobody" become a normal unix account. but when user login, they can not access the folder with "0700" permission owned by nobody. I need to change the folder to "0755", or "force user = root" to access the folder.
OK, by default, 'nobody' is the guest user, but it has been changed to 'nfsnobody'. This means that when a guest user tries to access the share, it is as 'nfsnobody' and the directory permissions only allow 'nobody' to connect. When the permissions where changed to '0755', this allowed 'nfsnobody' to access the share via 'others'. Not sure where 'force user' came into it, as this only takes affect once access is allowed.
This was not a bug, it was a misconfiguration, so closing.