OUTPUTDF
Filesystem kbytes used avail capacity Mounted on
/dev/hp0h 140564 119959 6548 95% /x
/dev/hp0g 208595 160245 27490 85% /spare
/dev/ra1e 146347 71724 59988 54% /mnt
/dev/ra1d 7429 68 6618 1% /tmp
/dev/ra0a 7429 6385 301 95% /
sunA:/usr1 163751 137952 9423 94% /sun/usr1
BOX
COMMAND
BOTCLEAN
LNEXT
UTERMINAL
TERMINAL
NEXT
$V1$
HILINE
PAUSE
q to quit, <CR> to continue
PAUSE2
GO
Let's look again at the output
of the df command to determine
the name of the server. Please
enter it at the prompt.
#
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please use df
Please use df
You will be helped this time!
FORGET1
df
Observe the result above.
Remember, imported file systems are preceded by the servernames
followed by a colon. The server listed above, the machine called
sunA, is the one we'll log on to with the rlogin program.
sunA:/usr1 163751 137952 9423 94% /sun/usr1
rlogin
SYNTAX
rlogin remote hostf [-l username]
FUNCTION
rlogin - remote login program; connects
your terminal on the current machine to the remote
host.
OPTIONS
-l username - login as username instead of your login name.
Now let's use the rlogin command
to log on to the server sunA as
root.
#
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please use rlogin with
the -l root option.
Please type rlogin sunA -l root
You will be helped this time!
FORGET2
rlogin sunA -l root
Observe the result on the terminal.
Last login: Tue Nov 29 18:08
Sun UNIX 4.2 Release 2.3 (SERVER)
You have mail
#
The next step is to use the chown command to change the
ownership to root for the files you want to run as setuid
root. Remember the chown command?
chown
SYNTAX
/etc/chown [-f] [-R] owner [group] file(s)
FUNCTION
chown - changes the id of the owner of the file(s)
to owner.
OPTIONS
-f - do not report errors
-R - recursively descend into directories setting the
ownership of all files in each directory encountered
Let's now change the ownership to
root for all the files in the
current directory that end with .c .
Please type in the command.
#
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
No, use the argument root for
*.c
Please type chown root *.c
I guess I must type this for you:
#
FORGET4
chown root *.c
#
Observe the result on the terminal!