Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: "Yong S. Yi" <ysyi@nexus.async.org>
Subject: Re: Unix on digital Alphastation
Date: 2000/01/15	[thread overview]
Message-ID: <38800DA8.5458B3FA@nexus.async.org> (raw)
In-Reply-To: 85n1vu$m8p$1@upsn21.u-psud.fr

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
<ysyi@alf.dec.com>      Enriched, VCard, and HTML messages > /dev/null



  parent reply	other threads:[~2000-01-15  5:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-14  5:00 Unix on digital Alphastation Sylviane Molinet
2000-01-14  5:00 ` Pedro M. Matias
2000-01-15  5:00   ` Nikolay Dzhilinskiy
2000-01-15  5:00 ` Yong S. Yi [this message]
     [not found]   ` <574EBDF6064C83C9.6FA3B76335601E20.3B4E7B1421109A13@lp.airnews.net>
2000-01-16  5:00     ` Stuart R. Fuller
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox