Problem running 4.2 rdump from a workstation

martin levy martin at sabre.UUCP
Wed Nov 14 02:57:05 AEST 1984


<vax-busters>

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.



More information about the Comp.unix.wizards mailing list