Linked Questions

52
votes
2answers
82k views

What does the 'd' mean in ls -al results and what is that slot called? [duplicate]

In Linux, what does the d mean in the first position of drwxr-xr-x? And what are all of the possible letters that could be there, and what do they mean? I'm trying to learn more about the Linux file ...
1
vote
2answers
18k views

How to give this permission (-r--rwx-rw-) using CHMOD? [duplicate]

I am studying for a public exam and see this question (pt-BR) Before answer, I read about chmod and understood that the permission are split in 3 groups (user, group, other), like this: Nível u ...
2
votes
2answers
7k views

How are setuid, suid, sudo, and su all related? [duplicate]

I have a feeling the setuid bit, the nosuid mount option, sudo, and su are all related given their names. But how do they relate to one another? Are some of them used in conjunction? If they are ...
1
vote
3answers
1k views

What does the argument “ +x ” means in Unix? (Regarding permissions)? [duplicate]

I use Ubuntu and someone advised me to change permissions to a file with sudo chmod " +x ". It is not clear to me if +x means to change permissions to something very general as 777 or 775, or ...
1
vote
1answer
3k views

Why my chmod isn't working as expected? [duplicate]

I want to set my folders permissions to 555 and my files permissions to 554, so I tried the following chmod: sudo chmod -R -v ug=rx,o=r,a+X mydir/ I thought this would set the user and group ...
-1
votes
1answer
1k views

How to control setuid, setgid, and sticky bits from chmod's numeric method? [duplicate]

I know how to set read/write/execute with three numbers from the Arch wiki's file permissions page. I also know that chmod 7777 will set the setuid, setgid, and sticky bits to true. But which number ...
1
vote
2answers
1k views

what is significance of first digit in 0022 when I run umask on linux? [duplicate]

I know that there is no difference in 0022 and 022 referring to link. I have file 1.c, with permissions 0066. But when I change the mode of file 1.c to 1066, and then when I check the permissions of ...
1
vote
1answer
2k views

How do I chmod or chown a file so that anybody in the world can access it? [duplicate]

.I have a font file which I created using a python script from Github. The owner and group are root. I don't actually know what this means... I can guess what owner means, and I can guess that a group ...
0
votes
3answers
534 views

What rights signify when using ls -l? [duplicate]

When I type ls -l and press enter I get a list of files, with details about each file. Next to each file there is permissions and rights for each file. What do they mean? For example: -rw-rw-rw- I ...
1
vote
2answers
54 views

What's meaning of the `c` in `crw-rw-rw-` in linux file permissions? [duplicate]

I run the command: ll /dev/null and got this output: crw-rw-rw- 1 root root 1, 3 Feb 19 10:20 /dev/null I know d means directory. Can someone please explain what the c special flag means?
0
votes
2answers
61 views

chmod 001 or 111? Unix Permissions for executable files question [duplicate]

I am confused as to what this question is asking me to do. For context, hello is a c++ file. "Use chmod command again to make hello an executable, but not readable and not writeable for all users....
-4
votes
2answers
62 views

Using octal method,how do I type the exact command I would use to make test.txt have the following permissions dr-xr-x— [duplicate]

Using octal method,type the exact command you would use to make test.txt have the following permissions dr-xr-x---
0
votes
0answers
33 views

Influence of r,w,x on files and folders [duplicate]

I try to understand permissions... Ok, I know how to set them, that's not the problem. Plenty of websites that explain the chmod command. What I can't find and don't get very well is what r,w and x ...
23
votes
2answers
227k views

How to set the permission drwxr-xr-x to other folders?

I have few directores inside a folder like below - teckapp@machineA:/opt/keeper$ ls -ltrh total 8.0K drwxr-xr-x 10 teckapp cloudmgr 4.0K Feb 9 10:22 keeper-3.4.6 drwxr-xr-x 3 teckapp cloudmgr 4....
19
votes
2answers
7k views

What are the different ways to set file permissions etc on gnu/linux

On Unix, a long time back, I learned about chmod: the traditional way to set permissions, on Unix (and to allow programs to gain privileges, using setuid, setgid). I have recently discovered some ...

15 30 50 per page