RE: Problems after upgrade

2004-02-25 Thread Derrick Ryalls
 I upgraded my server from FreeBSD 4.6.2 to version 4.8. After 
 this, my passwd file was empty and my master.passwd was gone! 
 I have a backup of these files and now I need to rebuild my 
 users database. Is there a way to do this from my old files? 
 I also need them for my SMB network.
 

Sounds like a mergemaster gone bad.  If you have a backup as you say you do,
I think you just need to merge the two files together into the new file.  I
say merge because going from 4.6.2 to 4.8, a couple system entries were
added to the password file.  Easiest way would probably be to copy the new
lines from the new/blank password file to a copy of your backed up password
file via vipw, then mv your manually merged file into the normal system
location.  Good luck.


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problems after upgrade

2004-02-25 Thread Matthew Seaman
On Wed, Feb 25, 2004 at 03:30:36PM -0600, Luis Guzmán wrote:

 I upgraded my server from FreeBSD 4.6.2 to version 4.8. After this, my passwd file 
 was empty and my master.passwd was gone! I have a backup of these files and now I 
 need to rebuild my users database. Is there a way to do this from my old files? I 
 also need them for my SMB network.

Copy your backup master.passwd file to /etc/master.passwd and then run:

# pwd_mkdb /etc/master.passwd

which will rebuild the password database, including the /etc/passwd file.  

Nb. If you upgraded your system using the install media, what it will
have done is essentially write over your original system with the
updated files.  That includes giving you a fresh set of the default
versions of the files under /etc -- it will backup your original
settings for you, but you're going to have to merge those files with
the new ones under /etc.  This includes particularly such files as
/etc/group, /etc/login.conf, /etc/make.conf, your PPP configuration
(if you're using PPP) and any other files you've customised.  You may
find the following commands useful if you need to restore the group or
login.conf files:

# cap_mkdb /etc/login.conf
# cap_mkdb /etc/group

(It does no harm to run those if you're not sure whether you need to
or not.)

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: problems after upgrade 5.1 5.2 RC1

2003-12-14 Thread Kris Kennaway
On Sun, Dec 14, 2003 at 02:27:08PM +0100, martin vana wrote:
 Hi,
 after binary upgrade from 5.1 to 5.2 RC1 I've encoutered some non-critical 
 misbehaviour of my box, 
 after executing mount :
 
 /home/vana#mount
  on  ()
  on  ()
  on  ()
  on  ()
  on  ()
  on  ()
 
 and  fsck:
 
 /home/vana#fsck -y
 /libexec/ld-elf.so.1: fsck: Undefined symbol execvP
 
 
 Whole system works just fine but these two things scares me a bit,
 anyone experienced the same?

Do you have some old executables in your path that are superceding the
system versions?

Try 'which mount' and 'which fsck'

Kris


pgp0.pgp
Description: PGP signature


Re: problems after upgrade 5.1 5.2 RC1

2003-12-14 Thread martin vana
On Sun, 14 Dec 2003 08:47:44 -0800
Kris Kennaway [EMAIL PROTECTED] wrote:

 On Sun, Dec 14, 2003 at 02:27:08PM +0100, martin vana wrote:
  Hi,
  after binary upgrade from 5.1 to 5.2 RC1 I've encoutered some non-critical 
  misbehaviour of my box, 
  after executing mount :
  
  /home/vana#mount
   on  ()
   on  ()
   on  ()
   on  ()
   on  ()
   on  ()
  
  and  fsck:
  
  /home/vana#fsck -y
  /libexec/ld-elf.so.1: fsck: Undefined symbol execvP
  
  
  Whole system works just fine but these two things scares me a bit,
  anyone experienced the same?
 
 Do you have some old executables in your path that are superceding the
 system versions?
 
 Try 'which mount' and 'which fsck'
 
 Kris
it might be possible that upgrade went something wrong but:

/home/vanawhich fsck
/sbin/fsck

/home/vanawhich mount
/sbin/mount


 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]