[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: accounts
> is there any way of exporting user accounts from one linux box to another?
yup. tar and/or scp. :)
> i want to transfer accounts over from one machine to the other
> the accounts i want to copy all have a user id of 1500 and above
#!/usr/bin/perl
open(R,"</etc/passwd");
while() {
@temp = split /:/;
if ($temp[2] >= 1500) printf "/home/$temp[0]";
}
close(R);
you can try and use a for loop from the command line, but that is goin to
cause you problems if you have any spaces in the gecos field. use
something like that which i spewed up there and pipe it into tar or scp.
someone else mentioned using LDAP, this is a great idea if you are banging
around with large amounts of user accounts. for christsake though, don't
even think abot NIS(+). unless you like long hours of trying ti figure
out why everything stopped working when you know you changed nothing, not
realizing that a fly in south america farted and that caused your table
space to need to be reloaded.
tighe
--
Tighe w00t blumnky
"I am anger incarnate."
"Oh yeah? I toss poo."
-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.
- References:
- accounts
- From: "Casey Boone" <ophidian@mychoice.net>