After installation, we need to verify that the file / etc / services are no reserved ports to Samba.
netbios-ns 137/tcp # NETBIOS Name Service
netbios-ns 137/udp
netbios-dgm 138/tcp # NETBIOS Datagram Service
netbios-dgm 138/udp
netbios-ssn 139/tcp # NETBIOS Session Service
netbios-ssn 139/udp
and that should have started two daemons smbd (Samba configuration) and nmbd (the management and distribution of network resources) to check there. Then just type :
and verify that there are two lines that says smbd D and nmbd D. If this were not enough to put them in an init file (/ etc / rc.d / rc.local).
Now we go to edit the file smb.conf located in the / etc directory.
[Global]
It's the general section and perhaps the most important files, and an example :
workgroup = working_group (the name given to our working group under windows)
hosts allow = ip enter the network and possibly the loopback address (127.0.0.1) (only the computers on the local network will have access to resources)
guest account = nobody (defines the user name which provide access to services)
printing = bsd (assigning this string Samba uses lpr for printing)
printcap name = / etc / printcap (the path of the file linux with the specifications for the printer)
encrypt passwords = yes
netbios name = netbios enter the name of our machine that one with which we will see a shared network
interfaces = insert IP address and subnet of our network should not be one with which you connect to the Internet
os level = 34
Domain Management
- domain master = yes
- local master = yes
- preferred master = yes
The temporary directory
[Tmp]
path = / tmp
public = yes
printable = no
guest ok = yes
writable = yes
[Homes]
This section (optional) allows users logged on the Windows machine to access their Linux home directory.
[Homes]
Comment = Home Directory
browsable = yes (we allow the resource to be shown to all)
read only = no
printable = no
create mode = 0750 (type of permissions for each file you create from the Windows machine)
[Public]
comment = Public Directory
path = / dir / shared
browsable = yes
read only = no
public = yes
create mode = 0777
The directory / dir / shared will 'be used and will be visible to all? previously created with mkdir and permissions for all chmod a + rwx / dir / shared.
logon
[Netlogon]
Provides comment = Network Logon Service
path = / etc / samba / netlogon
guest ok = yes
writable = no
locking = no
public = no
browseable = yes
share modes = no
After changes to smb.conf you test the configuration with the command :
testparm
Now we restart the smbd and nmbd services with the commands:
smbd & nmbd restart & restart
Under Fedora (and RedHat) using
service smb restart
Now all Windows machines will be able to "see" the Linux machine as if it were their own kind.
<span style='color:blue'> Server Configuration Wizard </ span>
Bookmarks