robertd@ncoast.UUCP (Robert DeMarco) (12/08/86)
I seem to be having a problem with file protectiom, I am running a bbs- like program on my system and I want , for the duration of my program, for the user to have the same accsess privlages to my files, because I need to accsess a secret file in the bourne shell login. (But it is read by me only thats why I have to change the uid to me). CAn any one help??? thanx [> Rd ps) Is there a goto like statement in bourne shell?
pdb@sei.cmu.edu.UUCP (12/10/86)
I've never had an problem using set-uid programs; chmod 4755 should do it. Of course, this only works for *programs* (i.e., something that has come out of a compiler). You can't set-uid a shell script (Well, actually, most versions of 4.2 and 4.3 do let you do this, but you really *don't* want to, as it causes a massive security hole; see the recent discussion on comp.unix.wizards). --Pat.