LINUX.ORG.RU

посмотри man pw

anonymous
()

Ну типа pw зто хорошо и почитать стоит но можно и по другому зайти в корень /etc/ и увидеть файл adduser.conf вот пример моего файла:
#bash cat /etc/passwd.conf
# verbose = [0-2]
verbose = 0

# regular expression usernames are checked against (see perlre(1))
# usernameregexp = 'regexp'
usernameregexp = '^[a-z0-9_][a-z0-9_-]*$'

# use password for new users
# defaultpasswd = yes | no
defaultpasswd = yes

# copy dotfiles from this dir ("/usr/share/skel" or "no")
dotdir = "/usr/share/skel"

# send this file to new user ("/etc/adduser.message" or "no")
send_message = "no"

# config file for adduser ("/etc/adduser.conf")
config = "/etc/adduser.conf"

# default HOME directory ("/home")
home = "/home/users_group"

# нужно не забыть что все юзеры будут создаваться в корне
#/home/users_group и он должен существовать. Сам каталог юзера
#создастся автоматом -- /home/user_group/user_name

# List of directories where shells located
# path = ('/bin', '/usr/bin', '/usr/local/bin')
path = ('/bin', '/usr/bin', '/usr/local/bin')

# common shell list, first element has higher priority
# shellpref = ('bash', 'tcsh', 'ksh', 'csh', 'sh')
shellpref = ('csh', 'sh', 'bash', 'tcsh', 'ksh', 'no', 'date', 'tcsh')

# defaultshell if not empty ("bash")
defaultshell = "bash"

# defaultgroup ('USER' for same as username or any other valid group)
defaultgroup = users_group

# defaultclass if not empty
defaultclass = ""

# new users get this uid (1000)
uid_start = "1000"


# logfile ("/var/log/adduser" or "no")
logfile = "/var/log/adduser"## DO NOT DELETE THIS LINE!
## your own variables, see /etc/adduser.message



sanders
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.