Open main menu

CDOT Wiki β

Changes

OPS335: File Servers

3 bytes removed, 10:50, 5 March 2016
no edit summary
#Issue the following Linux command to install Samba server utlity:<br>'''yum install samba samba-client'''<br>
#Move the file '''/etc/samba/smb.conf''' to another filename by issuing the following command:<br>'''mv /etc/samba/smb.conf /etc/samba.smb.conf.original'''
#iCreate Create a <u>new</u> '''smb.conf''' file that contains the following lines:
[global]
workgroup = <yourlearnidyourSenecaID>.org
server string = "put your real name here without the quotes"
encrypt passwords = yes
[home]
comment = "put your real name here without the quotes"
path = /home/<learnidyourSenecaID>
public = no
writable = yes
hosts allow = 192.168.x
<ol><li value="4">Append (add) the following parameter to the '''home section''' so that only your user account can access that share:</li></ol>
valid users = &lt;your-seneca-id&gt;<yourSenecaID>
<ol><li value="5">Use the '''smbpasswd''' command to create a samba account for yourself</li></ol>
<ol><li value="6">Confirm the user you created has been added using the following command:<br>'''pdbedit -L -v'''</li><li>Test and review your configuration with the command:<br>'''testparm'''</li><li>You can now start your Samba server (smb.service) and ensure it will start at boot.</li><li>Modify the firewall on VM2 to allow samba traffic.</li><li>Test if you have a connection with the command:<br>'''smbclient -U <learnid> -L vm2''' (It will show you a list of all available shares.)</li></ol>
13,420
edits