UTERMINAL
TERMINAL
NEXT
$V1$
$V1$
PAUSE
BOTCLEAN
ENCORE5
CLEAN
ENCORE
BOX
COMMAND
GO
chmod
Remember the syntax for the chmod command is:
chmod mode filename
NOTES:
Only the owner or a superuser may change permissions! You should
remember how to change the mode for owner, group and others.
The command chmod 755 * gives all permissions to the
owner, and read and execute permission for the group and
others (-rwxr-xr-x) for all files in the current directory.
The command chmod 700 mydirectory removes access to the
directory mydirectory from the group and others (-rwx------).
To set the user ID for a file, you need to add one more digit
to the left of the mode. That digit is a 4 . For example,
chmod 4755 program
will set the user ID for the file program to be -rwsr-xr-x.
Type the command that will set the user ID for the file doit
and give the following permissions:
all permissions for the owner,
execute only permission to the group, and
execute only permission to the others.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please use chmod with permission 4711 for doit
Please type chmod 4711 doit
I guess I must type this for you:
$PROMPT$
FORGET2
Observe the result on the terminal!
chmod 4711 doit
$PROMPT$
Now verify that the file permissions have indeed been changed
by using the appropriate command to check all files in current directory.
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
For this example, please type ls -l
For this example, please type ls -l
I guess I must type this for you:
$PROMPT$
FORGET3
ls -l
Observe the result on the terminal!
total 12
-rwx--x--x 1 demo 640 Nov 07 12:17 file1
-rwx--x--x 1 demo 402 Nov 01 15:34 file2
-rws--x--x 1 demo 2452 Nov 02 09:12 doit
$PROMPT$