LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-28-2005, 01:00 AM   #1
Verbal Kint
Member
 
Registered: Apr 2004
Posts: 99

Rep: Reputation: 15
"users" question


Im not sure if I have picked the right forum but here we go. I'm new to Linux and running Fedora 3. I have read that the command "users" shows you who is logged in? When I type "users" using ssh client putty, I get:

[root@linux ~]# users
root root root
[root@linux ~]#

I tried "logout" and that automatically closes my putty terminal but when I go back and type "users", I still have these three root instances. Is this normal or is there a way I can logout all these root accounts that are logged in? I was under the assumption that once I login with putty using my root account and typing "users", I should only see one instance of "root"?

Thanks!
 
Old 09-28-2005, 01:13 AM   #2
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
I think you should get one entry 'root'. Try login from PuTTY and issue
Code:
w
Check it's output. See wheather there are any other root instances.
 
Old 09-28-2005, 01:15 AM   #3
Verbal Kint
Member
 
Registered: Apr 2004
Posts: 99

Original Poster
Rep: Reputation: 15
[root@linux ~]# w
02:18:46 up 4:11, 3 users, load average: 0.00, 0.00, 0.03
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root :0 - 22:13 ?xdm? 5:18 0.35s /usr/X11R6/bin/
root pts/1 - 22:13 4:05m 0.08s 0.08s bash
root pts/3 192.168.1.103 02:18 1.00s 0.13s 0.03s w
 
Old 09-28-2005, 02:16 AM   #4
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
The last record "root pts/3 192.168.1.103 02:18 1.00s 0.13s 0.03s w" shows your current connection executing w command as root. This is obvious.

Third record "root :0 - 22:13 ?xdm? 5:18 0.35s /usr/X11R6/bin/" is normal if you are using a graphical login in your Linux system. In Fedora, RH runlevel 5 does this. In Debian Sarge runlenels 2-5 does this. I mean you might be having X running.

Second record "root pts/1 - 22:13 4:05m 0.08s 0.08s bash" is the one you should check. This means there is one session open (usually a terminal) as root.

So go to your Linux box and check. I guess you are logged in as root and using a GUI and have a terminal open. Once you close them check again with w.
 
  


Reply



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
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
"users.allow" and "users.deny": under what directory, in Mandriva? KWTm Mandriva 0 10-09-2005 02:23 PM
"adduser" not adding users to default group "users" PunkPT Slackware 2 09-23-2004 11:50 AM
"rwx" and "valid users" - which one has precedence? kenji1903 Linux - Networking 8 07-27-2004 10:21 AM
New to linux.. question about "users" Sabastian Linux - Software 2 06-20-2003 08:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:08 PM.

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
Open Source Consulting | Domain Registration