Разница между su, su -, sudo -i, sudo -s

В категорії Підказки, Статьї от 10 Серпня, 2018. Автор admin

-s, –shell Run the shell specified by the SHELL environment variable if it is set or the shell specified by the invoking user’s password database entry. If a command is specified, it is passed to the shell for execution via the shell’s -c option. If no command is specified, an interactive shell is executed.

Команда запускает shell из-под рута без смены директории, при этом не импортируются переменные окружения, которые прописаны например в .bash_profile или .login.

Більше »

Теги: , ,