From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,55a0adebdd6c014e X-Google-Attributes: gidf678f,public From: "Yong S. Yi" Subject: Re: Unix on digital Alphastation Date: 2000/01/15 Message-ID: <38800DA8.5458B3FA@nexus.async.org>#1/1 X-Deja-AN: 572896013 Content-Transfer-Encoding: 7bit References: <85n1vu$m8p$1@upsn21.u-psud.fr> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-ELN-Date: Fri Jan 14 23:08:21 2000 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 947920101 38.30.8.162 (Fri, 14 Jan 2000 23:08:21 PST) Organization: EarthLink Network, Inc. MIME-Version: 1.0 Reply-To: ysyi@async.org NNTP-Posting-Date: Fri, 14 Jan 2000 23:08:21 PST Newsgroups: comp.unix.osf.misc Sylviane Molinet wrote: > I have problems to mount cdrom for users, only root can do that > Any suggestions are welcome ... and that's how it *should* be. Why do you need users mounting devices? For example, someone could easily make a CD with a binary with a setuid bit, owned by root, and obtain root access to the system. If you want local users with console access to be able to mount a CD-ROM, though, you could write a small wrapper to check the UID of that user (to see if it matches a local user) and do a setuid() to 0, mount the CD-ROM (but with options such as 'nodev', 'nosuid', etc), and exit. Same deal with umount, so they can take the CD-ROM out. -- Yong S. Yi KeyID 1024/8B4FF151 http://async.org/~ysyi/ PGP Key Fingerprint = 3A 65 AE 82 07 2A EF 73 0B 84 67 5D 1D 96 9F 8D Enriched, VCard, and HTML messages > /dev/null