Guest User

Untitled

a guest
Jul 18th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. Index: manage_data_disk.py
  2. ===================================================================
  3. --- manage_data_disk.py (revision 2666)
  4. +++ manage_data_disk.py (working copy)
  5. @@ -68,7 +68,7 @@
  6. def on_add(device, mountpoint):
  7. """ mount a device on a defined mountpoint. """
  8.  
  9. - mount_options='rw,nosuid,nodev,noatime'
  10. + mount_options='rw,nosuid,nodev,noatime,user=kemar,group=metz'
  11.  
  12. if not os.path.exists(mountpoint):
  13. os.mkdir(mountpoint)
  14. @@ -84,7 +84,7 @@
  15. if cmd_result != 0:
  16. syslog.syslog('error when deleting ' + mountpoint)
  17. else:
  18. - os.chown(mountpoint,0,1001)
  19. + #os.chown(mountpoint,0,1001)
  20. os.chmod(mountpoint,0775)
  21. if not in_mtab(mountpoint):
  22. add_to_mtab(mountpoint)
Add Comment
Please, Sign In to add comment