Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

In my samba share i have seen that when someone make new folder from MAC then user = nouser and when i use rsync i get permission denied error.

is it possible that in samba if there is no user then soe user get assigned or

in linux user1 has all permission for no user

share|improve this question

2 Answers 2

up vote 2 down vote accepted

You can use force user and force group under the share configuration to default to a specific user and group when files are written to the share.

share|improve this answer

man smb.conf tells me of the parameter:

   guest account (G)

   This is a username which will be used for access to services which are specified as guest ok (see below). Whatever privileges this user has will be
   available to any client connecting to the guest service. This user must exist in the password file, but does not require a valid login. The user
   account "ftp" is often a good choice for this parameter.

   On some systems the default guest account "nobody" may not be able to print. Use another account in this case. You should test this by trying to log
   in as your guest user (perhaps by using the su - command) and trying to print using the system print command such as lpr(1) or

   This parameter does not accept % macros, because many parts of the system require this value to be constant for correct operation.

   Default: guest account = nobody     # default can be changed at compile-time

I suspect that if you set/change this, in the [global] section of your smb.conf, it will do what you want.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.