[Samba] Suggestion for clarification in the manual page for smb.conf re preexec & admin users

Peter Eriksson pen at lysator.liu.se
Mon Feb 1 12:42:10 UTC 2021

I just noticed that ‘preexec’ scripts are run as the user connecting. Unless that user is in the “admin users” list. Then it will be run as user root…

Now, in retrospect this isn’t so surprising since ‘admin users’ will do all file operations as root but it still wasn’t obvious to me from reading the manual page.

Perhaps adding a notice in the “admin users” section that it not only affects file operations but also “preexec” (and possibly “postexec” - haven’t tested that)?
(And also perhaps a notice under the “preexec” section)?

- Peter

More information about the samba mailing list