<div dir="ltr"><div><div>Hi! </div><div><br></div><div>I'm working on Ubuntu Server 12.04 preseed instalation for the customers.</div><div>I have trying to configure a samba share and set the password for the backup user automaticaly.</div>
<div><br></div><div>I have added this lines on the post script:</div><div><br></div><div># SAMBA SHARE AUTO CONFIGURATION</div><div><br></div><div># copy the configuration </div><div>sudo cp /opt/dgb/smb.conf /etc/samba/ </div>
<div><br></div><div># set the password for the backup user</div><div><br></div><div>sudo mksmbpasswd /etc/passwd > /tmp/samba/smbpasswd</div><div>sudo mv /tmp/samba/smbpasswd /etc/samba/smbpasswd</div><div>sudo chown root:root /etc/samba/smbpasswd</div>
<div>sudo smbpasswd -a backup -n</div><div>sudo mkdir /var/backups/nds</div><div><br></div><div>sudo /etc/init.d/smbd restart </div><div>################################</div><div>Anyone knows how I can set the password using smbpasswd without user intervention?</div>
<div><br></div><div>Thanks!</div></div></div>