domingo, novembro 19, 2006

Convertendo seu arquivo Linux passwd para o BSD-style

Exemplo:
# cat linux_passwd awk -F : '{printf("%s:%s:%s:%s::0:0:%s:%s:%s\n", > $1,$2,$3,$4,$5,$6,$7); }' > new_passwd

# cat new_passwd >> /etc/master.passwd
# pwd_mkdb -p /etc/master.passwd