Guest User

Untitled

a guest
Jan 11th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. sudo mount -t cifs //server/share /mnt/share -o user=[act-dir user],domain=[domain],uid=[linux user],gid=[linux group]
  2.  
  3. sudo mount -t cifs //server/share /mnt/share -o user=[act-dir user],domain=[domain],cifsacl
  4.  
  5. umount /mnt
  6. mount.cifs //FILESERVER/SHARE /mnt -v -o multiuser,domain=FILESERVER,username=CIFS_GUEST
  7.  
  8. mount | grep cifs
  9.  
  10. username=CIFS_GUEST
  11. password=<pass>
  12. Domain=FILESERVER
  13.  
  14. chown root /etc/cifs.SHARE.cred
  15. chmod 600 /etc/cifs.SHARE.cred
  16.  
  17. umount /mnt
  18. mount.cifs //FILESERVER/SHARE /mnt -v -o multiuser,credentials=/etc/cifs.SHARE.cred
  19.  
  20. ...
  21. //FILESERVER/SHARE /mnt cifs rw,auto,multiuser,credentials=/etc/cifs.SHARE.cred 0 0
  22. ...
  23.  
  24. cd /mnt
  25. ls
  26.  
  27. cifscreds add FILESERVER -u <username>
  28.  
  29. ...
  30. auth optional pam_cifscreds.so debug
  31. ...
  32. session optional pam_cifscreds.so domain=<AD Domain> debug
  33. ...
Add Comment
Please, Sign In to add comment