It seems that all files created in a Mandriva distribution are world-readable, but I don't like that! How do I change the default file permissions in Mandriva?
Well, by default, the permissions of files created with Mandrake are
-rw-r--r--
that is
- the owner can read, and overwrite it,
- the users who are member of the same group than the owen can read it,
- the other users can read it as well.
ls -l in a shell (or konsole). In graphical mode (konqueror for instance), right-click on the file, click on properties in the menu, and then choose the permission tab.
To change those permissions, you can use the command chmod, or, in graphical mode, this same permissions tab.
Now, here is the real problem. You might want the default permissions on newly created file to be:
-rw-------
which means
control center, then the security tab, the Levels and checks icon, the System options tab... and change the value on the the last line: User umask. In my case, I had to change it to 066...
Why
|
And if you need a little help for all those unix commands, I really recommend the book Unix in a Nutshell. It's really good, with a nice summary of the most important Unix commands, shell references, and all those things you keep forgetting about sed, regular expressions, or vi.
Edited and reformatted 10/2005