Tiny Core Extensions > TCE Talk
chpasswd for samba
b1ackmai1er:
Is it possible to have a chpasswd for samba. i.e chsmbpasswd so we can change samba passwords in batch files
thanks
curaga:
http://syslog.warten.de/verbose/2010/05/chsmbpasswd.html :P
danielibarnes:
--- Quote from: curaga on April 18, 2011, 05:19:59 AM ---http://syslog.warten.de/verbose/2010/05/chsmbpasswd.html :P
--- End quote ---
That script was a bit primitive, here is a smaller equivalent:
while read x; do u=${x%:*}; p=${x#*:}; echo $p$'\n'$p|smbpasswd -s -a $u; done
b1ackmai1er:
Thanks guys!
Thats so cool.
b1ackmai1er:
Hi Again,
for simplicity, is there a way of doing this inline?
Thanks
Navigation
[0] Message Index
[#] Next page
Go to full version