Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. /sbin/mount -t cifs -o user=<WindowsUser>,password=<WindowsPassword>,uid=<UIDtoOwnFilesOnLinux>,gid=<GIDtoOwnFilesOnLinux> //WindowsMachine/Shared/Folder /mount/point/on/linux
  2.  
  3. #file stored as e.g. /etc/sudoers.d/remoteaccess
  4. linux_user ALL=NOPASSWD: /sbin/mount -t cifs <and so on: command exactly as above!>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement