13,420
edits
Changes
no edit summary
#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:<br>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.
#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==