From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1020c6,8c9469280c4ae1c2 X-Google-Attributes: gid1020c6,public X-Google-Thread: 10b612,8c9469280c4ae1c2 X-Google-Attributes: gid10b612,public X-Google-Thread: 1164f8,8c9469280c4ae1c2 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-05-01 06:02:06 PST Xref: sparky comp.sys.dec:2764 comp.unix.ultrix:4144 comp.unix.admin:3055 Path: sparky!uunet!snorkelwacker.mit.edu!spool.mu.edu!agate!boulder!ladymacb.cs.colorado.edu!drew From: drew@ladymacb.cs.colorado.edu (Drew Eckhardt) Newsgroups: comp.sys.dec,comp.unix.ultrix,comp.unix.admin Subject: Re: Floppy Disk Security? (Re: Help: how to set the ownership ...) Message-ID: <1992May1.130206.2668@colorado.edu> Date: 1 May 92 13:02:06 GMT Article-I.D.: colorado.1992May1.130206.2668 References: <1992Apr20.164826.11241@sci34hub.sci.com> <1992Apr23.123258.21085@ircam.fr> Sender: news@colorado.edu (The Daily Planet) Organization: University of Colorado at Boulder Nntp-Posting-Host: ladymacb.cs.colorado.edu In article <1992Apr23.123258.21085@ircam.fr> francis@ircam.fr (Joseph Francis) writes: >In article keithl@mukluk.cc.monash.edu.au (Keith Lewis) writes: > >Yes, I'm utterly curious about suid programs, and "root" ownership. >What is to prevent someone with an appropriate disk drive to twiddle a >few bits on a floppy and create suid root shells and such, mount and >execute them? Enquiring minds want to know. In the far-flung future I You can specify a nosuid mount option. Since mount(2) is only callable by root, normal users cannot run mount(1) unless it is suid to root. So, you make a setuid to root program / shell script (remember about the - after the interpreter name), that runs mount(1) or calls mount(2) and mounts the floppy nosuid. Normal users can't mount floppies with setuid enabled, and it isn't a problem.