Файл passwd всегда в /etc/passwd?

Вы пробовали просто переименовать папку во что-то другое, а затем удалить ее?

Метод, который сработал для меня, заключался в том, чтобы вживую загрузиться в среду Linux через CD / USB, размонтировать диск с «нечетным» именем каталога / файла, а ЗАТЕМ его удалить. Этот метод работает у меня в большинстве случаев, а не всегда.

0
18.10.2018, 22:14
1 ответ

В файле /etc/libuser.confдва раздела:

[files]
Configures the files module, which manages /etc/group and /etc/passwd. The configuration variables are probably useful only for libuser development.
    directory - The directory containing the group and passwd files.  Default value is /etc.
    nonroot - Allow module initialization when not invoked as the root user if the value is yes.

[shadow]
Configures the files module, which manages /etc/gshadow and /etc/shadow. The configuration variables are probably useful only for libuser development.
    directory - The directory containing the gshadow and shadow files.  Default value is /etc.
    nonroot - Allow module initialization when not invoked as the root user if the value is yes.

Итак, отвечая на ваш вопрос :да, расположение файла passwdможно изменить.

Вы также должны знать, что изменение паролей из-за пределов системы может быть затруднено, если включен SELinux.

0
28.01.2020, 04:12

Теги

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