I'm trying to back up a disk image to a samba server. Clonezilla gets the share mounted, and but cannot write to it. From a shell I can verify that the mount worked and that files on the mount can be read, but not written.
After a bit of mucking about, I found that this is because the cifs mount is being done with default options (other than the user name), and so the mount is done with uid=0, gid=0, file_mode=0755, and dir_mode=0755. However, clonezilla is apparently running as user (uid=1000), so it is using the world permissions (the last 5 in 0755), which disallows read.
Shouldn't the default menuing interface try to set up the mount with uid=1000 and gid=1000, or else set file_mode=0777 and dir_mode=0777? If I do the mount manually with uid=1000 everything works fine.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When Clonezilla live mounts the CIFS server, it actually passes the option about username for the server, i.e.
-o user=$USERNAME
Therefore the mapping is OK. Your case is weird because you are the 1st to report this, and our use cases here all work.
Steven.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to back up a disk image to a samba server. Clonezilla gets the share mounted, and but cannot write to it. From a shell I can verify that the mount worked and that files on the mount can be read, but not written.
After a bit of mucking about, I found that this is because the cifs mount is being done with default options (other than the user name), and so the mount is done with uid=0, gid=0, file_mode=0755, and dir_mode=0755. However, clonezilla is apparently running as user (uid=1000), so it is using the world permissions (the last 5 in 0755), which disallows read.
Shouldn't the default menuing interface try to set up the mount with uid=1000 and gid=1000, or else set file_mode=0777 and dir_mode=0777? If I do the mount manually with uid=1000 everything works fine.
When Clonezilla live mounts the CIFS server, it actually passes the option about username for the server, i.e.
-o user=$USERNAME
Therefore the mapping is OK. Your case is weird because you are the 1st to report this, and our use cases here all work.
Steven.