Difference between revisions of "Mounting CIFS Shares from the command line"

From Da Nerd Mage Wiki
Jump to navigation Jump to search
Line 13: Line 13:
== Permissions ==
== Permissions ==


Changing that command to  
Changing that mount command to  


*<code>sudo mount -t cifs -o username='''USER''',password='''PASSWORD''',dir_mode=0777,file_mode=0666 //'''SERVERNAME'''/'''SHARENAME''' ~/'''MOUNTPOINT'''</code>
*<code>sudo mount -t cifs -o username='''USER''',password='''PASSWORD''',dir_mode=0777,file_mode=0666 //'''SERVERNAME'''/'''SHARENAME''' ~/'''MOUNTPOINT'''</code>
allows actual access...
allows actual access...



Revision as of 19:10, 19 January 2022

Install cifs-utils

  • sudo apt install cifs-utils -y

Create a mount point

  • sudo mkdir /MOUNTPOINT

Mount the share

  • 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