Полное переключение пользователей в Bash (проблемы GNOME/связки ключей)

No; el límite absoluto es de 998 caracteres y el límite recomendado es de 78 caracteres. Esto proviene del estándar actual para mensajes de correo electrónico, RFC5322 . En la sección 2.1.1, "Límites de longitud de línea", establece:

There are two limits that this specification places on the number of characters in a line. Each line of characters MUST be no more than 998 characters, and SHOULD be no more than 78 characters, excluding the CRLF.

Sin embargo, MUA :s debería poder mostrar mensajes correctamente incluso si las líneas son más largas de lo recomendado. En la misma sección:

it is incumbent upon implementations that display messages to handle an arbitrarily large number of characters in a line (certainly at least up to the 998 character limit) for the sake of robustness.

0
29.05.2019, 02:43
1 ответ

По сути, нет никакой разницы между запуском sudo -Hiu user1 [command]и запуском [command]какuser1(или даже запуском sudo [command]), хотя есть некоторые тонкие различия (, как указано в вашем вопросе ). Большинство из них связаны с GNOME, который можно обойти с помощью команды gksudo(или в более новых системах с помощью admin:///full/path/to/command argumentsилиpkexec [command] arguments).

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

0
28.04.2021, 23:33

Теги

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