In fact, I’m just glad we are able read from and write to those types of file systems from Linux at all! In a nutshell This makes sense as such file systems don’t use the same type of permission settings for files, so storing the permission data would be difficult. Links remain the same at 777, though it is unclear to me if links created in Linux are stored differently or not on foreign file systems.Īs far as I can tell, there is no way to change file and directory permissions, or even mark files as being executable without changing the mount settings, so all files are always stuck with a privilege of 600. Here, the file permissions are going to be different, with a value of 600 for files and 700 for directories. On external mediaįor external harddrives, USB drives, or SD cards that are mounted in /media/, if you haven’t manually changed either the mount settings or file system format of the drive, the file system type is likely to be either Fat32 or NTFS. Links (both to files and directories) have the permission 777, which I’m assuming is done for the similar reasons as the executable bit on directories. Some commands (like ls) work on the directory, while others (such as stat) do not. Although it is browsable in Nautilus, trying to write anything to the folder results in a “forbidden” or “insufficient privileges” error message. If a directory (or any of its parent directories) isn’t marked as executable, you cannot cd into it. Even though it seems like directories aren’t the type of thing that would be “executed”, this flag is actually very important to Linux! (and if anyone can find an article behind the reasoning behind this decision, I would love to find out) What may be surprising is that directories also have a default permission of 755. If you mark that file as executable, as expected, it gets the permission 755.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |