Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: manage_data_disk.py
- ===================================================================
- --- manage_data_disk.py (revision 2666)
- +++ manage_data_disk.py (working copy)
- @@ -68,7 +68,7 @@
- def on_add(device, mountpoint):
- """ mount a device on a defined mountpoint. """
- - mount_options='rw,nosuid,nodev,noatime'
- + mount_options='rw,nosuid,nodev,noatime,user=kemar,group=metz'
- if not os.path.exists(mountpoint):
- os.mkdir(mountpoint)
- @@ -84,7 +84,7 @@
- if cmd_result != 0:
- syslog.syslog('error when deleting ' + mountpoint)
- else:
- - os.chown(mountpoint,0,1001)
- + #os.chown(mountpoint,0,1001)
- os.chmod(mountpoint,0775)
- if not in_mtab(mountpoint):
- add_to_mtab(mountpoint)
Add Comment
Please, Sign In to add comment