Linked Questions

364
votes
8answers
252k views

Execute vs Read bit. How do directory permissions in Linux work?

In my CMS, I noticed that directories need the executable bit (+x) set for the user to open them. Why is the execute permission required to read a directory, and how do directory permissions in Linux ...
2
votes
4answers
12k views

Why does httpd give an error following a symlink into my home directory on Fedora?

I've just re-enabled an app after OS change. Symbolic link to it is located of course in /var/www/myapp . After changing permissions to 0775 (even 0777 temporary), changing owner to apache:myuser, ...
0
votes
2answers
82 views

Why can't read the contents of a directory? [duplicate]

All filenames mentioned here are directories. The permissions of /media/disk are 0744 (drwxr--r--). The permissions of /media/disk/directory are 0755 (drwxr-xr-x). I do not own these directories in ...
0
votes
1answer
120 views

One folder - multiple user permission

I created folder /home/john/Desktop/test. I want to give it access to user john itself and to user mike. I created group: sudo groupadd jm And added users to same group: sudo usermod -a -G jm ...
-1
votes
1answer
30 views

Why do have some directories like /var/lib/{docker,sudo} 0711 rights?

I've noticed that the directories /var/lib/{docker,sudo} have 0711 rights (rwx--x--x) by default. Is this some kind of mistake, or why grant someone the right to enter a directory x, without being ...
14
votes
1answer
23k views

In Linux, is “write” permission equivalent to “execute” for directories?

The execute permission makes sense for files (which include scripts etc.), but when it comes to directories, the write (w) permission works the same way as execute (x), right? Which means, if we are ...
1
vote
1answer
40 views

Permissions folder/parent folder

I have a doubt concerning the permissions of folders in my operating system course. Imagine that an ubuntu OS has three users : Lee, Xon, Yugi. Lee creates a parent folder X, and gives full ...
8
votes
1answer
5k views

Can I create a symbolic link to a file I can't access?

[Disclaimer: there's no malicious intent to this question, I'm trying to understand the ln -s command for a school project] Say I have a file system with my home folder, /home/anna. /home/bob is a ...
3
votes
2answers
7k views

Noip “Can't locate configuration file”, but the file is there

I installed Noip and ran the command which created the config file /usr/local/bin/noip2 -C and then I ran the run command /usr/local/bin/noip2 and it returned Can't locate configuration file /usr/...
2
votes
3answers
7k views

Apache2 permissions issue

I have changed my DocumentRoot to /home/user/www. To achieve that I have just changed the 2 occurrences of the path at /etc/apache2/sites-available/default. The permissions of /home/user/www are ...
0
votes
2answers
7k views

New user can't access their home

So I'm adding a new user on a machine to give a family member some remote storage. After setting up their login and home directory. Here's the stat File: `/home/heather' Size: 4096 Blocks: ...
5
votes
2answers
2k views

A question about permissions of hierarchical directories

I have some directories, with following permissions: drwxr-xr-x 18 user1 root 4096 Oct 27 11:25 /home/test1/test2 drwxr-xr-x 24 user1 root 4096 Oct 21 08:38 /home/test1 drwxr-xr-x 492 root root 12288 ...
11
votes
5answers
7k views

Directory with +x permission, parents without it. When would this be useful?

Say I have a folder called folder in the following path: my_path = /a/b/c/d/e/folder and a file called file in that folder. Then, say I run this command to remove group permissions under /a/ > ...