Displaying 3 results from an estimated 3 matches for "is_disk_op".
Did you mean:
chs_disk_op
2024 Jun 11
1
SeDiskOperatorPrivilege_Privilege
...ete share command, smbd requires that the administrator connects using a root account (i.e. uid == 0) or has the SeDiskOperatorPrivilege. Scripts defined in the delete share command parameter are executed as root.
Looks like it is still checked (in master) in:
_srvsvc_NetShareSetInfo()
is_disk_op = security_token_has_privilege(
session_info->security_token, SEC_PRIV_DISK_OPERATOR);
/* fail out now if you are not root and not a disk op */
if (session_info->unix_token->uid != sec_initial_uid() && !is_disk_op) {
DEBUG(2,(&q...
2024 Jun 11
1
SeDiskOperatorPrivilege_Privilege
On Tue, 11 Jun 2024 15:52:45 +0100
Luis Peromarta via samba <samba at lists.samba.org> wrote:
> Again, my exact same experience.
>
> LP
> On Jun 11, 2024 at 14:58 +0100, Bailey Allison via samba
> <samba at lists.samba.org>, wrote:
> > Hey Rowland,
> >
> > Just wanted to say you are 100% correct, and it does (seemingly)
> > nothing, at least
2024 Jun 11
1
SeDiskOperatorPrivilege_Privilege
...rator connects
> using a root account (i.e. uid == 0) or has the
> SeDiskOperatorPrivilege. Scripts defined in the delete share command
> parameter are executed as root.
>
>
> Looks like it is still checked (in master) in:
>
> _srvsvc_NetShareSetInfo()
>
> is_disk_op = security_token_has_privilege(
> session_info->security_token,
> SEC_PRIV_DISK_OPERATOR);
>
> /* fail out now if you are not root and not a disk op */
>
> if (session_info->unix_token->uid != sec_initial_uid() &&
> !is_disk...