Linux/Samba
From charlesreid1
basics
get
First, get samba.
$ apt-get install samba
start
then, start samba:
$ service smb start
configuration
samba configuration is located in /etc/samba/smb.conf
here is a basic configuration for samba:
[global] server string = File Server workgroup = HOME-NET security = user map to guest = Bad User name resolve order = bcast hosts wins include = /etc/samba/smbshared.conf
server string - description you see if browsing shares
workgroup - namespace for containing all systems for a particular purpose (your LAN name, which enables everything on that LAN to see each other). Windows: My Computer > Properties > Workgroup name should be listed in the window that appears
security setting tells samba to use the user's username and password for authentication. if this works, the user will not be prompted
map to guest bad user - if the username and password don't match a provided account, treat the user as a guest. this can be removed.
name resolve order bcast host wins - determines order of name resolution. in this case, use whatever is broadcast first, followed by etc hosts, followed by wins utility.
include statement gives us ability to include another configuration file into this configuration file, and define our shares there.
here is the samba shares file:
[Documents]
## My documents
path = /share/docs
public = yes
writable = no
[Public]
## Public files
path = /share/public
create mask = 0664
force create mode = 0664
directory mask = 0777
force directory mode = 0777
public = yes
writable = yes
Related
| linux networking all the pages for linux networking
Diagnosing network interfaces: Linux/Network Interfaces Connecting to nodes with ssh: Linux/SSH Bridging networks with ssh tunnels: Linux/SSH Linux file server nfs/smb/sshfs: Linux/File Server Samba on linux: Linux/Samba Automounting network shares on linux: Linux/Automount Network Shares Monitoring system resources: Linux/System Monitoring Linux systemd: Linux/Systemd
IP Schema (ipcalc): Linux/IP Schema DHCP Server: Linux/DHCP DNS Server: Linux/DNS NTP Server: Linux/NTP
|