ubuntu-10.10系統中samba服務的安裝

一、安裝samba:     sudo apt-get install sambalinux

 sudo apt-get install smbfsvim

二、建立共享目錄:  sudo mkdir /home/linux/sambawindows

 sudo chmod 777 /home/linux/samba服務器

三、修改Samba配置文件:        session

                              sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak     //養成好習慣作好原始文件的備份spa

                              sudo vim /etc/samba/smb.confrest

                          在smb.conf最後添加get

                                         [samba]it

                                          path = /home/linux/sambaio

                                          available = yes

                                          browsealbe = yes

                                          public = yes

                                          writable = yes

四、建立Samba賬戶:        

                              sudo touch /etc/samba/ /etc/samba/smbpasswd

sudo smbpasswd -a linux

                                          而後會要求你輸入samba賬戶的密碼

提示:若是沒有第四步,當你登陸時會提示 session setup failed: NT_STATUS_LOGON_FAILURE]

五、重啓Ubuntu Samba服務器:

sudo /etc/init.d/smbd restart

六、Samba使用:

能夠到windows的運行窗口輸入:\\192.168.10.88(linux的IP地址)

相關文章
相關標籤/搜索