Exercise 23: Hare Trucks


The numeric representation of rw-r----- is 640. Subtracting this from the defauflt for new files of 666 gives a remainder of 26. To set the system such that all newly created files have these default permissions,

1.

Log in as root.

2.

From the KDE kicker, click on the icon of a monitor to open a terminal shell. Optionally, from the menu, select System, Terminal, and then Konsole.

3.

Type cd /etc.

4.

Edit the profile file and change the default entry from umask 022 to umask 026.

TIP

If you try to test the configuration change, note that the profile file is not read until the next time a shell is launched. You won't see anything different in the permissions of newly created files until after you've launched a new shell.


To change the permissions on all files currently in the /tmp directory to read-only permissions for all users,

1.

Type cd /tmp.

2.

Type chmod 444 *

3.

Exit the terminal by typing exit.



NovellR Linux Certification Practium Lab Manual
NovellR Linux Certification Practium Lab Manual
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 192

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net