Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. gvfs-fuse-daemon on /home/xxx/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=xxx)
  2.  
  3. /usr/lib/gvfs/gvfs-fuse-daemon ~/.gvfs
  4.  
  5. $ mount |grep gvfs
  6. gvfsd-fuse on /run/user/pcm/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=pcm)
  7.  
  8. /usr/lib/gvfs/gvfs-fuse-daemon ~/.gvfs
  9.  
  10. $ ll /dev/fuse
  11. crw-rw---T 1 root fuse 10, 229 Dec 21 11:59 /dev/fuse
  12.  
  13. apt-get install gvfs-fuse
  14. adduser <username> fuse
  15.  
  16. /run/user/<username>/gvfs
  17. ~/.gvfs
  18.  
  19. sudo mount -t cifs "//192.168.16.2/shared" /home/stacey/mnt -o credentials=credentials,uid=stacey,gid=stacey
  20.  
  21. username=stacey
  22. password=mypassword
  23. domain=mydomain
  24.  
  25. man mount.cifs
  26.  
  27. #!/bin/bash
  28. # Add to Cron
  29. # */1 * * * * /root/fixGvfs
  30. w | grep -v root | tail -n +3 | awk '{print $1}' > /tmp/fixGvfsUsers
  31. while read usuario
  32. do
  33. id=$(id -u $usuario)
  34. if [ ! -f "/tmp/fixGvfs${id}" ]; then
  35. umount /run/user/${id}/gvfs
  36. if [ $? -eq 0 ]; then
  37. su - $usuario -c "/usr/bin/pkill gvfs*"
  38. touch "/tmp/fixGvfs${id}"
  39. fi
  40. fi
  41. done < /tmp/fixGvfsUsers
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement