Windows下查看Linux的共享文件

Ubuntu 下配置samba實現文件夾共享

. Install the samba:

sudo apt-get insall samba
sudo apt-get install smbfs

. Create the share directory:

mkdir /home/phinecos/share
sodu chmod 777 /home/phinecos/share

. Create Samba config file:

1. Bak the config file

sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak

2. Modify the config file

sudo gedit /etc/samba/smb.conf

Add the following sentence in end of smb.conf

[share]
      path = /home/phinecos/share
      available = yes
      browsealbe = yes
      public = yes
      writable = yes

. Create the samba account

  sudo touch /etc/samba/smbpasswd
  sudo smbpasswd -a username

 

input the samba passwd

 [If you didn't set the samba passed,you can find the prompt in session setup failed: NT_STATUS_LOGON_FAILURE]when you login in.

 . Restart samba server

sudo /etc/init.d/samba restart

. Testing

smbclient -L //localhost/share

七,You can share the /home/phinecos/share directory in windows

windows: input the IP

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章