Hi

After running pwconv and grpconv (they ended up with no message, I
don't know whether this is what supposed), I tried passwd, passwd
root, passwd 0. they all gave the message "passed: Cannot determine
your user name." while `whoami` gave me the answer root. I couldn't su
to any user other than root.

I installed shadow as a package user and it took me a while to get my head round it!

I think that the issue is with the permissions of the programs which get installed (remember that the wrapper scripts which are installed in the package users hint don't allow any programs to be installed suid). For example, the passwd program needs to be able to read /etc/passwd and /etc/shadow. It's only a guess, but I imagine that this is the problem above.

There are at least two solutions:
1) You can chown and suid passwd to root
2) You can make the two files readable by a group and put passwd (and any other programs like su which need to read them) in that group.

The second answer is more secure than the first, but as always YMMV.

Hope this helps

Dave
8o)
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to