Sudoers Datei richtig einstellen
Hy,
Ich habe im Ubuntu Wiki (nutze Debian) nachgeschaut wiedie Sudoers datei ausehen muss wen ich
habe meine Sudoers nun diese zeile hinzugefügt
nur leider wird immer noch ein Passwort Verlangt ?
oder auch direct
Ich weis einfach nicht was ich falsch gemacht habe -,-
Hoffe ihr Könnt mir helfen
MFG
Loip104
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.
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:
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
Please also mark the comments that contributed to the solution of the article
Content-Key: 220350
Url: https://administrator.de/contentid/220350
Printed on: April 25, 2024 at 17:04 o'clock