problem with shadow suit in RH5.2 ??

Brett Harrison
Sat, 29 Jan 2000 22:52:49 -0000

I am by no means an expert along these lines, but should the
following small program lock out (for 60 seconds) elements of the shadow
suit such as chsh ??


------------------------
#include <stdlib.h>
#include <shadow.h>

void main() {


        if(lckpwdf()) {
                printf("Failed to get password locks\n");
                exit(0);
        }

        printf("password files locked\n");
        sleep(60);

        ulckpwdf();
        printf("password files unlocked\n");

        exit(0);

}
------------------------



        Yet the following sequence of events leads me to believe that the
functions lckpwdf() and ulckpwdf() are not being used with the support
programs that are in the shadow suit itself.

------------------------
[root@taylor testsrc]# ./testing &
[1] 29067
[root@taylor testsrc]# password files locked

[root@taylor testsrc]# chsh bh3
Changing shell for bh.
New shell [/bin/bash]: /bin/noshell
Shell changed.
[root@taylor testsrc]# password files unlocked

[1]+  Done                    ./testing
[root@taylor testsrc]#
------------------------



TIA for any pointers...




--
    __  __________  _______
   / / / /  ___/  \/ \__  /  Brett Harrison - bh@usmo.com
  / / / /\ \  / /\_/\ \/ /  InterNET Solutions, L.L.C.
 / /_/ /__\ \/ /  / /\ \/  A OneMain.com company
/_____/______\/  /____\_\ http://www.usmo.com