Системное администрирование
Подскажите, что означает - useradd example -b /home/ -m -U -s /bin/false
Понятно, создание пользователя example, а (-b /home/) ( -m -U -s ) ( /bin/false)
Асхат Урпеков
-s Оболочка, используемая пользователем. По умолчанию /bin/sh.// не понял, какие оболочки бывают или как это?
Асхат Урпеков
/bin/false - всё понял это шелл отключить, чтобы пользователь не мог пользоваться командной строкой.
Как вы собираетесь работать с линуксятиной если не можете найти элементарных вещей - синтаксис консольных базовых команд?
-b, --base-dir BASE_DIR The path prefix for a new user's home directory. The user's name will be affixed to the end of BASE_DIR to form the new user's home directory name, if the -d option is not used when creating a new account.
-k, --skel SKEL_DIR SKEL_DIR is the skeleton directory, which contains files and directories to be copied in the user's home directory, when the home directory is created by useradd.
This option is only valid if the -m (or --create-home) option is specified.
-N, --no-user-group Do not create a group with the same name as the user, but add the user to the group specified by the -g option or by the GROUP variable in /etc/default/useradd.
The default behavior (if the -g, -N, and -U options are not specified) is defined by the USERGROUPS_ENAB variable in /etc/login.defs.
-s, --shell SHELL The name of the user's login shell. The default is to leave this field blank, which causes the system to select the default login shell specified by the SHELL variable in /etc/default/useradd, or an empty string by default.
-b, --base-dir BASE_DIR The path prefix for a new user's home directory. The user's name will be affixed to the end of BASE_DIR to form the new user's home directory name, if the -d option is not used when creating a new account.
-k, --skel SKEL_DIR SKEL_DIR is the skeleton directory, which contains files and directories to be copied in the user's home directory, when the home directory is created by useradd.
This option is only valid if the -m (or --create-home) option is specified.
-N, --no-user-group Do not create a group with the same name as the user, but add the user to the group specified by the -g option or by the GROUP variable in /etc/default/useradd.
The default behavior (if the -g, -N, and -U options are not specified) is defined by the USERGROUPS_ENAB variable in /etc/login.defs.
-s, --shell SHELL The name of the user's login shell. The default is to leave this field blank, which causes the system to select the default login shell specified by the SHELL variable in /etc/default/useradd, or an empty string by default.
Асхат Урпеков
-sОболочка, используемая пользователем. По умолчанию /bin/sh.// не понял, какие оболочки бывают или как это?
Асхат Урпеков
/bin/false - всё понял это шелл отключить, чтобы пользователь не мог пользоваться командной строкой.
Задаюсь же вопрослм
Есть замечательная команда man.
А также у большинства команд есть ключ --help или -h
А также у большинства команд есть ключ --help или -h
Асхат Урпеков
-s Оболочка, используемая пользователем. По умолчанию /bin/sh.// не понял, какие оболочки бывают или как это?
Асхат Урпеков
/bin/false - всё понял это шелл отключить, чтобы пользователь не мог пользоваться командной строкой.
Похожие вопросы
- Подскажите как продвинуть сайт в поисковиках. И еще одно, кто нибудь может проверить на ошибки?
- Подскажите как продвинуть сайт быстрее всего
- Подскажите. Репосты ссылки в вк на сайт помогут ему продвинуться вверх?
- Подскажите пожалуйста как убрать данную рекламу с сайта вконтакте?
- Подскажите как сделать примитивный учёт прихода и ухода сотрудника с рабочего места
- Могут ли взломать вк? Подскажите, а может человек меня взломать, не зная моего номера телефона?
- Подскажите самый легкий язык програмирования
- Подскажите пожалуйста на каких бинарных опционах лучше торговать? заработок в интернете
- Подскажите хороший и не дорогой сервис что бы добавить сайт в каталоги и раскрутить его и самая главное не навредить ему
- Ребят подскажите пожалуйсто. Как можно реально заработать в интернете.