Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Bruno Piche on August 12, 2003, 09:44:54 AM

Title: HELP! just erased smbpasswd
Post by: Bruno Piche on August 12, 2003, 09:44:54 AM
Was looking to solve an issue with my smb.conf and expanded the smbpasswd template by mistake. It completely wipped all content from my smbpasswd file. Is there a way to recreate it from either /home/e-smith/accounts or passwd? Thanks in advance.
Title: Re: HELP! just erased smbpasswd
Post by: Bruno Piche on August 12, 2003, 09:50:49 AM
I found that if I log into the server-manager and reset the password for a user it regenerates the smbpasswd file but I am still looking for a better way.
Title: Re: HELP! just erased smbpasswd
Post by: Marc on August 18, 2003, 08:46:41 PM
What I do BEFORE I do any mods to a file is this:

cp smb.conf smb.conf.bk01

Then you modify the file as you wish.

If you goof, you can always return back to the original file with a backout procedure.

cp smb.conf.bk01 smb.conf

I always prefer to prevent a problem than to fix a problem.
Title: Re: HELP! just erased smbpasswd
Post by: Charlie Brady on August 20, 2003, 03:13:32 AM
Bruno Piche wrote:

> I found that if I log into the server-manager and reset the
> password for a user it regenerates the smbpasswd file but I
> am still looking for a better way.

There isn't one.

Charlie
Title: Re: HELP! just erased smbpasswd
Post by: ryan on September 01, 2003, 07:42:36 AM
Just an idea....If you have a backup to desktop, you can use zip software to extract this file from the .gz backup file.  I have used winzip 8.1 for windows to extract files from my .gz backup...

ryan