Solved

Ubuntu: Switch to a user

Posted on 2011-09-11
2
365 Views
Last Modified: 2012-05-12
Hi,

1) I have a linux workstation (Ubuntu 10.04.3)

2) I open a terminal and it appers like this:

Jack@ubuntu-10:~$

3) Now, I want to change to "root"; i do the followings:
sudo -s
4) And it changes like this --> root@ubuntu-10:~#

5) After quite sometimes, I want to change back to "jack@ubuntu-10:~$"
- I issue the command --> sudo jack
- The message: sudo: jack: command not found

6) My question: What is the command to change from "root@ubuntu-10:~#" to "jack@ubuntu-10:~$?

7) Thank you

tjie
0
Comment
Question by:tjie
2 Comments
 
LVL 48

Accepted Solution

by:
Tintin earned 400 total points
ID: 36519681
Type in

exit

or

Ctrl-D
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 100 total points
ID: 36519684
Issue

exit

to return to your original shell (the one you issued "sudo" from).

wmp
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux hostname change 2 73
CentOS/RHEL 7 Linux maillog worldwide readable 2 68
awk file 6 56
000webhost.com default error log 1 28
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question