Which single command could you give to log in as root on the remote sys- tem named plum, if plum has remote root logins disabled? Assume you are running the command as a user without root privileges, you have not set up an automatic login for ssh, and you have the same username on both systems.

What will be an ideal response?


a. On a system that uses su, the following command logs you in running
with root privileges. You will have to supply two passwords (yours and
root’s).
$ ssh -t plum su -
b. On a system that uses sudo, the following command logs you in running
with root privileges. You will have to supply two passwords (yours two
times).
$ ssh -t plum sudo -i
The su/sudo utility requires that its input come from standard input; the –t
option allocates a pseudo-tty (terminal) to run su/sudo.

Computer Science & Information Technology

You might also like to view...

Headings named Series 1, Series 2, and Series 3 located on the Excel worksheet will display in the ________ of the resulting chart

Fill in the blank(s) with correct word

Computer Science & Information Technology

While entering a(n) ____________________, most computers hide the actual characters by displaying some other characters, such as asterisks (*) or dots.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

With a Virtual Circuit, no routing decisions need to be made as many packets for a specific destination arrive at a router.

a. true b. false

Computer Science & Information Technology

Prepare a 10-minute talk explaining Web 2.0 and cloud computing to a college class. Using the text and your own Internet research, briefly describe the five most important points you will include in your presentation.

What will be an ideal response?

Computer Science & Information Technology