#################################################3
#!/bin/bash
username=$1
password=$2
whoami=`whoami`
datecreated=`date`
# Ensure that root is running the script.
Jay wrote:
> Hi,
>
> while running the same command on samba server I am getting following
> error.
>
> #echo world;echo world|smbpasswd -a -s -U xyz
>
This was not my command.
> world
> Mismatch - password unchanged.
> Unable to get new password.
>
So you are getting errors.
>>> #(echo password ; echo passowrd) |smbpasswd -a -s -U nilesh
>>>
This was my command above one.
You forgot the brackets. !!!
--
Nilesh Vaghela
ElectroMech
Redhat Channel Partner and Training Partner
Ahmedabad: 404,Maulik Arcad,Nr. Mansi cross Road,Satellite Rd
Baroda : 25, The Emperor, Fatehgunj
www.electromech.info