search for: quotewords

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

1998 Jul 02
1
Synchronize Unix/SMB passwords with 'synchpasswd'
...swd = "/usr/local/samba/private/smbpasswd" $add_script = "/usr/local/samba/bin/addtosmbpass" $private_dir = "/usr/local/samba/bin/private" $system_id = 99; # Remove user ID's below this value from SMB # # Let's go... # use Text::ParseWords; # For the 'quotewords' function chdir($private_dir); # # Scan through /etc/passwd. Create an array of names to pass to # 'addtosmbpass', but omit all system accounts. # printf("\nCreating a list of Unix users:\n"); setpwent; # Initialize the scan while (@list = getpwent) { # Fetch the next e...