lotus



previous page: 68 h. Why do active network applications stop when I launch MachTen?
  
page up: MachTen & CodeBuilder FAQ
  
next page: 70 p. How can I safely mount a device to the /volume directory in PowerMachTen?

69 m. How do I convert the old password files from Professional MachTen toPower MachTen?




Description

This article is from the MachTen & CodeBuilder FAQ, by Jaime Julca jjulca@tenon.com with numerous contributions by others.

69 m. How do I convert the old password files from Professional MachTen toPower MachTen?

Because Power MachTen is BSD 4.4 compliant, we have moved to the shadow
password suite. As a result, the old databases are no longer compatible. The
following two perl scripts will convert the password files for you. The
first takes your passwd file and outputs what your master.passwd should look
like. Just run it and redirect your output to /etc/master.passwd. You should
also chmod 600 this file so only root can read it. The second modifies your
passwd file so it no longer contains the passwords. You should back up your
passwd file before you try any of this, in case anything goes wrong. If you
don't already have perl, you can get it from our ftp site.

Using the "vipw" command, you should edit the password information. Just
modify it so it will update the database, i.e., change something then change
it back. When you exit vipw, it will build the spwd.db and pwd.db databases.

**** First Script ****
#!/usr/local/bin/perl
  
open(PASSWD, "/etc/passwd");
  
while(<PASSWD>){
chop;
($name, $password, $uid, $gid, $realname, $homedir, $shell) = split(/:/);
print
"$name:$password:$uid:$gid::0:0:0:$realname:$homedir:$shell\n" ;
}
  
**** Second Script ****
#!/usr/local/bin/perl
  
open(PASSWD, "/etc/passwd");
  
while(<PASSWD>){
chop;
($name, $password, $uid, $gid, $realname, $homedir, $shell) =
split(/:/);
print "$name:\*:$uid:$gid::$realname:$homedir:$shell\n" ;
}

G7.n. I tried to change my root password, but the passwd program did not
prompt me for my current password before creating a new one. /etc/passwd,
still lists the root passwd as *. Why?

The passwd program does not ask for your old password when changing it.
Power MachTen uses shadow password that it keeps in a separate encrypted
file. Your /etc/passwd file should contain * for the passwords. Refer to the
passwd man page for more details.

G7.o. Where is rfork in Power MachTen?

We did not set this up correctly in Power MachTen. You must make a soft link
between dfork and rfork: 'ln -s rfork dfork'. When rfork runs, it will
notice its name and act accordingly.

 

Continue to:















TOP
previous page: 68 h. Why do active network applications stop when I launch MachTen?
  
page up: MachTen & CodeBuilder FAQ
  
next page: 70 p. How can I safely mount a device to the /volume directory in PowerMachTen?