On Thu, 2007-04-19 at 21:34 +0200, Lars Täuber wrote: > > You only need to do this once for every dvd, so prepare the dvds as > > root, or use sudo for /sbin/cryptsetup. > > That's not the solution for the user I prepare the computer for. She must be able to do this (by script) herself. I don't like sudo. That's to insecure, when the user isn't aware of the things that happen. > > Thanks > Lars Make her aware and restricted to this action? Put the script ("setup_encrypted_dvd.sh") on the desktop which runs sudo on itself if it's not root, #!/bin/bash if [ x"$SUDO_UID" == "" ]; then sudo $0 $* else ... fi Then put in the sudo file (edit with "visudo"): user ALL=NOPASSWD:/home/user/Desktop/setup_encrypted_dvd.sh -- Henrik Holst <holst@xxxxxxxxxxx> --------------------------------------------------------------------- dm-crypt mailing list - http://www.saout.de/misc/dm-crypt/ To unsubscribe, e-mail: dm-crypt-unsubscribe@xxxxxxxx For additional commands, e-mail: dm-crypt-help@xxxxxxxx