If you provide special user services by request, such as restoring files or remote printing, you might want to bill users by running the chargefee utility. The chargefee utility records charges in the /var/adm/fee file. Each time the runacct utility is executed, new entries are merged into the total accounting records.
See acctsh(1M) for more information.
Charge a user for special services.
# /usr/lib/acct/chargefee username amount |
username |
User account you want to bill. |
amount |
Number of units to bill the user. This is an arbitrary unit that you set to charge users based on some task like printing or restoring a file. You would have to write a script that invokes chargefee and charges a user for a specific task. |
The following example charges the user print_customer 10 units.
# /usr/lib/acct/chargefee print_customer 10 |