TEXT
24
smb.conf
Guest on 23rd April 2022 12:46:05 AM
smb.conf
--------
01. vi /etc/samba/smb.conf
02. set workgroup = WORKGROUP
03. hosts allow = 192.168.0. 127 (this allows 192.168.0.x and 127 localhost)
04. encrypt passwords = yes
05. wins support = yes (require for linux to act as WINS server)
05. set up shares
setup users
01. smbpasswd -a username (adds username to smb list and creates password)
Sample Share
------------
[username_public_html]
path = /home/username/public_html
writable = yes
valid users = username
guest account = username
Location of SMB
---------------
/etc/rc.d/init.d/
./smb start/stop/restart
OR
service smb start|stop|restart
Printing
--------
public = yes
only guest = yes
And setup the Default Samba user so that it can print?
SELinux gets involved
---------------------
setsebool -P samba_export_all_rw 1 (or ro for read only)
Note: don't add folders for sharing to / unless you want to change the
context, as in, if the context was like it is on /etc/shadow, the system would
just know to not allow it b/c of the context.