[Samba] smb/unix password sync
Paul Miller
paul-samba at pinheiro.tcimet.net
Mon Feb 4 11:46:24 GMT 2002
Yeah, that's really insecure. Someone could just grab the password by
watching the command line. The docs mentioned something about pam stacking
or something, but I don't know much about pam.
-Paul
> wouldn't a shell script work here? Write a script that takes arguments
> and pass them to smbpasswd and passwd individually.
>
> #!/bin/bash
> # $1 = username
> # $2 = passwd
>
> echo "$2" | passwd --stdin $1
> smbpasswd $1 "$2"
>
> then call it with script.sh username "password"
>
> or you can feed the password on stdin. I don't know of the security
> concerns here so someone speak up.
>
>
>
> Paul Miller wrote:
>
>> How can I use the pam_smbpass module to sync unix passwd with
>> smbpasswd?
>>
>> Here's the details:
>> I'm using both passwd and smbpasswd. When passwords are changed with
>> smbpasswd, passwd is sync'd. I would like it so when passwds are
>> changed with passwd, smbpasswd is sync'd if-and-only-if a user exists
>> in smbpasswd. (Not all unix accounts have access to samba).
>>
>>
>>
>>
>
>
> --
> Terry Davis
> Systems Administrator
> BirdDog Solutions, Inc.
> (402) 829-6059
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
More information about the samba
mailing list