@
Humorce 感谢你的回答,如文档所说:
admin users
This option specifies a list of users that perform file operations as if they were root. This means that they can modify or destroy any other user's files, regardless of the permissions. Any files that they create will have root ownership and will use the default group of the admin user. The admin users option allows PC users to act as administrators for particular shares. Be very careful when using this option, and make sure good password and other security policies are in place.
At the other end of the spectrum, you can explicitly specify users who will be allowed superuser (root) access to a share with the admin users option. An example follows:
[sales]
path = /home/sales
comment = Sedona Real Estate Sales Data
writable = yes
valid users = sofie shelby adilia
admin users = mike
但是经过测试:
[folder]
path = /home/sales
writable = yes
valid users = user1
admin users = admin
以上配置只有 user1 能够进入,admin 死活进不去 - -。
有一直在使用 samba 的大神吗,Help~