/ Forside / Teknologi / Operativsystemer / Linux / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Linux
#NavnPoint
o.v.n. 11177
peque 7911
dk 4814
e.c 2359
Uranus 1334
emesen 1334
stone47 1307
linuxrules 1214
Octon 1100
10  BjarneD 875
suid af script
Fra : Henrik Boegh


Dato : 13-01-02 12:35

Jeg har et lille problem med nogle af mine shellscripts og suid af
disse. F.eks. scriptet:

#!/bin/sh
shutdown -f now

Hvis jeg sætter suid (chmod +s script) får jeg stadig en 'shutdown:
must be root' besked. I den aktuelle situation kan jeg selvfølgelig
gøre brug af shutdown.allow men hvad gør jeg i de tilfælde hvor jeg
ikke kan?

zsh 4.0.4 (i686-pc-linux-gnu), Debian GNU/Linux 2.2-r4, kerne 2.4.17.

--
H e n r i k B o e g h ^ http://henrik.boegh.net/index.php?side=usenet
*** There's an X_ to much in my email address ***
"One woman's Titanic is another woman's Love Boat"
- Sarah Jessica Parker as Carrie Bradshaw in 'Sex & the City'


 
 
Christian E. Lysel (13-01-2002)
Kommentar
Fra : Christian E. Lysel


Dato : 13-01-02 13:08

Henrik Boegh wrote:

> Jeg har et lille problem med nogle af mine shellscripts og suid af
> disse. F.eks. scriptet:
>
> #!/bin/sh
> shutdown -f now
>
> Hvis jeg sætter suid (chmod +s script) får jeg stadig en 'shutdown:


Lad vær med det, du svækker blot sikkerheden på din server.

Prøv istedet at kikke på:

sudo - execute a command as another user


http://www.courtesan.com/sudo/


Bjørn Connolly (13-01-2002)
Kommentar
Fra : Bjørn Connolly


Dato : 13-01-02 13:06

On Sun, 13 Jan 2002 12:34:39 +0100, Henrik Boegh wrote:
> Jeg har et lille problem med nogle af mine shellscripts og suid af
> disse. F.eks. scriptet:

Linux ignorerer såvidt jeg husker SUID på scripts.

Brug sudo istedet:
http://www.courtesan.com/sudo/

--
Bjørn Connolly
Disclaimer at <http://www.vof.dk/concorp/disclaimer.html>
"World domination. Fast" -Linus Torvalds

Søg
Reklame
Statistik
Spørgsmål : 177513
Tips : 31968
Nyheder : 719565
Indlæg : 6408602
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste