How to define the printer table in NIS+

How to define the printer table in NIS+

Run the following command, as root, to set up the NIS+ printers table
definition:

# nistbladm -c -D access=n+r,o+rmcd,g+rmcd,w+r printers \
printer_name=S,o+rmcd,g+r,w+r printer_host=S,o+rmcd,g+r,w+r \
description=,o+rmcd,g+r,w+r printers.org_dir.`domainname`.

Once you have set up this definition, you can confirm the permissions
are set properly:

# niscat -o printers.org_dir
Object Name : printers
Owner : ppp.hans.com.
Group : admin.hans.com.
Domain : org_dir.hans.com.
Access Rights : r---rmcdrmcdr---
Time to Live : 12:0:0
Object Type : TABLE
Table Type : printers
Number of Columns : 3
Character Separator :
Search Path :
Columns :
[0] Name : printer_name
Attributes : (SEARCHABLE, TEXTUAL DATA, CASE SENSITIVE)
Access Rights : ----rmcdr---r---
[1] Name : printer_host
Attributes : (SEARCHABLE, TEXTUAL DATA, CASE SENSITIVE)
Access Rights : ----rmcdr---r---
[2] Name : description
Attributes : (TEXTUAL DATA)
Access Rights : ----rmcdr---r---

After this, Admintool or the nisaddent command can be used to populate
the printers table.



Home
FAQ