[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Fwd: [cobalt-users] shell commands as root
- Subject: RE: Fwd: [cobalt-users] shell commands as root
- From: "d e p e u p l e u r" <listening@xxxxxxxxxxxxxx>
- Date: Mon Jul 23 12:33:19 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Sounds like the way to go, but I don't think I understand the steps you took
and in what order.
Should my pkg only have shell commands?
Will it run as root?
Will it crash the server?
_____________________________
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.
>