Для чего предназначена группа "wheel" в ОС FreeBSD (FreeNAS)?

Column делает именно то, о чем вы просите. Вы можете определить вкладку как разделитель с аргументом. Почему здесь нельзя подключить трубопровод к колонке?cat <file.csv> | column -s "\t"

3
20.08.2019, 19:06
2 ответа

Вам следует добавить пользователей в группу wheel, если им нужно использовать команду su, чтобы стать root.

Поскольку вы используете систему FreeNAS, вы можете просмотреть документацию, касающуюся интерфейса групп , где говорится о раскрывающемся меню «Основная группа» -вниз,

Unset New Primary Group to access this menu. For security reasons, FreeBSD will not give a user su permissions if wheel is their primary group. To give a user su access, add them to the wheel group in Auxiliary groups.

Дополнительную документацию по wheelдля FreeBSD см., например.

  • раздел 10.4 FAQ по FreeBSD:«Почему я получаю сообщение об ошибке: вы не находитесь в той группе, в которой нужно использовать su root, когда я пытаюсь использовать su для root?»

    This is a security feature. In order to su to root, or any other account with superuser privileges, the user account must be a member of the wheel group. If this feature were not there, anybody with an account on a system who also found out root's password would be able to gain superuser level access to the system.

  • раздел 3.3.1.3 Руководства по FreeBSD:Учетная запись суперпользователя

    There are several ways to gain superuser privilege. While one can log in as root, this is highly discouraged.

    Instead, use su(1) to become the superuser. If - is specified when running this command, the user will also inherit the root user's environment. The user running this command must be in the wheel group or else the command will fail. The user must also know the password for the root user account.

  • раздел 3.3.2.1 Руководства по FreeBSD:adduser

    [...] In this example, the user has been invited into the wheel group, allowing them to become the superuser with su(1).

И, очевидно, руководство для su(1).

1
27.01.2020, 21:17

Это находится наsu(1)справочной странице .

PAM is used to set  the policy su(1) will use.  In particular, by default
only users  in the "wheel" group can switch to UID 0 ("root").  This group
requirement may be  changed by modifying the "pam_group" section of
 /etc/pam.d/su.  See pam_group(8) for details on how to modify this set-
ting.

Очень древняя версия справочной страницы говорит:

Only users  who are a member of group 0 (normally "wheel") can su to
"root".   If group  0 is missing or empty, any user can su to "root".

Это позволяет вам контролировать, какие пользователи могут su. Маловероятно, чтобы каждый пользователь вашей системы мог su.

3
27.01.2020, 21:17

Теги

Похожие вопросы