搜尋此網誌

2011年1月7日 星期五

ubuntu samba server

  1. Installl samba
    $ sudo apt-get install samba4 
    (install samba, server can not start, i don't know why)
    $ sudo apt-get install smbclient
    
  2. Configure /etc/samba/smb.conf
    [global]
          security = share
    [share]
          comment = chenorui
          path = /home/chenorui/share
          public = yes
          guest ok = yes
          browsable = yes
          writable = no
    
  3. Restart samba server
    $ sudo /etc/init.d/samba4 restart
    
  4. Look at what services are available on a server
    $ smbclient -L //yourIP
      Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.4]
      
      Sharename       Type      Comment
      ---------       ----      -------
      IPC$            IPC       IPC Service (chenorui server (Samba, Ubuntu))
      share           Disk      chenorui
      HP-LaserJet-M1522 Printer   HP LaserJet M1522
      Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.4]
      
      Server               Comment
      ---------            -------
      
      Workgroup            Master
      ---------            -------
    
  5. Login share profile
    $ smbclient //yourIP/share
      smb: \>
    
  6. mount share profile
    $ sudo smbmount //yourIP/share /tmp/test
    

沒有留言:

張貼留言