Umask 077

If you were then to log in and create a file, you would find that it had permissions -rw-------

or 600, so it would be not be readable or writable by any other user (apart from root). Similarly, if you created a directory, it would have the permissions drwx------ , so that it could not be explored by any other user.

The file .bashrc can also be used to control the appearance of the prompt and set paths and environment variables.

The user's file .xinitrc (if it exists) controls the behavior of the X Window system when it is started by the user. In particular, the window manager to be used can be specified with lines in .xinitrc near the end of the file similar to this:

Was this article helpful?

0 0

Post a comment