Date created: 11/10/17 11:55:24. Last modified: 10/13/21 09:25:06



# Test SMB connectivity
sudo yum install samba-client.x86_64
smbclient "// With Space In Name" -U ADDOMAIN\\

# Mount share
sudo yum install cifs-utils
sudo mkdir /media/fs
sudo mount.cifs -o user=username,pass=5up3r53cr37,dom=ADDOMAIN "// With Space In Name" /media/fs

sudo umount /media/fs



sudo apt-get install cifs-utils
# Might need a restart after the above, to load the cifs kernel module, check with 'lsmod | grep cifs'

# One-time mount a guest share which doesn't require authentication
sudo mount -t cifs -o user=guest,pass=pass,dom=WORKGROUP "// Share" /media/nas

# Add a guest share to the fstab with the following entry, note the space in the share name is escaped with: \040
//\040Share /media/nas cifs guest,uid=1000 0 0
# Test with
sudo mount -a

Previous page: Bash Profile
Next page: 'dd' Notes