- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- equivalent of /usr/lib/acct in Linux
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
01-30-2003 03:11 PM
01-30-2003 03:11 PM
Now i want to retain the commands when i modify the shell script on Linux.
I searched the documentation for it but couldnt find any.
Can someone help me find how to use the prtacct and other acct features on a linux server.
Thank you in advance
Paddy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 04:18 PM
01-30-2003 04:18 PM
Re: equivalent of /usr/lib/acct in Linux
What sort of details does this give you?
What sort of details do you want to end up with?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 04:57 PM
01-30-2003 04:57 PM
Re: equivalent of /usr/lib/acct in Linux
Problem is HP-UX is proprietary and you're not likely to get source code access.
People have had 30 year careers at HP and never seen souce code.
I'm not sure if this is a command set owned by HP
I have doubts but these two links might give you a clue.
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/acct-6.3.2/
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/upacct-1.2/
I don't think LVM was originally ported to Linux by looking at the source code. Some brave soul just decided to port the functionality. That may have changed.
P
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
01-31-2003 06:03 AM
01-31-2003 06:03 AM
Re: equivalent of /usr/lib/acct in Linux
here is my HP's /usr/lib/acct
acctcms acctcon2 accton acctwtmp diskusg lastlogin prdaily remove turnacct
acctcom acctdisk acctprc chargefee dodisk monacct prtacct runacct utmp2wtmp
acctcon acctdusg acctprc1 ckpacct fwtmp nulladm ptecms.awk shutacct vxdiskusg
acctcon1 acctmerg acctprc2 closewtmp holidays prctmp ptelus.awk startup wtmpfix
i will not be using all of them but a few like acctcon and runacct with diskusg.
I can see the port of nulladm as rewriting touch with permissions.beyond that i guess i have to write my own port.
thank you for the inputs.
appreciate your time
Paddy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 10:22 AM
01-31-2003 10:22 AM
SolutionI'm thinking about porting the chkconfig command from Linux to HP-UX and the service command.
P
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
01-31-2003 11:10 AM
01-31-2003 11:10 AM
Re: equivalent of /usr/lib/acct in Linux
By the way i would appreciate if you can point me some sources of literature for the porting.
Thank you for the attention
Paddy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 06:16 AM
04-16-2003 06:16 AM
Re: equivalent of /usr/lib/acct in Linux
This is scripted in perl and fairly simple.
----------------------------------
use File::Find;
open F,"while(
my $root = (split)[1];
local %b=();
print "$root\n";
find(sub{
my ($uid, $blocks) = (lstat)[4,12];
$b{$uid} += $blocks;
},
$root
);
for( sort{$b{$b}<=>$b{$a}} keys %b ){
print $b{$_},"\t".getpwuid($_)."\n";
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2003 01:06 PM
04-18-2003 01:06 PM
Re: equivalent of /usr/lib/acct in Linux
ac is part of the pacct RPM. quota is of course provided by the quota package.