- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Verifying initial logging session from root sessio...
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
Discussions
Discussions
Forums
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
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
тАО07-10-2006 04:12 PM
тАО07-10-2006 04:12 PM
Verifying initial logging session from root session
Initially logging as a normal user then switching over to root user i want to verify my original(initial) user id from root session.
What is the command for that ?
Thanks,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2006 04:19 PM
тАО07-10-2006 04:19 PM
Re: Verifying initial logging session from root session
ORIG_USER=$(who am i)
echo "Original Login: ${ORIG_USER}"
echo "Current User: ${LOGNAME}"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2006 04:21 PM
тАО07-10-2006 04:21 PM
Re: Verifying initial logging session from root session
Your "uid" will be same. You can see using,
# id -u username
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2006 04:27 PM
тАО07-10-2006 04:27 PM
Re: Verifying initial logging session from root session
We use powerbroker to become root from a normal user. The command $who am i
didn't show the initial user id.
Thanks,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2006 04:34 PM
тАО07-10-2006 04:34 PM
Re: Verifying initial logging session from root session
Try using # id -u username. It should definitely help you.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2006 04:48 PM
тАО07-10-2006 04:48 PM
Re: Verifying initial logging session from root session
Thanks,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2006 04:58 PM
тАО07-10-2006 04:58 PM
Re: Verifying initial logging session from root session
I am not sure this will be helpful to you, Try this, # whodo. It will display both root and normal user .
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2006 08:21 PM
тАО07-10-2006 08:21 PM
Re: Verifying initial logging session from root session
As I dont use powerbroker it is just guess...
I believe since you use powerbroker, it has the privilege of granting root access to people entitled to... and so if you trace, the initator of su root would be the product itself...
But I believe because the product is well designed that it logs somewhere to whom it has give root access (and time and from where etc...)
So I would go into powerbroker's documentation if I were you
All the best
Victor
P.S.
Ive seen other products who execute programs/commands/etc... "as"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2006 01:11 AM
тАО07-11-2006 01:11 AM
Re: Verifying initial logging session from root session
By the way:
id -u username
and
who am i
(do not show the orginal login, contrary
what is said before)
who -um
root pts/0 Jul 11 11:31 . 12559 orasrv1
shows the orginal login