Список ЗНАКОВ. Повторяющиеся строки

Попробуйте.

sudo -H -u TARGET_USER bash -c 'bash /usr/local/hadoop/sbin/start-dfs.sh' 

см. man sudo:

-H

The -H (HOME) option requests that the security policy set the HOME environment variable to the home directory of the target user (root by default) as specified by the password database. Depending on the policy, this may be the default behavior.

-u user

The -u (user) option causes sudo to run the specified command as a user other than root. To specify a uid instead of a user name, use #uid. When running commands as a uid, many shells require that the '#' be escaped with a backslash ('\'). Security policies may restrict uids to those listed in the password database. The sudoers policy allows uids that are not in the password database as long as the targetpw option is not set. Other security policies may not support this.

0
23.01.2020, 20:15
1 ответ

В:help viminfo-file-marksговорится, что дублирования быть не должно:

If the current cursor position is already present in '0 to '9, it is moved to '0, to avoid having the same position twice.

По-видимому, эта функциональность была нарушена в Vim 7.4.1925; Я только что отправил отчет об ошибке в Vim .

0
04.03.2020, 11:03

Теги

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