User Tools

Site Tools


docs:samba

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs:samba [2010-04-20 13:56]
Mateusz Korniak
docs:samba [2010-04-20 18:17]
glen typos
Line 1: Line 1:
- 
- 
-====== Allowing simple access from MS windows computers ====== 
-We have user '​kolo'​ on linux machine '​someserver'​ and we want access it's home directory contents from windwows machines. ​ 
- 
- 
- 
-==== Installation ==== 
- 
- 
-<​file>​poldek:/​all-avail>​ install samba-3.5.1-2.i686 
-</​file>​ 
- 
- 
-==== Access configuration ==== 
-Edit '/​etc/​samba/​smb.conf' ​ Set workgroup: ​ 
- 
-<​file> ​  ​workgroup = SOMEWORKGROUP 
-</​file>​ 
-Set descriptive workgroup: ​ 
- 
-<​file>#​ server string is the equivalent of the NT Description field                                                                                                                                                                                
-   ​server string = Someserver Samba Server 
-</​file>​ 
-Set which IP# can conect (localhost and 192.168.1.0/​24 in example): ​ 
- 
- 
- 
-<​file>​hosts allow = 192.168.1. ​ 127. 
-</​file>​ 
-Set security mode to '​user' ​ 
- 
-<​file>#​ Security mode. Most people will want user level security. See                                                                                                                                                                              
-# /​usr/​share/​doc/​samba-doc-html-*/​Samba3-HOWTO/​ServerType.html for details. ​                                                                                                                                                                 
-   ​security = user 
-</​file>​ 
-Select on which interfaces samba will listen: ​ 
- 
- 
- 
-<​file>​interfaces = 192.168.1.1/​24 127.0.0.1/8 
-</​file>​ 
-Add share definiotions for home directories: ​ 
- 
-<​file>​[homes] 
-   ​comment = Home Directories 
-   ​browseable = no 
-   ​writable = yes 
-</​file>​ 
- 
- 
-==== Start smb and verify if it runs ==== 
- 
- 
-<​file>​[matkor@someserver ~]$ smbclient -L localhost -U% 
-Domain=[SOMEWORKGROUP] OS=[Unix] Server=[Samba 3.5.1] 
- 
-        Sharename ​      ​Type ​     Comment 
-        --------- ​      ​---- ​     ------- 
-        IPC$            IPC       IPC Service (Someserver Samba Server) 
-Domain=[DOMAIN] OS=[Unix] Server=[Samba 3.5.1] 
- 
-        Server ​              ​Comment 
-        --------- ​           ------- 
-        SOMESERVER ​          ​Someserver Samba Server 
- 
-        Workgroup ​           Master 
-        --------- ​           ------- 
-        SOMEWORKGROUP ​ 
-</​file>​ 
- 
- 
-===== Add samba user (used to microsoft network logins) ===== 
- 
- 
-<​file>​sudo smbpasswd -a kolo 
-New SMB password: ​                                                                                                                                                                                                                           
-Retype new SMB password: 
-</​file>​ 
-You should now see server in network neighbourhood and be able to login to it or map drives on its shares. ​ 
- 
- 
- 
-====== Allowing following symlinks outside of share directory ====== 
-In global section one need to disbale linux client extensions (allowing to create symlinks) ​ 
- 
-<​file>#​ Turns off possiblity to clients to craete symlinks ​                                                                                                                                                                                       ​ 
-unix extensions=no 
-</​file>​ 
-And per share add:  
- 
-<​file> ​  ​follow symlinks = yes 
-   wide links = yes 
-</​file>​ 
  
docs/samba.txt ยท Last modified: 2010-04-20 18:17 by glen