Displaying 2 results from an estimated 2 matches for "lckpwdf".
Did you mean:
  ulckpwdf
  
2000 Jan 29
0
problem with shadow suit in RH5.2 ??
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);
}
---------------------...
2011 Apr 12
1
any better way to manage access control via /etc/passwd
We need to manage /etc/passwd where there would be one line at the very end
of the file to restrict access to all users not explictly allowed:
+::::::/sbin/nologin
If using delete_lines and append_if_no_such_lines (similar to this one at
http://www.debian-administration.org/articles/528) to manage access control,
each time a few new users got appended to /etc/passwd file, the above line
would be