Open main menu

CDOT Wiki β

Changes

OPS335 Samba Lab

1 byte removed, 09:27, 25 March 2012
no edit summary
[[Category:OPS335]][[Category:OPS335 Labs]]
==SAMBA==
===Configuring an SMB Server on Linux===
*On your host F16 system install Samba
yum install samba samba-client
*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>
*Confirm the user you created has been added using the following command
pdbedit -L -v
*You can change a user's password by using the command
smbpasswd <learnid/username>
*Test your configuration with the command
testparm
*You can now start your Samba server
systemctl start smb.service
*Ensure your server starts at boot.
*You will need to determine which ports you need to open to allow connections to your server.
*Test if you have a connection with the command
smbclient -L f16
*If the previous command worked, try the connection from one of your VM's. You can view all available shares with the follow command:
smbtree -N
===Connecting to a Linux SMB Server (Matrix) from a Windows Client (Windows 7)===
*Power up a Windows 7 system in the lab and login using your LEARN username and password.
#***where xxxxxx is your your Matrix username.
#*If the previous step worked, browse your /mnt directory using cd and ls commands and when done use the umount command to unmount your Matrix home directory.
 
===Configuring an SMB Server on Linux===
*On your host F16 system install Samba
yum install samba samba-client
*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>
*Confirm the user you created has been added using the following command
pdbedit -L -v
*You can change a user's password by using the command
smbpasswd <learnid/username>
*Test your configuration with the command
testparm
*You can now start your Samba server
systemctl start smb.service
*Ensure your server starts at boot.
*You will need to determine which ports you need to open to allow connections to your server.
*Test if you have a connection with the command
smbclient -L f16
*If the previous command worked, try the connection from one of your VM's. You can view all available shares with the follow command:
smbtree -N
==Completing the Lab==
1
edit