[SLUG] Solution! [was: shell script question]

From: Russell Hires (rhires@earthlink.net)
Date: Sat Feb 08 2003 - 08:38:52 EST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I got this from the Apple forums, and it worked! :-)

What I did was to create a new shell script

#!/bin/sh
/usr/sbin/bless -folder9 '/System Folder' -setOF

and called it /usr/sbin/OS9. Then I did chmod u+xs /usr/sbin/OS9 (as root). I
had to turn on the setuid bit. Now my users can switch between OS's...

Thanks for everyone's help!

Russell

On Thursday 30 January 2003 12:41 pm, you wrote:
> On Thu, 2003-01-30 at 11:59, Russell Hires wrote:
> > # Cmnd alias specification
> > Cmnd_Alias OS9 = /usr/sbin/bless -folder9 '/System Folder' -setOF
> >
> > # Defaults specification
> >
> > # User privilege specification
> > root ALL=(ALL) ALL
> > %admin ALL=(ALL) ALL
> > student ALL=(ALL) NOPASSWD: OS9
> >
> > I think maybe I got the command part wrong. Should it just contain the
> > command and not the options?
>
> Another thought --
> For sh*ts and giggles, you could try changing the Cmd_Alias to:
> Cmnd_Alias OS9 = /usr/sbin/bless , and try the command again. Obviously,
> it would be preferable to restrict the command as much as possible.

- --
Linux -- the OS for the Renaissance Man
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+RQhtAqKGrvVshJQRAj1mAJ9FRA9hbbn+YQ45XlwTnAYSqsHvEwCfTo+0
TMRweUGv28+5ztQT7ZhXLeo=
=77Oz
-----END PGP SIGNATURE-----



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:05:02 EDT