Password file migration help

Kemian Dang dangkm at gmail.com
Thu Jan 31 07:04:21 PST 2008


Sean Murphy 写道:
> I have a FreeBSD 5.4 system and would like to migrate users in the 
> password file with UIDs 3000 through 5000 to a FreeBSD 6.3 system on a 
> running on a separate box. Is there a way to export just those users?
>
> Thanks
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe at freebsd.org"
awk -F: '{if($4 > 3000) if($4 < 5000) print $0}' /etc/master.passwd

You should do it as root.



More information about the freebsd-questions mailing list