Solved

Ubuntu: Switch to a user

Posted on 2011-09-11
2
375 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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
installing LSI MegaRAID Storage Manager on CentOS 7 22 780
Linux Network manager connection based on location 3 54
Linux script delete files 3 51
bash file 10 49
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

828 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