System Administration Guide: Advanced Administration

Billing Users

If you provide special user services by request. Special services include 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 the acctsh(1M) man page for more information.

ProcedureHow to Bill Users

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Charge a user for special services.

    # /usr/lib/acct/chargefee username amount

    Is the user account you want to bill.


    Specifies the number of units to bill the user. This value is an arbitrary unit that you set to charge users based on some task such as printing or restoring a file. You would have to write a script that invokes the chargefee utility and charges a user for a specific task.

Example 9–4 Billing Users

In the following example, the user print_customer is charged 10 units.

# /usr/lib/acct/chargefee print_customer 10