LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-22-2004, 09:26 AM   #1
the_sLiDe
Member
 
Registered: Sep 2004
Distribution: Slack 10
Posts: 155

Rep: Reputation: 30
How do i know....


How do i know if i'm logging in as root or just as a regular user?? Thank you.
 
Old 09-22-2004, 09:29 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Code:
whoami
 
Old 09-22-2004, 12:20 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
To the left of the blinking cursor. If you see a $ sign, you are a user. If you see a # sign, you are root.
 
Old 09-22-2004, 12:34 PM   #4
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,091

Rep: Reputation: 45
to log in as root, you have to type "root" and roots password...otherwise, you're logging in as user.
 
Old 09-22-2004, 01:34 PM   #5
Boudewijn
Member
 
Registered: Nov 2003
Location: The Netherlands
Distribution: MDK: 10,10.1,10_amd64,9.2,9.1 . Debian: sarge,woody, Gentoo (X86 amd64 Sparc)
Posts: 219

Rep: Reputation: 30
root doesn't work on most dostro's; su will be much better
 
Old 09-22-2004, 01:58 PM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
Quote:
Originally posted by Boudewijn
root doesn't work on most dostro's
???? Root is root on all distros. Some distros merely choose to not show the root account on the login screen, but it's still there. Remove root and your system won't be able to be upgraded/amended/etc.
 
Old 09-22-2004, 02:01 PM   #7
Boudewijn
Member
 
Registered: Nov 2003
Location: The Netherlands
Distribution: MDK: 10,10.1,10_amd64,9.2,9.1 . Debian: sarge,woody, Gentoo (X86 amd64 Sparc)
Posts: 219

Rep: Reputation: 30
Ok, sorry

I thought you meant typing 'root' in the console to log in as root....
 
Old 09-22-2004, 02:21 PM   #8
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
That still works, when you get to a login screen (assuming you don't log in to a command prompt environment) hit ctrl+alt+Fn and you will come to a command prompt login screen. Login as root there.
 
Old 09-22-2004, 02:29 PM   #9
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
He means typing root at a terminal as opposed to su, hence:
Code:
$ root
as opposed to
Code:
$ su
 
Old 09-22-2004, 04:42 PM   #10
the_sLiDe
Member
 
Registered: Sep 2004
Distribution: Slack 10
Posts: 155

Original Poster
Rep: Reputation: 30
Is there a way to display all of the users?
 
Old 09-22-2004, 04:46 PM   #11
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
Just type finger into a console. Also read man finger.
 
  


Reply


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




All times are GMT -5. The time now is 06:25 AM.

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