O'Reilly logo

Getting Started with Cubieboard by Olliver M. Schinagl

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Changing the current user without logging out

To actually change to a different user as if one would log in with that user, the su command is used. With su followed by a different username, it is possible to change the identity of the said user. Unlike sudo, which requires the current user's password, here, the user to whom access is being requested is required, as shown in the following command:

packt@PacktPublishing:~$ su root
Password:

Logging out of a shell or from a different user, the following exit command is used. It takes no parameters. Alternatively, Ctrl + d can also be used to log out on nearly all shells.

packt@PacktPublishing:~$ exit

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required