/usr/log.
ftp:*:7:
kmem:*:8:
www:*:9:
+driver:*:10:
+server:*:11:
nogroup:*:99:
#!/bin/sh
cat $1 | while read line
-do echo $line | awk '{ print "mkdir -p "$4" || exit 1; chmod "$1" "$4" || exit 1; chown "$2" "$4" || exit 1; chgrp "$3" "$4" || exit 1" }' | sh || exit 1
+do echo $line | awk 'NF==4 { print "mkdir -p "$4" || exit 1; chmod "$1" "$4" || exit 1; chown "$2" "$4" || exit 1; chgrp "$3" "$4" || exit 1" } NF==3 { print "rm "$1" ; ln -s "$3" "$1" || exit 1" } ' | sh || exit 1
done
755 bin operator /usr/src
1777 root operator /usr/tmp
755 root operator /var
+/var/log -> /usr/log
755 root operator /usr/log
755 root operator /var/run
755 bin operator /usr/gnu/
ftp:*:7:7:Anonymous FTP:/usr/ftp:
ast:*:8:3:Andrew S. Tanenbaum:/home/ast:
www:*:9:9:World Wide Web:/usr/www:
+driver:*:10:10:Device Drivers:/:
+server:*:11:11:OS Servers:/:
nobody:*:9999:99::/tmp: