Acerca de Linux, BSD y notas personales

SETUID/GID

chgrp - change file group ownership

# which /usr/bin/chgrp
/usr/bin/chgrp

### SETUID / SETGID ### - Sets the effective user/group ID ###

chmod 644 filename
chmod 0644 filename

SETUID - 4
SETGID - 2

chmod 4660 filename.txt

-rwSrw—- filename.txt ( note the S )

### Security Breach Warning ### SETUID run as the owner of the file

Note: SETGID applied to directories, forces assignment of GID

chmod 4644 filename
chmod 2644 filename

Collaborative

SETUID/SETGID

next symbolic links

Leave a comment

You must be logged in to post a comment.