UTERMINAL
TERMINAL
NEXT
$V1$
$V1$
PAUSE
BOTCLEAN
ENCORE5
CLEAN
ENCORE
BOX
COMMAND
GO
chown
SYNTAX
chown owner filename(s)
FUNCTION
chown - changes the id of the owner
of the filename(s) to owner.
NOTES:
Only the owner or a superuser may change
a file's owner or group ID.
chown fred *
makes fred the owner of all files in the directory.
chown david file1 file2
makes the user david the owner of files file1 and file2.
Let's look at the long listing of files
in the current directory:
Please type in the appropriate command.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
No, the command would be ls -l
Please type ls -l
I guess I must type this for you:
$PROMPT$
FORGET1
Observe the result on the terminal!
ls -l
total 12
-rw-r--r-- 1 demo 640 Nov 07 12:17 file1
-rwxr--r-- 1 demo 402 Nov 01 15:34 file2
-rw------- 1 demo 1402 Nov 09 20:57 file3
-rw-r----- 1 demo 749 Sep 27 16:43 file4
-rwxr-xr-x 1 demo 2452 Nov 02 09:12 demofile1
$PROMPT$
NOTE, that demo owns all the files!
Let us use the command chown to make klm the
owner of all of the files whose names begin with file.
Please type in the appropriate command.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
No, use the chown to make klm the owner of file*
Please type chown klm file*
I guess I must type this for you:
$PROMPT$
FORGET2
Observe the result on the terminal!
chown klm file*
$PROMPT$
Now verify that indeed the file owner has been changed by using
the ls command.
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
No, you need to use ls with the -l option.
Please type ls -l
I guess I must type this for you:
$PROMPT$
FORGET3
ls -l
Observe the result on the terminal!
total 12
-rwxr-r-x 1 klm 640 Nov 07 12:17 file1
-rw-r----x 1 klm 402 Nov 01 15:34 file2
-rwxr----- 1 klm 1402 Nov 09 20:57 file3
-rw------- 1 klm 749 Sep 27 16:43 file4
-rw----r-- 1 demo 2452 Nov 02 09:12 demofile1
$PROMPT$
Note that the owner of all files whose names begin
with file has been changed to klm, while the
owner of the demofile1 remained unchanged!