Difference between revisions of "Mounting CIFS Shares from the command line"
Jump to navigation
Jump to search
m (Tinker moved page Mounting CIFS Shares to Mounting CIFS Shares from the command line without leaving a redirect) |
|||
Line 10: | Line 10: | ||
*<code>sudo mount -t cifs -o username='''USER''',password='''PASSWORD''' //'''SERVERNAME'''/'''SHARENAME''' ~/'''MOUNTPOINT'''</code> | *<code>sudo mount -t cifs -o username='''USER''',password='''PASSWORD''' //'''SERVERNAME'''/'''SHARENAME''' ~/'''MOUNTPOINT'''</code> | ||
== Permissions == | |||
Changing that command to | |||
*<code>sudo mount -t cifs -o username='''USER''',password='''PASSWORD''',dir_mode=0777,file_mode=0666 //'''SERVERNAME'''/'''SHARENAME''' ~/'''MOUNTPOINT'''</code> | |||
allows actual access... | |||
= Check it out = | = Check it out = | ||
*<code>ls /'''MOUNTPOINT'''</code> | *<code>ls /'''MOUNTPOINT'''</code> |
Revision as of 19:01, 19 January 2022
Install cifs-utils
sudo apt install cifs-utils -y
Create a mount point
sudo mkdir /MOUNTPOINT
sudo mount -t cifs -o username=USER,password=PASSWORD //SERVERNAME/SHARENAME ~/MOUNTPOINT
Permissions
Changing that command to
sudo mount -t cifs -o username=USER,password=PASSWORD,dir_mode=0777,file_mode=0666 //SERVERNAME/SHARENAME ~/MOUNTPOINT
allows actual access...
Check it out
ls /MOUNTPOINT