Вы пробовали просто переименовать папку во что-то другое, а затем удалить ее?
Метод, который сработал для меня, заключался в том, чтобы вживую загрузиться в среду Linux через CD / USB, размонтировать диск с «нечетным» именем каталога / файла, а ЗАТЕМ его удалить. Этот метод работает у меня в большинстве случаев, а не всегда.
В файле /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.