Displaying 1 result from an estimated 1 matches for "ecome_root".
Did you mean:
become_root
2003 May 20
0
Samba 2.2x bits attributes mapped on Linux file permissions
...share *before* to set/clear x bits with root access without let the user
always root. isn't it ?
the function who's setting attributes is in smbd/dosmode.c:unix_mode(...)
An another function called int file_chmod(...) seems to use this manner:
check write perms by CAN_WRITE(conn) then ecome_root();
conn->vfs_ops.fchmod(...); unbecome_root();
Best regards