IDCheck.sh fails to detect the group nobody does not exist and exits with 0 status. This patch fixes this behavior. I have added a small cosmetic change to indicate No is the default response to the question asked by the script.

Regards.

Elder.
--- IDcheck.sh.ORIG	2008-09-22 10:27:40.000000000 -0300
+++ IDcheck.sh	2008-09-25 09:33:22.000000000 -0300
@@ -64,7 +64,7 @@
 	else
 
 		if [ $NO_NOBODY_ID -ne 0 -o $NO_BIN_ID -ne 0 -o $NO_DAEMON_ID -ne 0 -o $NO_NOBODY_GRP -ne 0 -o $NO_BIN_GRP -ne 0 -o $NO_DAEMON_GRP -ne 0 -o $NO_USERS_GRP -ne 0 -o $NO_SYS_GRP -ne 0 -a $I_AM_ROOT -ne 0 ] ; then
-			echo -n "If any required user ids and/or groups are missing, would you like these created? Y/N "
+			echo -n "If any required user ids and/or groups are missing, would you like these created? [y/N]"
 			read ans
 			case "$ans" in
 				Y*|y*) CREATE_ENTRIES=1 ;;
@@ -167,7 +167,8 @@
 
 if ife nobody    && ife bin    && ife daemon &&
    ife -g nobody && ife -g bin && ife -g daemon &&
-   gfe '^users:' /etc/group && gfe '^sys:' /etc/group
+   gfe '^users:' /etc/group && gfe '^sys:' /etc/group && 
+   gfe '^nobody:' /etc/group
 then
 	echo ""
 	echo "Required users/groups exist."
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to