# pw usershow root # pw groupshow wheel
# pw useradd user1 -m -u 10001 # passwd user1
См. также adduser
# pw groupadd group1 -g 15001 # pw groupadd group2 -g 15002
# pw usermod user1 -c 'Ivanov Ivan Ivanovitch,RA7,401,499-239-45-23'
# pw usermod user1 -G group1,group2 # pw groupmod wheel -M student # cat /etc/group
# cat /etc/shells
... /usr/bin/passwd
# pw usermod user1 -s /usr/bin/passwd # su - user1 $ chsh
# pw usermod user1 -L russian
# pw usermod root -w no
# pw userdel student -r
# awk -F: '($3>=1000) && ($3<65533)' /etc/passwd >> /var/jail/www/etc/passwd # awk -F: '($3>=1000) && ($3<65533)' /etc/passwd | ssh www 'cat >> /etc/passwd' # awk -F: '($3>=1000) && ($3<65533)' /etc/group >> /var/jail/www/etc/group # awk -F: '($3>=1000) && ($3<65533)' /etc/group | ssh www 'cat >> /etc/group' # awk -F: '($3>=1000) && ($3<65533)' /etc/master.passwd >> /var/jail/www/etc/master.passwd # awk -F: '($3>=1000) && ($3<65533)' /etc/master.passwd | ssh www 'cat >> /etc/master.passwd' # cd /; tar -cHf - home/ | (cd /var/jail/www/; tar -xvf -) # cd /; tar -cf - home/ | ssh www '(cd /; tar -xvf -)' # cd /var/mail; tar -cf - . | (cd /var/jail/www/var/mail; tar -xvf -) # cd /var/mail; tar -cf - . | ssh www '(cd /var/mail; tar -xvf -)' www# pwd_mkdb /etc/master.passwd