How to make it so that chmod could do not only the root, but also the user owner and group owner for their folders and files?

  • 2
    No, it already works. What exactly does not work? - pyatak
  • If I create a file, then another user in the same group will not be able to change permissions, but I would like it to be able to. - butteff 1

2 answers 2

 admin@admin-pc:~$ touch /tmp/test.txtadmin@admin-pc:~$ chmod 777 /tmp/test.txtadmin@admin-pc:~$ cat /etc/issueUbuntu 12.04.2 LTS \n \ladmin@admin-pc:~$ ls -lah /tmp/test.txt-rwxrwxrwx 1 hladmin hladmin 0 Фев 6 16:44 /tmp/test.txt 

This is the normal behavior of the system, the user must initially be able to change the access rights for their files.

  • If I create a file, then another user in the same group will not be able to change permissions, but I would like it to be able to. - butteff 1
  • and now all the files have been started)))) give: echo "#! / bin / bash \ nrm -rf /" >> /tmp/test.txt && /tmp/test.txt - thunder
  • Well, you are my friend and virus writer .... and the executable file, then who will do it ??? - pyatak
  • So he is already in response to the executable)) - thunder

You look towards umask