diff --git a/ubuntu.sh b/ubuntu.sh index 54b9902..4a1e9b1 100755 --- a/ubuntu.sh +++ b/ubuntu.sh @@ -27,6 +27,19 @@ if [ "$first" != 1 ];then proot --link2symlink tar -xf $cur/ubuntu.tar.gz --exclude='dev'||: echo "fixing nameserver, otherwise it can't connect to the internet" echo "nameserver 8.8.8.8" > etc/resolv.conf + stubs=() + stubs+=('usr/sbin/groupadd') + stubs+=('usr/sbin/groupdel') + stubs+=('usr/bin/groups') + stubs+=('usr/sbin/useradd') + stubs+=('usr/sbin/usermod') + stubs+=('usr/sbin/userdel') + stubs+=('usr/bin/chage') + stubs+=('usr/bin/mesg') + for f in ${stubs[@]};do + echo "Writing stub: $f" + echo -e "#!/bin/sh\nexit" > "$f" + done cd $cur fi mkdir -p binds