On Dec 1, 2006, at 3:21 PM, Dan Nicholson wrote:

On 11/29/06, Geoffrey Thomas <[EMAIL PROTECTED]> wrote:

After boot, I get a login request and put in root and password.
This logs me in and bash prompt comes up.
I added user test13 and changed passwordl
The auth.log says says as noted before.
I then ran su test13 and got /bin/bash permission denied.
Auth.log says  Successful su for test13 by root
Command users  returns root only.

I decided to look at the shadow source to find out the source of this
permission denied error. In src/login.c:

       /*
        * Allow authentication bypass only if real UID is zero.
        */

       if ((rflg || fflg || hflg) && !amroot) {
               fprintf (stderr, _("%s: Permission denied.\n"), Prog);
               exit (1);
       }

So, you are apparently going down the "authentication bypass" route.
Why? Somehow, rflg, fflg or hflg are being set. These correspond to
the -r, -f or -h switches. I don't recall how login is spawned, but
something has gone wrong there. I wish you had strace installed.

Which version of shadow did you install? Which version of LFS, for that matter?

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

LFS 6.2
Shadow 4.0.15
I don't seem to be having any problem running as rootl
I'll see if I can install strace.
The interesting thing is the various log files show the correct new users and
Password changes.

Only other thing I've noticed is the setclock script fails on boot up.
The system runs. Date gives the correct time and date.
Don't know if login uses system time somehow or if this is even related.
--
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