- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: traking for user
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
09-10-2007 10:06 PM
09-10-2007 10:06 PM
How to see all user working in my server
e.g i have two group dba and mysql
i want to see all user using my server.
and i can close the shell which work on it ?
thanks and best regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2007 10:09 PM
09-10-2007 10:09 PM
Re: traking for user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2007 10:14 PM
09-10-2007 10:14 PM
Re: traking for user
who -u will work to provide a best guess of who is currently logged in. Its based on data in the /var/adm/wtmp file and is not always accurate.
I don't know what you mean by the statement "i can close the shell which work on it?"
You can kill any process on the machine as root, which has these priviledges.
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
09-10-2007 10:23 PM
09-10-2007 10:23 PM
Re: traking for user
$ ps -fe | grep -v "^root"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2007 10:24 PM
09-10-2007 10:24 PM
Re: traking for user
the output of who -u command it is not out all user, if i am root the output only about the root user not another, if oracle and sql users using my server and i am root user how to see all these users and traking (last -oracle) and Expulsion from use the server
only.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2007 10:32 PM
09-10-2007 10:32 PM
Re: traking for user
If you are looking for the users "sql" and "oracle", you can find them with:
$ ps -fu sql -u oracle
If you want to find ALL users that are using sql or an Oracle database, that is much harder.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2007 10:55 PM
09-10-2007 10:55 PM
Re: traking for user
but remained how expulsion fro using the server.
namely only root user using the server.
thanks and best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2007 11:39 PM
09-10-2007 11:39 PM
Solution(There are some words missing above.)
Are you asking how to exclude everyone but root from using the machine?
I assume you don't want to go to single user mode?
You could use wall(1m) to ask them to logout.
Or you could kill them and then /etc/profile prevent them from logging in. You would also have to stop networking so rlogin, remsh, ssh don't work.
Here are some other threads that discuss this:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1070664
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=995109
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1138434
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2007 12:19 AM
09-11-2007 12:19 AM
Re: traking for user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2007 12:59 AM
09-11-2007 12:59 AM