Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2003 02:45 AM
10-23-2003 02:45 AM
general
Is there a way to figure out who is logged in as root. maybe workstation name or any other meaningful credentials.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2003 02:50 AM
10-23-2003 02:50 AM
Re: general
who -f | grep -i root
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2003 02:50 AM
10-23-2003 02:50 AM
Re: general
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2003 02:54 AM
10-23-2003 02:54 AM
Re: general
who -uT will give the details. But if the users are logged in from another hpux box, I feel this wont show the correct results (PCs from which the users login).
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2003 03:27 AM
10-23-2003 03:27 AM
Re: general
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2003 05:25 AM
10-23-2003 05:25 AM
Re: general
Example of output :
system boot Feb 10 07:10 2 0 S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2003 05:49 AM
10-23-2003 05:49 AM
Re: general
If you'll notice in my response, I used the '-R' (upper case R). Try that. Totally different output. It will list the hostanme or IP address of the machine the user is connecting from. Remember that unix is very case-sensitive. ;)
see 'man who' for more information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2003 06:48 AM
10-23-2003 06:48 AM
Re: general
Who -R normally shows the ip address or the fully qualified name of the workstation logged in into the system. I had exceed trace on my windows workstation, through which i can trace any ip address or workstation name, allowing me to know who is connecting to my server and from where.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2003 09:42 AM
10-23-2003 09:42 AM
Re: general
for i in `who -u |awk '{print $2}'`
do
ps -ef|grep $i |grep root
done
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2003 10:04 AM
10-23-2003 10:04 AM
Re: general
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.6/
Generate a file called /etc/securetty and place the word console in it, with file permissions of 400 root:root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2003 07:25 PM
10-23-2003 07:25 PM
Re: general
(display who is on and what they are doing)
Synopsis is :w [ -fhlsuW ] [ user ]
w -l (long output)
w -W (shows a wider field for the program name)
If a user name is included, the output is restricted to that user.
-----------
For Patrick:
In my manual the who command NOT has the option -R.
who [-mu] -s [-bHlprt] [ file ]
who [-mTu] [-abdHlprt] [ file ]
who -qn x [ file ]
Bruno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2003 08:06 PM
10-23-2003 08:06 PM
Re: general
Another problem is that not all sessions show up in who. And you won't get historical information.
Instead of using who, I would recommend last. It has the same option (-R) to get the ip or name from where the login came (in your case: last -R root
If you are only interested in active sessions, a better way is to look at the proces list for processes running as root and then look for the parent processes until you find the original user. If you want this, I can look further into this to give an example script.