Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-28-2005, 01:00 AM
|
#1
|
Member
Registered: Apr 2004
Posts: 99
Rep:
|
"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!
|
|
|
09-28-2005, 01:13 AM
|
#2
|
Member
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441
Rep:
|
I think you should get one entry 'root'. Try login from PuTTY and issue Check it's output. See wheather there are any other root instances.
|
|
|
09-28-2005, 01:15 AM
|
#3
|
Member
Registered: Apr 2004
Posts: 99
Original Poster
Rep:
|
[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
|
|
|
09-28-2005, 02:16 AM
|
#4
|
Member
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 03:18 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|