Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printers - 'users.deny'

Status
Not open for further replies.

zoonkai

MIS
May 1, 2000
71
US
I have a friend who needs to restrict access to 4 printers to certain users.

If he goes to scoadmin, his printers are not listed there due to a patch that was installed in the past. I'm not really sure about this, nor is this an issue.

Since he can't use the gui scoadmin, he can't just easily move everyone to the deny list. He will need to maintain a text file with all users listed except the one(s) allowed.

My question is there a way to do just the opposite. Only have to name the users allowed to use that printer? (This would be much easier to maintain over time) I've noticed on my SCO Server that new users I've added are allowed to use my restricted printers (until I change it))


I beleive this is SCO 5.0.5, but I won't swear to that version.

Thanks,
Zoonkai Donald (Zoonkai) Dixon
zoonkai@don-nan.com

 
You could maintain an allowedusers file and have a daily or hourly cron job that does something like:

[tt]cut -f1 -d: /etc/passwd | grep -vf allowedusers > deniedusers[/tt]

I'm not sure what the deniedusers file is called, but you've already encountered it so you I'm sure you know! Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top