Open main menu

CDOT Wiki β

Changes

OPS335: File Servers

31 bytes added, 10:57, 5 March 2016
no edit summary
#Make certain that both your '''VM1''' and '''VM2''' machines are running.
#Switch to your '''VM2''' machineas the '''root''' user.
#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'''
{{Admon/tip|Changing Existing Samba Account Passwords|If you need to change a user's existing Samba account password, you can issue the following command as root: '''smbpasswd username'''.}}
<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 Use the systemctl command to start your Samba server (the smb.service) and ensure it will start at enable the service to run on boot.-up</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