Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

giving users permission to restart printer queue

0 views
Skip to first unread message

Doug Reeder (aka Skapti)

unread,
Jan 7, 2002, 4:43:45 PM1/7/02
to

How can I give users permission to restart the printer queue, under
Red Hat 6.1? Setting the SUID bit on /etc/rc.d/init.d/lpd doesn't do
it, regular users just get the same error message as before:

[reeder@yodel linux-notes]$ /etc/rc.d/init.d/lpd restart
Shutting down lpd: kill: (5492) - Not owner
kill: (5492) - Not owner
[FAILED]
Starting lpd:
touch: /var/lock/subsys/lpd: Permission denied

--
P. Douglas Reeder Lecturer, Dept. Computer/Info. Science, Ohio State Univ.
ree...@cis.ohio-state.edu http://www.cis.ohio-state.edu/~reeder/reeder.html
GE/S d+ s+:- a C+@$ UH+ P+ L E W++ N+ o? K? w !O M+ V PS+() PE Y+ PGP- t 5+ !X
R>+ tv+ b+++>$ DI+ D- G e+++ h r+>+++ y+>++

Michael Lee Yohe

unread,
Jan 7, 2002, 4:58:57 PM1/7/02
to
> How can I give users permission to restart the printer queue, under
> Red Hat 6.1? Setting the SUID bit on /etc/rc.d/init.d/lpd doesn't do
> it, regular users just get the same error message as before:

Have you tried looking at SUDO? sudo will allow you to specify a list
of users/groups that are allowed to execute a certain command (or all
commands) with root access. And, it's logged so you can see if someone
is abusing their privileges.

--

Michael Lee Yohe (myohe+...@redhat.com)
Software Developer, Engineering Services
Red Hat, Inc.

QUIPd 1.00: (23 of 533)
-> Watch what people are cynical about, and one can often discover
-> what they lack.
-> - George S. Patton, General (1885-1945)

Jason R. McVetta

unread,
Jan 9, 2002, 3:06:47 AM1/9/02
to Doug Reeder (aka Skapti)
In article <a1d4qh$dn$1...@news.cis.ohio-state.edu>,

ree...@cis.ohio-state.edu (Doug Reeder (aka Skapti)) writes:
>
> How can I give users permission to restart the printer queue, under
> Red Hat 6.1? Setting the SUID bit on /etc/rc.d/init.d/lpd doesn't do
> it, regular users just get the same error message as before:

The place to start is lpc(8). Not too terribly familiar with the
configurability (if at all), so you may need to give users permission to sudo
lpc (in /etc/sudoers).

0 new messages