вот это работает:
Код: Выделить всё
adduser user20301 -g mail -p user20301
Читаю man adduser и man pw. Пишу:
Код: Выделить всё
adduser user20301 -g mail -s nologin -w yes
Код: Выделить всё
adduser user203main -g mail -s nologin -w yes
usage: adduser [options]
options may include:
-C save to the configuration file only
-D do not attempt to create the home directory
-E disable this account after creation
-G additional groups to add accounts to
-L login class of the user
-N do not read configuration file
-S a nonexistent shell is not an error
-d home directory
-f file from which input will be received
-g default login group
-h display this usage message
-k path to skeleton home directory
-m user welcome message file
-q absolute minimal user feedback
-s shell
-u uid to start at
-w password type: no, none, yes or random
Код: Выделить всё
pw adduser user203main -g mail -s nologin -w yes
Код: Выделить всё
pw: no default shell available or defined
Код: Выделить всё
cat /etc/shells
# $FreeBSD: src/etc/shells,v 1.5 2000/04/27 21:58:46 ache Exp $
#
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.
/bin/sh
/bin/csh
/bin/tcsh
ЗЫ: да, линуху я не юзаю, его юзает мой коллега и постоянно подкалывает: вот, это работает, а у тебя, во фри...