My question is regarding the 2nd scenario. Since all files mentioned are assumed to be in /home/dq
. My question is how could the user “learn” owns this file? What sense does the fact that the user “learn” owns a file which locates in another directory make??
Second scenario. User learn
owns a file whose permissions are rwxr-xr-x
.
Question 3. Can dq
modify the contents of this file?
Question 4. Can dq
rename this file?
Kindly refer to these articles:
There is no contradiction. Why do you think there is one?
We have two different concepts at play. Ownership and permissions. It is possible for a user to own a file and have no permissions over it.
[sai-kiran-anagani-Tjbk79TARiE-unsplash]
I have recently received quite a few questions about Command Line Permissions. In this article, I will be addressing how we can go about dealing with permissions on terminals using the Bash scripting language. Note that I will not be doing a deep dive into Bash scripting or the filesystem so please check out the links at the bottom of the article for more info.
Linux, Mac OS X and Windows Subsystem for Linux (WSL) are variants based on the Unix archite…
Thanks for clarifying and consider updating the content as well.
I found these rules helpful
Directory permissions
Permissions for directories aren’t exactly the same as they are for files. Here are some typical permissions required on directories:
Execute permission is required for a user to cd into a directory.
Read permission is required for a user to use a command such as ls to view the files contained in a directory.
Execute-only permission allows a user to access the files in…