[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SUID



On Thu, Sep 20, 2001 at 01:08:45AM +0800, csj wrote:
> On Wed, 2001-09-19 at 06:54, Nathan E Norman wrote:
> > On Wed, Sep 19, 2001 at 04:35:11AM +0800, csj wrote:
> > > On Wed, 2001-09-19 at 03:15, Jason Healy wrote:
> > > > At 1000834035s since epoch (09/18/01 13:27:15 -0400 UTC), Ian Marlier wrote:
> > > > > I feel like an idiot asking this, but how does one set something to 
> > > > > run SUID?
> > > > 
> > > > chmod u+s To setUID to the user that owns the file
> > > > chmod g+s To setGID to the group that owns the file
> > > > 
> > > > Standard disclaimer: Be VERY careful with setuid programs!  You're
> > > > essentially giving anyone the ability to run a program as another user.
> > > 
> > > This I believe is the only way to burn CDR's as nonroot.
> > 
> > Well, that's not true :)
> > 
> > $ ls -lL /dev/sg?
> > crw-------    1 root     root      21,   0 Dec 31  1969 /dev/sg0
> > crw-rw----    1 root     cdrom     21,   1 Dec 31  1969 /dev/sg1
> > crw-rw----    1 root     cdrom     21,   2 Dec 31  1969 /dev/sg2
> > 
> > Anyone in the cdrom group can burn a cd.
> 
> And make coasters ;)

I've only made one so far; I foolishly tried to copy a cd using
xcdroast.  Since both my reader and writer are on the same ide
channel, this didn't work out too well (ide is just too prone to
overloading).

Writing cds from an image on my lvd scsi drive works fine :)

Cheers,

-- 
Nathan Norman - Staff Engineer | A good plan today is better
Micromuse Ltd.                 | than a perfect plan tomorrow.
mailto:nnorman@micromuse.com   |   -- Patton

Attachment: pgpmen_clrdI2.pgp
Description: PGP signature


Reply to: