-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Can anyone brighter than me think of an easy way to remove MANY users from an smbpasswd file (I have a list of users that can be removed, some of which may already be missing, some of which may be present)? I cannot use smbpasswd -x in a loop. Is there some easy way to do this? =R - -- ---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer II |$&| |__| | | |__/ | \| _| |novosirj@umdnj.edu - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHfqOHmb+gadEcsb4RAgFmAJ42ngAeUbQGTMykTRAbdlxjmGogtwCeP40V ldqMZcaE78sw1tICGNR6FYg=XoXi -----END PGP SIGNATURE-----
On Fri, 04 Jan 2008, Ryan Novosielski might have said:> Can anyone brighter than me think of an easy way to remove MANY users > from an smbpasswd file (I have a list of users that can be removed, some > of which may already be missing, some of which may be present)? I cannot > use smbpasswd -x in a loop. Is there some easy way to do this?I'm aware that you cannot use smbpasswd in a loop creating the accounts because you have to type in the password, but removing the accounts? What's the issue with using smbpasswd in a loop to remove the accounts? Mike