Difference between revisions of "Mounting CIFS Shares from the command line"
Jump to navigation
Jump to search
Line 26: | Line 26: | ||
= Usage Notes = | = Usage Notes = | ||
== List shares available == | == List shares available == | ||
*<code>sudo smbclient -L '''HOSTNAME'''</code> | *<code>sudo smbclient -L '''HOSTNAME'''</code> |
Revision as of 20:45, 19 January 2022
Install cifs-utils and samba-client
sudo apt install cifs-utils samba-client -y
Create a mount point
sudo mkdir /MOUNTPOINT
sudo mount -t cifs -o username=USER,password=PASSWORD //SERVERNAME/SHARENAME ~/MOUNTPOINT
Permissions
Changing that mount command to
sudo mount -t cifs -o username=USER,password=PASSWORD,dir_mode=0777,file_mode=0666 //SERVERNAME/SHARENAME ~/MOUNTPOINT
allows actual access...
(Gotta be a better way...)
Check it out
ls /MOUNTPOINT
Usage Notes
sudo smbclient -L HOSTNAME