Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

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
============================================================================




 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.