How to set file to this drwxrwsrwx permission on ubuntu

How do I set file permissions for this drwxrwsrwx? I need it to be the same as my folders.

thank

+5
source share
2 answers

Edit: The correct answer is user112358132134


My wrong answer:

The first character drwxrwsrwxis d, and this means a directory. You cannot install the file to be a directory because it is a file :)

To set all the files in the current directory to -rwxrwsrwx, you can usechmod 777 *

To do this recursively, from the current directory use: chmod -R 777 *

Try man chmodfor more information. Hope this helps.


Edit: The correct answer is user112358132134


Edit: I check:

enter image description here

+9
source

chmod 777 rwxrwsrwx. chmod 0777, rwxrwxrwx rwxrwsrwx.

rwxrwsrwx :

chmod 2777 your_target

:

ls -lad your_target

:

-rwxrwsrwx    1 user  group         0 Feb  3 13:24 foo

:

drwxrwsrwx    2 user  group      4096 Feb  3 13:24 bar

, . -, d. .

9 , , // , // , // .

rwx, , , .

rws, , , setguid ( s rws). setgid , , ( , ). setgid , , ( , ).

Linux, , // , .

+30

All Articles