• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Turboprint-Setup mit SUDO?

Z-City

Hacker
Servus Loidde,

kleines Problem - folgendes Szenario:

Canon Pixma IP3000 mit Turboprint unter SuSe 10.1 - funktioniert erste Sahne.
Der Rechner wird nur von einem User bedient (ohne root-Rechte)

Das Setup-Tool von Turboprint soll jetzt aber von dem User benutzt werden können.

/etc/sudoers sieht folgender massen aus:
Code:
# 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

# Cmnd alias specification

# Defaults specification

# prevent environment variables from influencing programs in an
# unexpected or harmful way (CVE-2005-2959, CVE-2005-4158,
# CVE-2006-0151)
Defaults always_set_home
Defaults env_reset

# In the default (unconfigured) configuration, sudo asks for the root password.
# This allows use of an ordinary user account for administration of a freshly
# installed system. When configuring sudo, delete the two
# following lines:
# Defaults targetpw    # ask for the password of the target user i.e. root
# ALL ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'!

# Runas alias specification


# User privilege specification
root	ALL=(ALL) ALL
USER ALL=/usr/bin/xtpsetup

# 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

# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now

Der Befehl mit dem das Programm gestartet wird ist:

Code:
sudo xtpsetup

Beim Starten des Programms wird trotzdem das root-Passwort abgefragt - und das Programm startet nicht (selbst wenn ich das root-Passwort eingebe...)

Jemand einen Tip zur Problemfindung?
 

admine

Ultimate Guru
1. wird da nicht das root- sondern das User-PW abgefragt
und 2. fehlt dir "NOPASSWD" in der sudoers:
Code:
utekonrad ALL=NOPASSWD:/usr/bin/xtpsetup
 
Oben