В моей папке samba я видел, что когда кто-то создает новую папку с MAC, тогда user = nouser
и когда я использую rsync, я получаю ошибку отказа в разрешении.
возможно ли, что в самбе, если нет пользователя, тогда пользователь будет назначен или
в linux user1 имеет все права ни для одного пользователя
Ты можешь использовать force user
и force group
в конфигурации общего ресурса по умолчанию для определенного пользователя и группы, когда файлы записываются в общий ресурс.
man smb.conf
сообщает мне о параметре:
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
lp(1).
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
Я подозреваю, что если вы установите / измените это, в [global]
в вашем smb.conf, он будет делать то, что вы хотите.