Почему оболочка автоматически закрывается для заключенного в тюрьму пользователя с домом 777?

Cuando se creó el primer shell en 1971. La página del manual dice:

When the shell is invoked as a command, it has additional string processing capabilities. Recall that the form in which the shell is invoked is

sh [ name [ arg1... [ arg9 ] ] ]

The name is the name of a file which will be read and interpreted. If not given, this subinstance of the shell will continue to read the standard input file. In the file, character sequences of the form "$n", where n is a digit 0,..., 9, are replaced by the nth argument to the invocation of the shell (arg ). "$0" is replaced by name.

0
01.09.2017, 00:54
1 ответ

Из соображений безопасности sshи jailkitне разрешают запись в корневом каталоге /и прерывают работу, если обнаруживают неправильные разрешения.

Например, если root доступен для записи, пользователи могут предоставить свои собственные файлы конфигурации в /etc(и свои собственные /etc/passwd) или свои собственные динамические библиотеки в / libдля злоупотребления двоичными файлами setuid (или уже запущенными привилегированными процессами с использованием того же chroot) для повышения привилегий.

1
28.01.2020, 02:45

Теги

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