Ho installato sulla mia slackware 11 moblock...il problema è che se lo lancio da root funziona correttamente mentre se lo lancio da utente ricevo questo errore:
Codice: Seleziona tutto
/usr/bin/./MoBlock-nfq.sh: line 32: modprobe: command not found
/usr/bin/./MoBlock-nfq.sh: line 36: modprobe: command not found
/usr/bin/./MoBlock-nfq.sh: line 40: iptables: command not found
/usr/bin/./MoBlock-nfq.sh: line 41: modprobe: command not found
/usr/bin/./MoBlock-nfq.sh: line 42: modprobe: command not found
/usr/bin/./MoBlock-nfq.sh: line 45: modprobe: command not found
/usr/bin/./MoBlock-nfq.sh: line 46: modprobe: command not found
/usr/bin/./MoBlock-nfq.sh: line 51: modprobe: command not found
/usr/bin/./MoBlock-nfq.sh: line 54: modprobe: command not found
/usr/bin/./MoBlock-nfq.sh: line 57: modprobe: command not found
/usr/bin/./MoBlock-nfq.sh: line 84: modprobe: command not found
/usr/bin/./MoBlock-nfq.sh: line 85: modprobe: command not foundPer abilitare l'utente ad eseguire il comando ho editato /etc/sudoers cosi:
Codice: Seleziona tutto
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
User_Alias UTENTI = alex
# Cmnd alias specification
Cmnd_Alias SPEGNI = /sbin/shutdown -h now, /usr/bin/cpufreq-set -g ondemand -u 1096370 -d 498350, /usr/bin/./MoBlock-nfq.sh
# Defaults specification
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
UTENTI ALL = NOPASSWD: SPEGNI
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
Qualcuno può aiutarmi???
Grazie!!!


