Changes

Jump to: navigation, search

OPS335 Samba Lab

127 bytes removed, 09:57, 25 March 2012
Configuring an SMB Server on Linux
yum install samba
*Create a backup of the file /etc/samba/smb.conf, and create a new one that includes the following:
[global] workgroup = OPS335 server string = "put your real name here without the quotes" encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd hosts allow = 142.204.141. ; note: the above line will allow access from the Seneca domain in lab T2107
[home] comment = "put your real name here without the quotes" path = /home/<learnid> valid users = <learnid> ; remember <learnid> is your learnid account name public = no writable = yes printable = no create mask = 0765
*Create a Samba password for user <learnid> with the command
smbpasswd -a <learnid>
*Test your configuration with the command
testparm
*You can now start your Samba server
systemctl start smb.service
*Test if you have a connection with the command
smbclient -L 142.204.141.yyy -Uxxxxxxx%ppppppp
*where 142.204.141.yyy is your Fedora Linux IP address and xxxxxxx is your Matrix account name and ppppppp is your SAMBA password
*If the previous command worked, use another PC (Fedora then Windows) to establish a connection with the SMB server on your Fedora Linux machine. This step is important to ensure your SMB server on Linux is working.
1
edit

Navigation menu