Koozali.org: home of the SME Server

HELP! just erased smbpasswd

Bruno Piche

HELP! just erased smbpasswd
« 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.

Bruno Piche

Re: HELP! just erased smbpasswd
« Reply #1 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.

Marc

Re: HELP! just erased smbpasswd
« Reply #2 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.

Charlie Brady

Re: HELP! just erased smbpasswd
« Reply #3 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

ryan

Re: HELP! just erased smbpasswd
« Reply #4 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