This is only a Werewulf question insofar as this works on non-Warewulf chroots, so I have to assume something is different or left out and there may be an alternate means.
If I chroot to the Werewulf chroot and run passwd to try to change root’s password, I get:
[root@master /]# passwd
Changing password for user root.
passwd: Authentication token manipulation error
I looked at an strace and it initially seems to care that /dev isn’t present. So I did a bind mount of /dev into the right place. I still get the same thing, though. The end of the strace is:
stat("/dev/mem", {st_mode=S_IFCHR|0640, st_rdev=makedev(1, 1), ...}) = 0
stat("/dev/vga_arbiter", {st_mode=S_IFCHR|0600, st_rdev=makedev(10, 63), ...}) = 0
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
sendto(3, "X\0\0\0T\4\5\0\2\0\0\0\0\0\0\0op=change passwo"..., 88, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 88
poll([{fd=3, events=POLLIN}], 1, 500) = 1 ([{fd=3, revents=POLLIN}])
recvfrom(3, "$\0\0\0\2\0\0\0\2\0\0\0Z;\0\0\0\0\0\0X\0\0\0T\4\5\0\2\0\0\0"..., 8988, MSG_PEEK|MSG_DONTWAIT, {sa_family=AF_NETLINK, pid=0, groups=00000000}, [12]) = 36
recvfrom(3, "$\0\0\0\2\0\0\0\2\0\0\0Z;\0\0\0\0\0\0X\0\0\0T\4\5\0\2\0\0\0"..., 8988, MSG_DONTWAIT, {sa_family=AF_NETLINK, pid=0, groups=00000000}, [12]) = 36
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/Linux-PAM.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/Linux-PAM.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/Linux-PAM.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/Linux-PAM.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/Linux-PAM.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/Linux-PAM.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "passwd: Authentication token man"..., 48passwd: Authentication token manipulation error
) = 48
munmap(0x7f1e98274000, 2101296) = 0
exit_group(1) = ?
+++ exited with 1 +++
Any other ideas?
--
____ *Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*
|| \\UTGERS |---------------------*O*---------------------
||_// Biomedical | Ryan Novosielski - Senior Technologist
|| \\ and Health |
novo...@rutgers.edu -
973/972.0922 (2x0922)
|| \\ Sciences | OIRT/High Perf & Res Comp - MSB C630, Newark
`'