Cannot set password using passwd
by slac from LinuxQuestions.org on (#5JJ66)
I cannot set a password for any account using the command: passwd.
From the LFS book, the command passwd is installed by installing the shadow package.
I guess something is missing at /dev because it appears a tty file at /dev whenever I try to use passwd.
Only console and null nodes are there because they were created by indications of the LFS book at 7.3 kernfs.html.
By deleting /dev, the passwd command works again.
I want to know what is it that passwd is trying to find at /dev. I tried to do the same by chrooting into other gnu/linux systems and passwd works normally.
The passwd also works if I bind /dev from the host system to the chroot environment, but as I said earlier, I did not bind any /dev to the chroot environment of other gnu/linux distributions and passwd works fine.
I guess something is missing apart from console and null nodes but what is it?
From the LFS book, the command passwd is installed by installing the shadow package.
I guess something is missing at /dev because it appears a tty file at /dev whenever I try to use passwd.
Only console and null nodes are there because they were created by indications of the LFS book at 7.3 kernfs.html.
By deleting /dev, the passwd command works again.
I want to know what is it that passwd is trying to find at /dev. I tried to do the same by chrooting into other gnu/linux systems and passwd works normally.
The passwd also works if I bind /dev from the host system to the chroot environment, but as I said earlier, I did not bind any /dev to the chroot environment of other gnu/linux distributions and passwd works fine.
I guess something is missing apart from console and null nodes but what is it?