- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: enable accounting in hpux
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-18-2008 12:44 AM
09-18-2008 12:44 AM
enable accounting in hpux
any body have idea on how to enable user accounting in hpux.
Thanks,
Avinash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 12:55 AM
09-18-2008 12:55 AM
Re: enable accounting in hpux
____________________________________________
Create the following directory
/var/adm/sa
Add the following entried to the file /usr/spool/cron/crontabs/adm
# adm crontab file for
#
# Run Daily Accounting
0 4 * * 1-6 /usr/sbin/acct/runacct 2> /var/adm/acct/nite/fd2log
#
# Check size of /var/adm/pacct
0 * * * * /usr/sbin/acct/ckpacct
#
# Create summary files
15 5 1 * * /usr/sbin/acct/monacct
#
# Collect system accounting information and store in binary format
0 7-17 * * * /usr/lib/sa/sa1 1200 3
#
# Write a daily report to /var/adm/sa/sadd (where dd is day number)
0 18 * * 1-6 /usr/lib/sa/sa2 -s 7:00 -e 18:01 -i 3600 -A
#
# Disk Accounting
0 2 * * 4 /usr/sbin/acct/dodisk
Remove all comments from /etc/fstab (as some of the default accounting scripts don't handle them correctly)
Set flag to 1 in /etc/rc.config.d/acct, as follows:
#!/sbin/sh
# @(#) $Revision: 72.5 $
# Process accounting. See acct(1m)
#
# START_ACCT: Set to 1 to start process accounting
#
START_ACCT=1
Comment out the superfluous â dateâ commands in the script /usr/sbin/acct/dodisk (there are 2 lines which just call "date" but do nothing else). This prevents adm receiving pointless mail from cron with just date stamps in it
Set up /etc/acct/holidays file for the current year
____________________________________________
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 01:41 AM
09-18-2008 01:41 AM
Re: enable accounting in hpux
I wanted to know how do i enable user command accounting.
Thanks,
Avinash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 01:49 AM
09-18-2008 01:49 AM
Re: enable accounting in hpux
every command that every user types?
commands that privilidged users type?
Something else???
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 01:51 AM
09-18-2008 01:51 AM
Re: enable accounting in hpux
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 01:53 AM
09-18-2008 01:53 AM
Re: enable accounting in hpux
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 01:55 AM
09-18-2008 01:55 AM
Re: enable accounting in hpux
Thanks,
Avinash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 02:22 AM
09-18-2008 02:22 AM
Re: enable accounting in hpux
Do you record every mouse click and key press on your users PCs?
Or are we actually talking about adminsitrators who actually do nothing as theire own users... just login and then su to root or to a generic application admin.
Well you can get some basic stuff by collecting shell history files from users home directories, but of course users can edit and change those, so I'm assuming that won't fit what you want.
There are other things you can do... bit really it depends on what you are ultimately trying to achieve...
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 02:54 AM
09-18-2008 02:54 AM
Re: enable accounting in hpux
1)modprpw -k username
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 03:01 AM
09-18-2008 03:01 AM
Re: enable accounting in hpux
modprpw -k
unlocks a users account... nothing to do with logging user commands etc....
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 03:13 AM
09-18-2008 03:13 AM
Re: enable accounting in hpux
the better and preferred way is to
give sudo access.
enable history for each user.
exampl of history:
-rw------- 1 root sys 58158 Sep 10 15:42 .sh_history.root-arpdh
-rw------- 1 root sys 58792 Sep 5 14:32 .sh_history.root-naumanna
-rw------- 1 root sys 47454 Sep 18 08:24 .sh_history.root-neumannl
-rw------- 1 root sys 42918 Sep 17 13:58 .sh_history.root-rau
for this i have set /etc/profile as :
# Set up shell environment (PROMPT, HISTORY ):
export WaI=`who am i | awk '{print $1}'`
export HISTFILE="$HOME/.sh_history.$LOGNAME-$WaI"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 05:42 AM
09-18-2008 05:42 AM
Re: enable accounting in hpux
/usr/lbin/modprpw -x username ( to reset the password )
Thanks
SKR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 05:53 AM
09-18-2008 05:53 AM
Re: enable accounting in hpux
Duncan
(who seems to be getting very grumpy these days)
I am an HPE Employee
