Enabling SWAT

Gaurang Pandya gaubrig at yahoo.com
Mon Jan 14 06:38:15 GMT 2002


 Read following an extract from man page of smb.conf file.
unix password sync (G) 
This boolean parameter controlls whether Samba attempts to synchronise the UNIX password with the SMB password when the encrypted SMB password in the smbpasswd file is changed. If this is set to true the 'passwd program' program is called *AS ROOT* - to allow the new UNIX password to be set without access to the old UNIX password (as the SMB password has change code has no access to the old password cleartext, only the new). By default this is set to false. 
See also 'passwd program', 'passwd chat' 
Default: 
         unix password sync = False

Example: 
         unix password sync = True

Hope this will help you.

Gaurang.

  "Jon L.Gardner" <jon at food.tamu.edu> wrote: Is there a way to get Samba to keep the smbpasswd file entries 
synchronized with the /etc/passwd (or NIS, or NetInfo) entries? From 
what I'm seeing, we'll end up having to change passwords twice...once 
for UNIX, again for Samba (I know there's a way to update the UNIX 
password when the Samba password is changed from a client, but most of 
my clients aren't using CIFS clients).

On Sunday, January 13, 2002, at 04:02 PM, Marc R. Hoffman wrote:

> I had the same authentication error. This fixed it for me. Make sure 
> that you run the following as "root":
>
> cat "/etc/passwd" | mksmbpasswd.sh > /etc/samba/smbpasswd
>
> You will need to restart Samba so that it uses this file. I just 
> rebooted to make sure things were restarted properly.
>
> You will then need to update it to have your password. You can do this
> by running the following command:
>
> smbpasswd -u [USERNAME]
>

<><
Jon L. Gardner '89, Computer Systems Manager 
Texas A&M University Dept. of Food Services 
Tel 979.458.1839 * Fax 979.845.2157 * Hip 979.229.4323
PGP public key available at 

"Statesmen...may plan and speculate for Liberty, but it is religion and 
morality alone, which can establish the principles upon which Freedom 
can securely stand." (John Adams)


-- 
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba


---------------------------------
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail.
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the samba mailing list