[wplug] Quick script/SU(or SUDO) question

Ben Beige dariuscardren at gmail.com
Thu Jul 13 14:57:23 EDT 2006


Hmm intersting,  just for a bit of background this is for a mud, we've
been having some diffacult w/ server reboots and there is a second
shell account for the website that we where going to make able to
start us up after a server reboot if the mud whent down.


On 7/13/06, terry mcintyre <terrymcintyre at yahoo.com> wrote:
> You might want to try something like "chmod og+s prog"
> -- that will permit other users to run yourprogram
> with your id and access privileges -- of course, the
> downside is that you don't have much control over who
> gets that access. You can restrict it to members of
> the same group, or open it to everyone, but you can't
> delegate it to just one other party.
>
>
>
> --- Ben Beige <dariuscardren at gmail.com> wrote:
>
> > I'm working on a small C program to allow a  suere
> > to start 1 program
> > from another users home directory w/o access to that
> > directory,
> > niether of the users should need root access oor to
> > know the others
> > password to make this sucessful. I've got the basic
> > structure down,
> > but it asks for a password  if ran this way, waht
> > would I need to
> > compile the password into this too? Sinnce it's just
> > not all that
> > useful if the other party needs to have my passowrd
> > to run it.
> >
> > Code so far:
> >
> >      #include <stdlib.h>
> >
> >      int main(void)
> >      {
> >           system("su user -c
> > /home/user/apppath/startup &");
> >           return null;
> >      }
> >
> > --
> > Ben Beige
> > dariuscardren at gmail.com
> > _______________________________________________
> > wplug mailing list
> > wplug at wplug.org
> > http://www.wplug.org/mailman/listinfo/wplug
> >
>
>
> Terry McIntyre
> UNIX for hire
> software development / systems administration / security
>
> 213-291-5169 or 2132915169 at tmomail.com ( text )
> terrymcintyre at yahoo.com
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
>


-- 
Ben Beige
dariuscardren at gmail.com


More information about the wplug mailing list