Advertisement
para_bellum

Mount remote filesystem using smb/cifs

Oct 27th, 2015
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. sudo apt-get install smbclient cifs-utils
  2. sudo mount -t cifs //192.168.0.2/Public /media/serveur_ua2 -o username=myname,uid=user_id # find the user_id using 'id -u'
  3.  
  4. To have it mount at boot:
  5. In /etc/fstab:
  6. //192.168.0.2/Public /media/serveur_ua2 cifs credentials=/etc/cifsauth,uid=1000 0 0
  7. And in /etc/cifsauth:
  8. username=foo
  9. password=bar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement