Guest User

Untitled

a guest
Oct 8th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. mount -t cifs //data/Shared /mnt/Shared -o uid=1000,gid=1000,user=<my_windows_account_name>,dom=<my_domain>,pass=
  2.  
  3. # As root...
  4. cat >/usr/local/etc/Shared.cifs <<'X'
  5. username=my_windows_account_name
  6. domain=my_domain
  7. password=my_windows_password
  8. X
  9. chmod u=rw,go= /usr/local/etc/Shared.cifs
  10. chown my_unix_account_name:root /usr/local/etc/Shared.cifs
  11.  
  12. # Then mount becomes
  13. mount -t cifs //data/Shared /mnt/Shared -o credentials=/usr/local/etc/Share.cifs,noperm
  14.  
  15. net ads testjoin
  16. getent password my_windows_account_name # As above
  17. getent group "domain admins" # An example group that will exist
Add Comment
Please, Sign In to add comment