?? test37root
字號:
#!/bin/shif [ `id -nu` != root ] then echo "This script must be run by root" su -c "cd `pwd` ; $0" exit fiecho "*** Mirroring of UID and GID with rootnnfs2"if [ ! -x ../src/rootnnfs2 ] then echo "This test can't be done because you haven't compiled rootnnfs2" echo "To compile : 'make rootnnfs' WITHOUT THE '2'" exit 0 fi. ./init_testNNN=1RUN() { HOME=$H/$1 export HOME echo -e "$NNN \c" ../src/rootnnfs2 "*#*#9" "g_Analyse#*#0" "g_Ui_Txt#*#0" --dump --no-x11 --host $1 $2 >TMP/$NNN 2>&1 NNN=`expr $NNN + 1`}RA() { RUN A "$*" ; }RB() { RUN B "$*" ; }touch $H/A/lp ; chown lp $H/A/lptouch $H/A/roottouch $H/A/lp_sys ; chown lp $H/A/lp_sys ; chgrp sys $H/A/lp_syschmod 7550 $H/A/lp_sysmkdir $H/A/dir ; chown mail $H/A/dir ; chgrp daemon $H/A/dir# Symbolic linkln -s afile $H/A/.slchown man $H/A/.sl ; chgrp adm $H/A/.sl# Verify initial copyRA -f $H/ARB -a $H/BRARBls -lsRa $H/[AB]for I in `cd $H/A ; echo [!.]*`dosame $H/A $I $H/B $I || Exit 4donesamel_and_uidgid $H/A .sl $H/B .sl || Exit 41# Verify that the UID/GID change are synchronizedchown root $H/B/[!.]*chgrp root $H/B/[!.]*RBRAfor I in `cd $H/A ; echo [!.]*`dosame $H/A $I $H/B $I || Exit 5donerm -r $H $M TMP/* 2>/dev/null >&2make clean 2>/dev/null >&2Exit 0
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -