passwd file transfer

2009-04-16 Thread gahn

Hi all:

we have a linux based system and it will be replaced with freebsd based system. 
but i would like to reuse users' password. is there any better way to do this?


  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: passwd file transfer

2009-04-16 Thread Dan Nelson
In the last episode (Apr 16), gahn said:
 we have a linux based system and it will be replaced with freebsd based
 system.  but i would like to reuse users' password.  is there any better
 way to do this?

There's an awk script at the bottom of the passwd(5) manpage that will
convert a non-BSD passwd file to BSD's master.passwd format.  Make sure you
run pwunconv on the Linux box to merge your passwords from /etc/shadow back
into /etc/passwd before running the awk script.

http://www.freebsd.org/cgi/man.cgi?query=passwdsektion=5

-- 
Dan Nelson
dnel...@allantgroup.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: passwd file transfer

2009-04-16 Thread Chris Rees
2009/4/16 gahn ipfr...@yahoo.com:

 Hi all:

 we have a linux based system and it will be replaced with freebsd based 
 system. but i would like to reuse users' password. is there any better way to 
 do this?




You *could* use some fancy awk | sed stuff to get passwords from your
existing file and stick them in your /etc/master.passwd

BUT it'd probably be far easier to just get users to recreate
passwords. You should tell them to do this regularly anyway...

Chris



-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org