LINUX.ORG.RU

История изменений

Исправление A-234, (текущая версия) :

То что я привел это логин в новый терминал.

-, -l, --login
Start the shell as a login shell with an environment similar
to a real login:

o clears all the environment variables except TERM

o initializes the environment variables HOME, SHELL,
USER, LOGNAME, and PATH

o changes to the target user's home directory

o sets argv[0] of the shell to '-' in order to make
the shell a login shell

Но я выполняю после screen, поэтому TERM тоже не наследуется. Поэтому даже не эквивалент а таки логин в новый терминал.

PS Вернее будет так

screen su -

Исходная версия A-234, :

То что я привел это логин в новый терминал.

-, -l, --login
Start the shell as a login shell with an environment similar
to a real login:

o clears all the environment variables except TERM

o initializes the environment variables HOME, SHELL,
USER, LOGNAME, and PATH

o changes to the target user's home directory

o sets argv[0] of the shell to '-' in order to make
the shell a login shell

Но я выполняю после screen, поэтому TERM тоже не наследуется. Поэтому даже не эквивалент а таки логин в новый терминал.