: Create new ID and Password for samba
(It should be the same with the Linux account.)
$ sudo smbpasswd -a userid
2. Modify smb.conf
$ sudo vi /etc/samba/smb.conf
[global] # input the workgroup name for windows networks workgroup = workgroup dos charset = CP949 display charset = UTF8 unix charset = UTF8 ; load printers = yes printing = lpmg # set the computer name for windows explorer server string = vmUbuntuSambaServer printcap name = /etc/printcap cups options = raw log file = /var/log/samba/%m.log max log size = 50 # set the user account security = USER socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = no password server = None username map = /etc/samba/smbusers ; idmap uid = 16777216-33554431 ; idmap gid = 16777216-33554431 ; template shell = /bin/false ; guest ok = no ; winbind use default domain = no # set a shared folder for brian user [brian] comment = brian samba path = /home/brian writeable = yes guest ok = no create mask = 0644 directory mask = 0755 [tmp] comment = tmp samba path = /tmp valid users = brian other_user_name writeable = yes guest ok = no create mask = 0644 directory mask = 0755
3. Restart Samba
: sudo /etc/init.d/samba restart
No comments:
Post a Comment