Thursday | 21 NOV 2024
[ previous ]
[ next ]

UniVerse Printing - Users and Printers

Title:
Date: 2023-08-02
Tags:  universe, sysadmin

This is a continuation of the printing knowledge that I've been building for UniVerse.

Printing in UniVerse

I now know how to let users modify printers which comes in handy when specific applications need to turn off and on printers.

There is a print_group file that gets created in /usr/spool/uv that lets users modify the universe printers. This file is required to even get access to usa for a user.

The structure of the file is:

uvprint:user1,user2,user3:PRINTER21,PRINTER95

When the print_group file isn't available this is the error message a user will get when they try to use usa:

> usa -o -p PRINTER21
usa: /usr/spool/uv/print_group does not exist or is not readable

If the file exists but the user doesn't have the correct printer available to them, they will get the following error:

> usa -o -p PRINTER21
usa: permission denied

Now let's add a line to the /usr/spool/uv/print_group file:

uvprint:nivethan:PRINTER21

Now when we try the usa command, we should see it work!

> usa -o -p PRINTER21

I'm not sure why this error comes up in such a way but it's probably because of a parsing failure. The below line will trigger the strange error.

uvprint:nivethan
usa: print_group file has line longer than 1024 chars, break into multiple groups