|
Re: lug-bg: startirane na shell programa s prawa na root prez php
- Subject: Re: lug-bg: startirane na shell programa s prawa na root prez php
- From: gf@email.domain.hidden (Georgi Chorbadzhiyski)
- Date: Tue, 25 Mar 2003 11:54:37 +0200
Anton Tinchev wrote:
<em class="quotelev1">> deb4o wrote:
<em class="quotelev1">>
<em class="quotelev2">>>Kak da naprawia taka che prez browser s php script da startiram shell
<em class="quotelev2">>>programa s prawa na root ?
<em class="quotelev2">>>
<em class="quotelev1">> chmod +s "scripta"
Tova niama da raboti. sudo e reshenieto, eto primer:
v /etc/sudoers
httpd ALL=NOPASSWD: /usr/bin/blah
potrebiteliat httpd mozhe da vika
udo /usr/bin/blah
i /usr/bin/blah shte se izpalniava kato root.
eto oshte primeri:
%users localhost=/sbin/shutdown -h now
gf ALL=NOPASSWD: /sbin/mount -a -t nfs,/sbin/umount -a -t nfs
gf ALL=NOPASSWD: /usr/bin/smbmount,/sbin/umount -a -t smbfs,/usr/bin/smbumount
gf ALL=NOPASSWD: /usr/bin/nmap
<p>
--
Georgi Chorbadzhiyski
http://georgi.unixsol.org/
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|
|
|