Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 03-01-2012, 11:26 AM   #1
Nitesh Agarwal
LQ Newbie
Registered: Sep 2011
Location: Rourkela
Distribution: Ubuntu
Posts: 4

Rep: Reputation: Disabled
Smile Ubuntu

11.10: i am logged in as guest : how do i login as a different user via terminal?
Old 03-01-2012, 11:52 AM   #2
Senior Member
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,966

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Did you ssh into the host? If yes, then, 'ssh username@host' you will be prompted for the username you supply, that users password. Enter it, and if all is good, you will be connected.
Old 03-01-2012, 12:55 PM   #3
Registered: Dec 2003
Posts: 95

Rep: Reputation: 35
If you just want to execute a command as another user, then sudo is a tool you can use.
Old 03-01-2012, 07:41 PM   #4
Senior Member
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,570

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
From the top of this page;
Debian This forum is for the discussion of Debian Linux.
Further questions on Ubuntu will recieve better attention posted here;
Old 03-01-2012, 08:34 PM   #5
Registered: Aug 2002
Posts: 13,453

Rep: Reputation: 1105Reputation: 1105Reputation: 1105Reputation: 1105Reputation: 1105Reputation: 1105Reputation: 1105Reputation: 1105Reputation: 1105
Moved: This thread is more suitable in linux-Ubuntu and has been moved accordingly to help your thread/question get the exposure it deserves.
Old 03-05-2012, 05:46 PM   #6
Registered: Aug 2011
Location: $HOME
Distribution: Slackware, FreeBSD, Debian
Posts: 50

Rep: Reputation: 1
Originally Posted by bryanl View Post
If you just want to execute a command as another user, then sudo is a tool you can use.
Yup. Say, you want to run a command as jarubyh, use
sudo jarubyh command



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Expected Changes In Ubuntu 11.10 Oneiric Ocelot Ubuntu Developer Summit Overview LXer Syndicated Linux News 1 05-14-2011 01:38 AM
LXer: Ubuntu live CD will let you upgrade to newer Ubuntu versions Ubuntu 11.04 Development LXer Syndicated Linux News 0 03-01-2011 04:20 PM
LXer: Ubuntu Restricted Extras - Lets Ubuntu Play Everything [Ubuntu for Beginners Sc LXer Syndicated Linux News 0 04-20-2010 01:10 AM

All times are GMT -5. The time now is 07:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration