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

Re: Fwd: [cobalt-users] shell commands as root



hi ok sorry silly me.

i forgot the first command i run

chown admin /etc/httpd
i did the above then I used a commandline cgi i owned and uploaded as admin to
copy the httpd.conf to /etc/httpd.conf


but hang on i think it will work anyway coz when you install a package it is
running as root anyway, if you are using the control panel
so any commands in the packing_list are executed as root.

I cant remember how exactly i did it it could have been i used the dummy
package to chown of
/usr/bin/killall to admin ->temporarily of course

but to do this the install must have been running as root anyway.

the nice bit is as my package was an illegal one that crashed the cobalt didnt
show it as havoing been installed but it did run my system commands before
dieing.
b w gerald y




On Mon, 23 Jul 2001, you wrote:
> On Mon, 23 Jul 2001 11:00:44 +1200, Gerald Young mumbled something 
> like:
> >>cp /somewheresafe/inetd.conf    /etc/inted.conf
> >>/usr/bin/killall -HUP inetd
> 
> How did it copy over the original /etc/inetd.conf; as the original is 
> owned by root and you'd have to be root in order to replace the file?
> 
> It's a fantastic idea for when you're locked out, but I'm not quite
> understanding how it's working without root access.
> 
> --
> CarrieB
> Thanks for your quotes!
> I'm now trying to find a way to randomize them automagically so I can 
> use them all...
>  
> 
> 
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users