Lines Matching refs:rootdir
14 local rootdir="$1"
18 local group_exists="`grep "^$groupname:" $rootdir/etc/group || true`"
20 eval flock -x $rootdir${sysconfdir} -c \"$PSEUDO groupadd \$opts\" || true
21 group_exists="`grep "^$groupname:" $rootdir/etc/group || true`"
31 local rootdir="$1"
35 local user_exists="`grep "^$username:" $rootdir/etc/passwd || true`"
37 eval flock -x $rootdir${sysconfdir} -c \"$PSEUDO useradd \$opts\" || true
38 user_exists="`grep "^$username:" $rootdir/etc/passwd || true`"
48 local rootdir="$1"
54 …local mem_exists="`grep "^$groupname:[^:]*:[^:]*:\([^,]*,\)*$username\(,[^,]*\)*$" $rootdir/etc/gr…
56 eval flock -x $rootdir${sysconfdir} -c \"$PSEUDO groupmems \$opts\" || true
57 …mem_exists="`grep "^$groupname:[^:]*:[^:]*:\([^,]*,\)*$username\(,[^,]*\)*$" $rootdir/etc/group ||…
67 local rootdir="$1"
71 local group_exists="`grep "^$groupname:" $rootdir/etc/group || true`"
75 local groupid=`echo "$awk_input" | awk -f- $rootdir/etc/group`
77 local other_users=`echo "$awk_check_users" | awk -f- $rootdir/etc/passwd`
80 eval flock -x $rootdir${sysconfdir} -c \"$PSEUDO groupdel \$opts\" || true
81 group_exists="`grep "^$groupname:" $rootdir/etc/group || true`"
94 local rootdir="$1"
98 local user_exists="`grep "^$username:" $rootdir/etc/passwd || true`"
100 eval flock -x $rootdir${sysconfdir} -c \"$PSEUDO userdel \$opts\" || true
101 user_exists="`grep "^$username:" $rootdir/etc/passwd || true`"
114 local rootdir="$1"
118 local group_exists="`grep "^$groupname:" $rootdir/etc/group || true`"
120 eval flock -x $rootdir${sysconfdir} -c \"$PSEUDO groupmod \$opts\"
133 local rootdir="$1"
137 local user_exists="`grep "^$username:" $rootdir/etc/passwd || true`"
139 eval flock -x $rootdir${sysconfdir} -c \"$PSEUDO usermod \$opts\"
150 local rootdir="$1"
155 local user_exists="`grep "^$username:" $rootdir/etc/passwd || true`"
157 …eval flock -x $rootdir${sysconfdir} -c \"$PSEUDO sed -i \''s/^\('$username':[^:]*\):[^:]*:/\1:0:/'…
158 local passwd_lastchanged="`grep "^$username:" $rootdir/etc/shadow | cut -d: -f3`"