Changes

Jump to: navigation, search

OPS335: File Servers

175 bytes added, 15:13, 29 February 2016
no edit summary
x
'''Perform the following steps:'''
*#In a full installation you should not need to install samba-client on your host, but if it is not present then do so.*#You will also need to install the cifs-utils package to be able to mount the filesystem.*#From the host use the "smbclient" command in a terminal window. :<br>'''smbclient '\\vm2\home' -U <learnid>'''*#After entering your password you should get a prompt similar to :<br>'''smb: \>'''*#Enter the ls command to see a list of the files in your home directory :<br>'''smb: \> ls'''<br><br>- you may receive the following error. smb: \<br> ls NT_STATUS_ACCESS_DENIED listing \*<br><br>*#SE Linux should be in Enforcing and will need to be adjusted (on the samba server) for this to work. by issuing the command:<br>'''setsebool -P samba_enable_home_dirs 1'''*#Once you have access to the directory use the get and put commands (similar to ftp) to move files.*#When you are finished close the connection.
=== Using 'mount -t cifs' ===
*x '''Perform the following steps:''' #The next way is to use the mount command.*Use the mount command on the host to mount your home directory by issuing the following commands:<br'''>mkdir /tmp/vm2-home '''<br>'''mount -t cifs //vm2/home /tmp/vm2-home -o username=<learnid> '''<br>'''ls /tmp/vm2-home'''
==INVESTIGATION 3: CONNECTING TO A SAMBA SERVER FROM A WINDOWS CLIENT==
13,420
edits

Navigation menu