reading:
http://www.dd-wrt.com/wiki/index.php/Optware%2C_the_Right_Way
http://www.dd-wrt.com/wiki/index.php/Samba3
$ vi /opt/etc/init.d/S08samba
NAME=samba
samba_active=1
[ 1 = $samba_active ] || exit 0
## add user: steve
grep -q steve /etc/passwd || echo “steve:*:992:992:steve:/var:/bin/false” >> /etc/passwd
# add group
grep -q steve /etc/group || echo “steve:x:992:” >> /etc/group
# display chinese text in ssh shll
grep -q LANG /tmp/root/.profile || echo “export LANG=zh_TW.UTF-8” >> /tmp/root/.profile
$ smbpasswd -a steve
$ vi /opt/etc/samba/smb.conf
Fix some permission issue
$ find /somefolder -type d -exec chmod 775 {} \;
$ find /somefile -type f -exec chmod 664 {} \;
@MacBook
after mount, System Preferences > Account > login
mount sabma after you logged in
ref:
http://www.dd-wrt.com/phpBB2/viewtopic.php?p=334644#334644
http://dd-wrt.com/phpBB2/viewtopic.php?t=56439
http://hi.baidu.com/myeyre/blog/item/2b873d6d2198ebf1431694b3.html