Smaba的配置
smaba是一个运用很广的工具,可是一直不会用,今天记录一下:
1)install the samba: $sudo apt-get install samba
2)$sudo apt-get install smbfs
3)In you Ubuntu machine, mkdir a folder,$mkdir /home/lcuser/<you_folder>
4)Give the permission to the <you_folder>:$chmod 777 /home/lcuser/<you_folder>
Edit the config file
5)$sudo cp /etc/samba/smb.conf /etc/smaba/smb.conf_backup
6)$sudo vi /etc/samba/smb.conf
[global]
secutity=user
username map=/etc/samba/smbusers
workgroup=WORKGROUP
display charset =UTF-8
unix charset =UTF-8
dos charset =cp936
...
[share_window]
path =/home/lcuser/<you_folder>
public =yes
writable =yes
valid users =<username>
create mask =0700
directory mask = 0700
avaiable =yes
browseable =yes
#create username map file
7)$sudo vi /etc/samba/smbusers
8)<username>="network username"
#add count
9)sudo useradd <username>
10)sudo smbpasswd -a <username>
11)$sudo service smbd restart
#config on the window
1) right click "my computer",in the popup UI,In the Folder textbox,please input the follow:
\\<Ubuntu_IP>\<you_folder>
End you can look the file on you Ubuntu files

浙公网安备 33010602011771号