search for: tommit

Displaying 1 result from an estimated 1 matches for "tommit".

Did you mean: commit
1998 Jul 02
1
Synchronize Unix/SMB passwords with 'synchpasswd'
...'addtosmbpass', but omit all system accounts. # printf("\nCreating a list of Unix users:\n"); setpwent; # Initialize the scan while (@list = getpwent) { # Fetch the next entry ($login,$uid) = @list[0,2]; # Grab login name and uid if ($uid <= $system_id) { printf ("\tOmmitting $login ...\n"); } else { @USERS = (@USERS, "$login"); } } endpwent; # End of scan # # Add the users # printf ("\nMerging new users ...\n"); unless (fork) { exec "$add_script @USERS < $smb_passwd > synch.tmp" } wait; # Parent waits for child t...