From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,dae0801e11cef53e X-Google-Attributes: gidfee84,public From: Stefan Schwarzer Subject: Re: lpc permissions Date: 1998/08/25 Message-ID: <6rvf78$r30$3@infosun2.rus.uni-stuttgart.de>#1/1 X-Deja-AN: 384714855 References: <01bdd076$a0aaac20$0d07a8c0@calvin.olaf.com> Organization: ICA 1, Stuttgart University User-Agent: tin/pre-1.4-971224 (UNIX) (SunOS/5.5.1 (sun4u)) Newsgroups: comp.unix.osf.osf1 Matt Payton wrote: > We have a dec running DU 4.0b that has 35+ remote printers configured. > When a printer hangs occaisionally, we obviously have to restart it via > lpc. This isn't a problem, except that I'd like to minimize use of the > root login. When trying to stop a printer from a username other than root > we get the "?privileged command" message. Is there an easy way to allow at > least 1 other specified login full privileges to lpc ? Thanks. I guess the 'standard' answer to that question is 'sudo' Get it from the net and compile. It keeps a configuration file in /etc in which you specify the authorized user, the full path of the command to run and the host on which to grant access to the command. It runs suid root and asks the authorized user for *his* password before letting him execute the command with root privileges. -- Stefan Schwarzer office: +49-(0)711-685-7606 fax: x-3658 Uni Stuttgart, ICA 1 e-mail: sts@ica1.uni-stuttgart.de Pfaffenwaldring 27 pgp public key available on request/finger 70569 Stuttgart, Germany http://www.ica1.uni-stuttgart.de/~sts