- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to set rights for printers
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2003 01:01 AM
08-28-2003 01:01 AM
How to set rights for printers
How can I set rights for printers ?
- one group of local users should access the local printer
- one group of local users shoudn??t access the local printer
Please help me !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2003 03:49 AM
08-28-2003 03:49 AM
Re: How to set rights for printers
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2003 04:27 AM
08-28-2003 04:27 AM
Re: How to set rights for printers
But once they figure out that lp is wrapped, then all they need to do is more the script to find out how to by pass it...
If it's from an application - then you have more control....and use the same wrapper script...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2003 04:30 AM
08-28-2003 04:30 AM
Re: How to set rights for printers
Adding up this and Bill hint: write some lines in the lp interface script.
If the uid belongs to group a, then print normally
If the iud belongs to group b, then do nothing.
Simple, no ?
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2003 12:35 AM
08-29-2003 12:35 AM
Re: How to set rights for printers
#!/bin/sh
# Which group do you belong to?
ID=$(id -gn)
case $ID in
iff_stud) echo "Permission denied"
exit 1;;
*) echo "Access granted" ;;
esac
I have tested the file in another file but it dosn??t work ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2003 01:13 AM
08-29-2003 01:13 AM
Re: How to set rights for printers
following is an example of parameters sent by lp to the printer:
filetest2-1908 orat01 1 /var/spool/lp/request/filetest2/dA1908itsap04
second column is the owner: orat01.
You can chacnge your check from UID to the string and match/not match the users you do not want to print.
$2 is the key, not $3 !!
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2003 01:24 AM
08-29-2003 01:24 AM
Re: How to set rights for printers
/etc/lp/interface/Lex1275 ?
/var/spool/lp/request/* ?
/etc/lp/member/... ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2003 01:32 AM
08-29-2003 01:32 AM
Re: How to set rights for printers
/etc/lp/interface/Lex1275
assuming that Lex1275 is the driver.
I paste my dummy file, i sued to extract that infos.
This is my filetest2 dummy printer, in /etc/lp/interface/filetest2
#!/usr/bin/sh
PATH="/usr/bin:/usr/lib"
export PATH
copies=$4
echo $* > /tmp/massimo.info
echo $1 $2 $3 $4 $5 $6 $7 $8 $9 >> /tmp/massimo.info
shift; shift; shift; shift; shift
files="$*"
i=1
while [ $i -le $copies ]
do
for file in $files
do
cat "$file" 2>&1
echo "\012\c"
done
i=`expr $i + 1`
done
Massimo