Kevin Hunter Kesling
Cadet
- Joined
- Jun 9, 2015
- Messages
- 5
Hello Forum,
I've just set up some local user-accounts on our recently purchased FreeNAS box (our organization does not have an AD server), and am attempting to ascertain why all users have certain Samba privileges. For example, one privilege which we decidedly do not want all users to have is the ability to take ownership of any object: SeTakeOwnershipPrivilege. However, I see a number of lines like this in the log whenever smbd starts:
Looking at /usr/local/libexec/nas/generate_smb4_conf.py, I see that these privileges are hard-coded (so there must be a good reason!). As I'd rather not touch random scripts on the machine without a heck of a lot more knowledge of the FreeNAS internals than I have, I wonder:
Kevin
I've just set up some local user-accounts on our recently purchased FreeNAS box (our organization does not have an AD server), and am attempting to ascertain why all users have certain Samba privileges. For example, one privilege which we decidedly do not want all users to have is the ability to take ownership of any object: SeTakeOwnershipPrivilege. However, I see a number of lines like this in the log whenever smbd starts:
Jul 27 15:39:37 nasbox notifier: Granted SeTakeOwnershipPrivilege to NASBOX.COMPANY\jimbob
Jul 27 15:39:37 nasbox notifier: Granted SeBackupPrivilege to NASBOX.COMPANY\jimbob
Jul 27 15:39:37 nasbox notifier: Granted SeRestorePrivilege to NASBOX.COMPANY\jimbob
Jul 27 15:39:37 nasbox notifier: Granted SeBackupPrivilege to NASBOX.COMPANY\jimbob
Jul 27 15:39:37 nasbox notifier: Granted SeRestorePrivilege to NASBOX.COMPANY\jimbob
Looking at /usr/local/libexec/nas/generate_smb4_conf.py, I see that these privileges are hard-coded (so there must be a good reason!). As I'd rather not touch random scripts on the machine without a heck of a lot more knowledge of the FreeNAS internals than I have, I wonder:
- Why are these privileges hard-coded?
- More importantly, is there a way to remove at least SeTakeOwnershipPrivilege from all but a few CIFS users through the web-interface?
Kevin