Re: modify UID in /etc/passwd file ?

2002-06-12 Thread David T-G
Frank, et al -- ...and then David vd Geer Inhuur tbv IPlib said... % % You can use this one : ... % Be aware of a possible (last)NIS-entry(s), those doesn't need a >5000 number in it's entry. And make sure to not change the "lp, root, adm, etc.." That will make your life % real hard you see.

Re: modify UID in /etc/passwd file ?

2002-06-12 Thread David vd Geer Inhuur tbv IPlib
HI Frank, You can use this one : #!/usr/local/bin/perl my $file = "/etc/passwd"; my $temppwfile = "/etc/tmppasswd"; $teller = 5000; open(PW, "< $file"); open(NEWPW, ">$temppwfile"); while () { ($user, $pw, $uid, $grpid, $descr, $home, $shell) = split(/:/); $newline = "${user}:${pw}:${telle

modify UID in /etc/passwd file ?

2002-06-12 Thread Frank Bonnet
Hi I need a script that modify the UID field in a /etc/passwd file for UNIX the purpose is to change the existing UID field from a start number (Eg 5000 ) for the first line then do UID + 1 for the next line etc etc until EOF Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addition