Re: [linux][system] suid and file permissions

From: Bill Long (bill@longboys.net)
Date: 04/03/99


David Taylor wrote:
>
> On Sat, 3 Apr 1999, Bill Long wrote:
>
> >
> > okay. i have my mud set up to boot on system boot(from the rc.local
> > file)
> > my mud has its own user and group.  the trouble is, when i run it from
> > the rc.local file, it gets run as roots UID. so all the files created
> > during the session(new players, log files, etc) are owned by root.
>
> The script currently says something like
>
> /path/to/circle/autorun &
>
> yes?
>
> change it to
>
> su -c user "/path/to/circle/autorun &"
>
> [ If you really wanted to use the sticky bit, somethng like:
>    chown <user>.<group> -R /path/to/circle
>    chmod u+s,g+s /path/to/circle
>    chmod u+s,g+s /path/to/circle/bin/circle
>    could work.
> ]
this is pretty much exactly what i was doing but it wasnt working. after
a little research it appears that linux doesnt like the set user id and
set group id bits.

but the su -c .....stuff work just dandy.

>
> --
> David Taylor
> E-Mail: dtaylor@nildram.co.uk.spam
> ICQ:    268004
> [Remove .spam from e-mail to reply]
>
>      +------------------------------------------------------------+
>      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>      |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
>      +------------------------------------------------------------+

--
www.bellanet.com - very nice web hosting services
                 - web application services

www.giftsgalore.com : www.longboys.net
telnet://undying.longboys.net:4000 http://undying.longboys.net


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST