PDA

View Full Version : master.passwd



oxygenws
چهارشنبه 29 مهر 1383, 21:05 عصر
سلام،

فایل master.passwd چیه؟؟ کاربردش چیه؟
چرا من روی لینوکس ام ندارمش؟!!

ممنون

hosseinzadeh
پنج شنبه 30 مهر 1383, 15:12 عصر
http://mirbsd.bsdadvocacy.org/cman/man5/master.passwd.htm

oxygenws
پنج شنبه 30 مهر 1383, 18:38 عصر
ممنونم جناب حسین زاده.

- آیا نداشتن این فایل مهم هستش؟!

- هماهنگی این فایل با فایل passwd و shadow چطوری برقرار می شه؟!

- آیا من شخصا توانایی اضافه کردن این فایل رو دارم؟!

- چه محاسن خارق العاده ای داره؟! (تنها وجود چند تاریخ رو حسن این فایل دیدم)

- ...

ممنون و موفق باشید، امید

hosseinzadeh
جمعه 01 آبان 1383, 09:51 صبح
آیا نداشتن این فایل مهم هستش؟!
خیر.تا اونجا که فهمیدم این فایل معادل passwd در خانواده BSD است.


هماهنگی این فایل با فایل passwd و shadow چطوری برقرار می شه؟!
اصولا ردهت از چنین فایلی پیشتیانی نمی کنه.


- آیا من شخصا توانایی اضافه کردن این فایل رو دارم؟!
بله.FreeBSD نصب کنید!


- چه محاسن خارق العاده ای داره؟! (تنها وجود چند تاریخ رو حسن این فایل دیدم)
ر.ک:در این مورد و موارد دیگر به مطلب زیر در مورد آقایی که می خواد از FreeBSD به Redhat مهاجرت کنه:


> Hi-
>
> I have just taken over operations at an ISP and I will be converting the
> very dated FreeBSD machines
> to Red Hat Linux. Can someone point me to a script or utility that will
> allow me to convert the passwd
> file on FreeBSD to Red Hat? Is there such a thing or must I manually key
> in the several thousand
> users :(



Aaarrggghhh.... you're going to commit daemon-o-cide....

FreeBSD stores user accounts in /etc/master.passwd. This file is similar
to the linux /etc/passwd file, but it contains 10 fields, instead
of the usual 7. The extra fields are the 5th, 6th and 7th, which are
FreeBSD-specific. You could write an awk one-liner to extract fields 1-4
and 8-10 from this file, and construct a linux-compatible /etc/passwd. And
then if you're using shadow on your redhat system, then run the pwconv
utility to generate your shadow file. See this link for more information:

http://www.freebsd.org/cgi/man.cgi?query=passwd&sektion=5&apropos=0&manpath=FreeBSD+4.6-RELEASE

oxygenws
جمعه 01 آبان 1383, 10:37 صبح
:D بسیار سپاسگذارم :<:

موفق باشید.