HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Server root access issue
Operating System - HP-UX
1835259
Members
2569
Online
110078
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
04-08-2006 01:46 PM
04-08-2006 01:46 PM
Server root access issue
Hi,
In my origination there is three system admin and every one has root password, I want to know that how many times they are accessing the system and what commands they are running on system becz the server is very critical. How can we track it ???
Please help me if possible......
Thanks
Bhupal Singh
In my origination there is three system admin and every one has root password, I want to know that how many times they are accessing the system and what commands they are running on system becz the server is very critical. How can we track it ???
Please help me if possible......
Thanks
Bhupal Singh
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2006 06:16 PM
04-08-2006 06:16 PM
Re: Server root access issue
Shalom Bhupal,
Few ideas:
1) User is forced to log on as him/her self and then su - root. The logging is done to a different file based on who am i output
# in profile
H1=$(who am i | awk '{print $1}')
HISTFILE=".sh_history${H1}"
This gives a different file depending on what the originating user is.
To make this work, you MUST disable direct root login.
2) Several user id's with id zero that have their own home directories and HISTFILE (s).
This is a security problem and even though we do it where I work,I'd go for option 1.
SEP
Few ideas:
1) User is forced to log on as him/her self and then su - root. The logging is done to a different file based on who am i output
# in profile
H1=$(who am i | awk '{print $1}')
HISTFILE=".sh_history${H1}"
This gives a different file depending on what the originating user is.
To make this work, you MUST disable direct root login.
2) Several user id's with id zero that have their own home directories and HISTFILE (s).
This is a security problem and even though we do it where I work,I'd go for option 1.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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
04-08-2006 08:28 PM
04-08-2006 08:28 PM
Re: Server root access issue
Hi,
There is no need for them to know the root password. If you implement sudo they can become root and perform there work.
When implementing sudo you also need to modify the /etc/profile so that you can keep track of what they are doing.
if [ `whoami` = "root" ]
then
export HISTFILE=~/.hist.sa.`logname`
else
export HISTFILE=~/.hist.`logname`
fi
But keep in mind that the history file isn't keeping track of when a command was executed.
GoodLuck
Darrel
There is no need for them to know the root password. If you implement sudo they can become root and perform there work.
When implementing sudo you also need to modify the /etc/profile so that you can keep track of what they are doing.
if [ `whoami` = "root" ]
then
export HISTFILE=~/.hist.sa.`logname`
else
export HISTFILE=~/.hist.`logname`
fi
But keep in mind that the history file isn't keeping track of when a command was executed.
GoodLuck
Darrel
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP