-( susu )- For the nostalgic of suauth In these days none wants to keep a nice, clean suauth file with the juicy NOPASSWD. The coreutils doesn't help you and if you really want to have something like suauth you have to suicide with pam. What a nice world. ;0 So here it is the stuff: susu.c is a wrapper to su - toor / su - root susu-bsd.c is susu.c for net/open-bsd. (not tested in freebsd) /* susu: It is a simple wrapper tu su - root. * It reads a list of userid from the SUSU_FILE file then it checks if the user who * started susu is present in the list. If the check is positive, the user will * became ROOT with su - ROOT. * Note: susu must be suided root, to run effectively. * Note2: You may need to change the SU_PATH and the ROOT defines * * Compile with: # gcc susu.c -o susu * then: # chown root:wheel susu susu_suauth * and: # chmod 6755 susu; chmod 644 susu_suauth * finally: # cp susu /usr/bin/; cp susu_suauth /etc/ * Enjoy! * All this code is under GPL-2, do whatever you like with it. * AlpT (@freaknet.org)*/ susu-coreutils-5.2.1.patch is a patch for the coreutils-5.2.1. The "problem" with susu.c is that the SU_FROM isn't set so if you want to have a nice SU_FROM, use the susu-coreutils-5.2.1.patch: $ wget http://ftp.gnu.org/pub/gnu/coreutils/coreutils-5.2.1.tar.bz2 $ tar xfj coreutils-5.2.1.tar.bz2 $ wget http://www.freaknet.org/alpt/src/utils/susu/susu-coreutils-5.2.1.patch $ wget http://www.freaknet.org/alpt/src/utils/susu/susu_suauth $ cp susu-coreutils-5.2.1.patch susu_suauth coreutils-5.2.1/ $ cd coreutils-5.2.1/ $ patch -p1 < susu-coreutils-5.2.1.patch $ configure && make $ cd src/ $ mv su susu # chown root:wheel susu ../susu_suauth # chmod 6755 susu # chmod 644 ../susu_suauth # cp -a susu /usr/bin/; cp -a ../susu_suauth /etc/ $ susu - root # echo $SU_FROM # echo Enjoy. Did I tell you all this code is under GPL-2 and you can do whatever you like with it? AlpT (@freaknet.org)