Migrating password file to new freebsd server


 
Thread Tools Search this Thread
Operating Systems BSD Migrating password file to new freebsd server
# 1  
Old 09-16-2006
Migrating password file to new freebsd server

I need to migrate an existing master.passwd file to new FreeBsd Unix Box. I will moving from 4.1 to 6.1. I already have the home directories copied over. Once I copy over the masterpasswd file what do I need to do to make the system use the new master.passwd file?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

File transfer between Linux server without password

Hi All, I am trying to generate SSH keys for file file transfer automation but facing issue while generating keys. And I tried from another directory but still facing same issue. Error : Open scripts/renu/.ssh/rsa_id failed : Is a directory Saving the key failed... (4 Replies)
Discussion started by: renukeswar
4 Replies

2. UNIX for Beginners Questions & Answers

FreeBSD vs CentOS as server

I have a HP Proliant server with centOS. This is the software that I run: - SSH + SFTP - NGINX - PHP7 - Bitcoind - MYSQL Would you recommend FreeBSD or CentOS for this software. Also how hard is it to set this up with FreeBSD compaired to CentOS? I never used FreeBSD before, is it hard... (3 Replies)
Discussion started by: jwz104
3 Replies

3. Shell Programming and Scripting

How to scp File from root user in one server to say crt user in another server and avoid password?

Can someone help in writing some script through which I can transfer file (scp) from root user in abc server to crt user in hfg server and can give the crt user password in script itself so that it doesn't prompt me every time for password (4 Replies)
Discussion started by: Moon1234
4 Replies

4. Linux

Migrating to new server

Hi I configured a full blown Suse Linux server with FTP (VSFTP) server (98 users), Samba as well as secure Ftp on Suse Linux 10 SP4. I need to transfer the whole system to a NEW server that I configured with Ver 11.4 What files need to be backed up and restored to the new server keeping the... (5 Replies)
Discussion started by: Tony.Marshall
5 Replies

5. AIX

Migrating a NIM Server to AIX 6.1

Guys, We are planning to upgrade one of our NIM server to AIX 6.1 from 5.3... Since the server itself is a NIM Server we can't perform it via NIM & I'm choosing to do CD install.. The Install method would be Upgrade installation. Is there anything special that I need to consider before... (5 Replies)
Discussion started by: kkeng808
5 Replies

6. Shell Programming and Scripting

scp file to another server without asking for password

hi I tried reading some of the threads w.r.t scp/sftp file to another server in the same network without asking for password while copying files.....but couldnot succeed. i have generated the public key for the system using "ssh-keygen -t " and kept it in the .ssh/authorized_keys file. ... (8 Replies)
Discussion started by: aemunathan
8 Replies

7. BSD

NTP Server on FreeBSD

Hello, I'm trying to create a NTP server on a FreeBSD machine inside my local network, so all the clients of that network can actually query for that machine. Should be of no problem right? Here's the configuration of the /etc/ntp.conf on the FreeBSD machine: server br.pool.ntp.org burst ... (1 Reply)
Discussion started by: Zarnick
1 Replies

8. IP Networking

FreeBSD as Server

Hi All, I am a newbie in Unix and Networking. Let me explain what I want. In my office, we work with terminals in windows as interface to Unix Server (HP-UX, AIX, Solaris). I would like to have the same set up at home. I am using a VMWare version of FreeBSD v7.0. I want it to be my Unix Server... (0 Replies)
Discussion started by: ahamed101
0 Replies

9. UNIX for Dummies Questions & Answers

FreeBSD 4.9 PPTP server

Hey guys, what's up? I'm new to UNIX and I really don't know much. Kinda learning as I go along. I have successfully installed FreeBSD 4.9 and enabled FTP and Telnet services. I'm looking to setup a VPN server on my BSD box but I'm lost. Can anyone guide me in the right way? Much thanks! -... (2 Replies)
Discussion started by: sirex
2 Replies

10. UNIX for Advanced & Expert Users

Migrating all users from one linux server to another...

Hello, I've been tasked with migrating users from one linux server to another new linux server. This is how I was thinking of doing it: 1.) Open up an NFS connection between the two servers, cp -Rp /home/ to the new server and then append the old /etc/group & /etc/passwd to the existing... (2 Replies)
Discussion started by: vancouver_joe
2 Replies
Login or Register to Ask a Question
PWD_MKDB(8)						    BSD System Manager's Manual 					       PWD_MKDB(8)

NAME
pwd_mkdb -- generate the password databases SYNOPSIS
pwd_mkdb [-c] [-p | -s] [-d directory] [-u username] file DESCRIPTION
pwd_mkdb creates db(3) style secure and insecure databases for the specified file. These databases are then installed into /etc/spwd.db and /etc/pwd.db, respectively. The file is installed into /etc/master.passwd. The file must be in the correct format (see passwd(5)). It is important to note that the format used in this system is different from the historic Version 7 style format. The options are as follows: -c Check if the password file is in the correct format. Do not change, add, or remove any files. -d directory Operate in a base directory other than the default of /etc. All absolute paths (including file) will be made relative to directory. Any directories specified as a part of file will be stripped off. This option is used to create password databases in directories other than etc; for instance in a chroot(8) jail. -p Create a Version 7 style password file and install it into /etc/passwd. -s Only update the secure version of the database. This is most commonly used in conjunction with the -u flag during a password change. Because the insecure database doesn't contain the password there is no reason to update it if the only change is in the password field. Cannot be used in conjunction with the -p flag. -u username Only update the record for the specified user. Utilities that operate on a single user can use this option to avoid the overhead of rebuilding the entire database. This option must never be used if the line number of the user's record in /etc/master.passwd has changed. file The absolute path to a file in master.passwd format, as described in passwd(5). The two databases differ in that the secure version contains the user's encrypted password and the insecure version has an asterisk ('*'). The databases are used by the C library password routines (see getpwent(3)). pwd_mkdb exits zero on success, non-zero on failure. FILES
/etc/master.passwd current password file /etc/passwd a Version 7 format password file /etc/pwd.db insecure password database file /etc/pwd.db.tmp temporary file /etc/spwd.db secure password database file /etc/spwd.db.tmp temporary file SEE ALSO
chpass(1), passwd(1), db(3), getpwent(3), passwd(5), vipw(8) STANDARDS
Previous versions of the system had a program similar to pwd_mkdb, mkpasswd, which built dbm(3) style databases for the password file but depended on the calling programs to install them. The program was renamed in order that previous users of the program not be surprised by the changes in functionality. BUGS
Because of the necessity for atomic update of the password files, pwd_mkdb uses rename(2) to install them. This, however, requires that the file specified on the command line live on the same file system as the /etc directory. There are the obvious races with multiple people running pwd_mkdb on different password files at the same time. The front-ends to pwd_mkdb, chpass(1), passwd(1), and vipw(8) handle the locking necessary to avoid this problem. BSD
June 6, 1993 BSD