Linux permissions (Ubuntu 9.04) - how to remove rws?

I have a directory with rwxrwsr-x as its permissions, and I need to set the group to rwx. How can I do this on the command line? I have root access.

+3
source share
3 answers

rwxrwsr-xmeans a set of group identifiers is installed. You can disable the installed GID by doing the following:

chmod g-s [name]
+9
source

Use sudo(so that you have full privileges) to execute the command chmod(i.e., "change mode" or "change permissions").

sudo chmod g-s thefilename

g-s : " s group". s sticky, , , .

, . chmod.

+4

chmod g-s <target> should be enough.

+1
source

Source: https://habr.com/ru/post/1762829/


All Articles