🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ch.comp.os.linux
Article #21405

Re: superuser Kommandi als nobody ausfuehren?!

#21405
From: Marc SCHAEFER
Date: Wed, 14 Jul 1999 00:00
18 lines
1042 bytes
Philippe Kehl <flip@akiv.ethz.ch> wrote:
> natuerlich nicht 'repquota' machen darf. Ich habe dann versucht mit 'chmod
> a+s dorepquota.sh' das Teil als root ausfuehren zu lassen (das macht man

Good idea. Doesn't work for shell scripts.

Solution 1:
   - write a C suid wrapper which then exec()s after checking the environment

Solution 2:
   - write a perl suid wrapper

Solution 3:
   - use sudo (allows nobody or wwwrun to run some specific commands)

Solution 4:
   - you can find others, such as a root perl daemon which would answer
     requests
Technical Details
Message-ID: <7mittl$k5g$1@vulcan.alphanet.ch>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <Pine.LNX.4.04.9907141232430.15392-100000@akiv.ethz.ch>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f4b73,1f253977e4fff673
X-Google-Attributes: gidf4b73,public
From: Marc SCHAEFER <schaefer@alphanet.ch>
Subject: Re: superuser Kommandi als nobody ausfuehren?!
Date: 1999/07/14
Message-ID: <7mittl$k5g$1@vulcan.alphanet.ch>
X-Deja-AN: 501085196
References: <Pine.LNX.4.04.9907141232430.15392-100000@akiv.ethz.ch>
Organization: ALPHANET NF -- Not for profit telecom research
Newsgroups: ch.comp.os.linux