<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>Am 24.01.2014 um 20:26 schrieb Camilo Vieira <<a href="mailto:camilo.vieira@gmail.com">camilo.vieira@gmail.com</a>>:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><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></blockquote><div><div style="margin: 0px; font-family: 'Lucida Grande';">(echo newPassword; echo newPassword) | smbpasswd -s</div><div style="margin: 0px; font-family: 'Lucida Grande';"><br></div><div style="margin: 0px; font-family: 'Lucida Grande';">Greetings,</div><div style="margin: 0px; font-family: 'Lucida Grande';">Kevin.</div></div><br><blockquote type="cite"><div dir="ltr"><div>Thanks!</div></div>
-- <br>ubuntu-users mailing list<br><a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users<br></blockquote></div><br></body></html>