PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : sudo verhält sich komsich(glaub ich)



menne
28.12.06, 13:45
Hallo ,
erstmal ein frohes Fest gehabt zu haben.

Ich habe ein kleines Problem mit SUDO.
Und zwar. habe ich sudo installiert und ein sudoers file angelegt in welchem ein bestimmter user "hugo" einen temporären root (per sudosh) bekommt.

Dies klappt auch der user logged sich zu erstemla ein und tipp: sudo su_root
dann passwort und gelangt in die "root shell".

dann macht er logoff und das ganez noch einmal. Nur diesmal bekommt er kene Passwort abfrage.

Warum? Ich verstehe das nicht und vor allem wie kann ich das ändern?

Herzlichen dank menne


***sudoers*

# 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.
#
Defaults env_reset
# Host alias specification

# User alias specification
User_Alias TMPROOT = hugo
# Cmnd alias specification
Cmnd_Alias SUDOSH = /usr/local/bin/sudosh, /usr/local/bin/su_root

# Defaults specification

# User privilege specification
root ALL=(ALL) ALL

applsu ALL=(ALL) ALL
***snip***
#special for sudosh
TMPROOT ALL = SUDOSH
# 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

menne
28.12.06, 13:57
ui wie kann ich das jetzt wieder löschen?

sorry 2 mal war nicht meine Absicht.

menne