Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
In unix and linux, do files and folders inherit permissions the same way that they do in Windows?
That is, if I change a directory's position to, say, "rw-rw-r-- leon advusers", will subdirectories created under it be set with those permissions by default?
Ah, ok. Out of the box, are permissions set to be recursive by default? Or does it depend on the distro?
FWIW, I'm converting over full-time from Windows to Xubuntu on my home computer. Enough of this licensing bullsh**.
Ah, ok. Out of the box, are permissions set to be recursive by default? Or does it depend on the distro?
FWIW, I'm converting over full-time from Windows to Xubuntu on my home computer. Enough of this licensing bullsh**.
Uh oh--umask setting?? What's that?
Ok, so if I understand right: assuming they're set to be recursive, a new child will inherit permissions of its parent, but if the parent directory's permissions are later changed, the change won't affect its children unless you execute that command?
3 Answers
- tkquestionLv 71 decade agoFavorite Answer
Actually no.
You have a directory permission and that is one thing.
When you make a file or directories under it the default permission for them will be determined by your umask setting.
When you already have sub-directories and you change the parent, nothing will happen to the children. If you want to recursively change, you will do chmod -r command. (-r says to do it recursively)
<edit>
umask setting? It is called environment variable. You set it like you set any env variables such as:
umask=666
export umask
Try it....
then
touch abc
Look at the permission of the file abc.
Then, set umask to 444
then "touch abcd"
You'll see the file permission is different.
- 1 decade ago
Yes. However, remember that Bob.TXT and bob.txt are two different files on Unix/Linux systems.
Happy <insert what you are doing here> !
Source(s): Experience