Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site sabre.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!martin From: martin@sabre.UUCP (martin levy) Newsgroups: net.unix-wizards Subject: Re: Problem running 4.2 rdump from a workstation Message-ID: <652@sabre.UUCP> Date: Tue, 13-Nov-84 11:57:05 EST Article-I.D.: sabre.652 Posted: Tue Nov 13 11:57:05 1984 Date-Received: Wed, 14-Nov-84 04:50:39 EST References: <665@erix.UUCP> Organization: BCR, Navesink, NJ Lines: 23 The rcmd() code in rdump can be cleaned up to pass the current user and not "root". We did this and then made /etc/rdump (and /etc/dump) setuid with these permissions:- $ ls -lg /etc/*dump -r-xr-s--- 1 root operator 29696 Sep 27 1983 /etc/dump -r-xr-s--- 1 root operator 33792 Sep 27 1983 /etc/rdump This allowed only the people in group "operator" to do dumps (while still not giving them su privilege). As long as they have a login on the other machine where the tape drive is and either /etc/hosts.equiv or there own .rhosts file has the name of the workstation in it all worked ok. Another good thing about this method was that when the dumps were being run on the console by the operators and they walked away from the machine, we were not left with a console logged in as "root". martin. PS. /etc/rrestore does not need this code, because you should be root to restore. well at least for complete file system.