loip104
Goto Top

Sudoers Datei richtig einstellen

Hy,

Ich habe im Ubuntu Wiki (nutze Debian) nachgeschaut wiedie Sudoers datei ausehen muss wen ich
Als user www-data
Die datei /home/steam/steamcmd.sh (Gehört steam)
Als steam ausführen möchte.

habe meine Sudoers nun diese zeile hinzugefügt
# User privilege specification
root    ALL=(ALL:ALL) ALL
www-data  ALL=(ALL) NOPASSWD: /home/steam/steamcmd.sh

nur leider wird immer noch ein Passwort Verlangt ?
$ cd /var/www
$ ls
form.html  index.html  phpinfo.php  steam-cmd-exec.php  test.php
$ php steam-cmd-exec.php
[sudo] password for www-data:
oder auch direct
root@steam:~# su www-data
$ ./home/steam/stemcmd.sh +quit
sh: 1: ./home/steam/stemcmd.sh: Permission denied
$

Ich weis einfach nicht was ich falsch gemacht habe -,-

Hoffe ihr Könnt mir helfen

MFG
Loip104

Content-Key: 220350

Url: https://administrator.de/contentid/220350

Printed on: April 20, 2024 at 01:04 o'clock