Skip to content

Commit f69100e

Browse files
committed
CLOUDSTACK-5489: Cloud user doesn't have permissions to copy systemvm.iso to secondary.
Make sure when a cifs (secondary) is mounted, uid is set for the user who owns the files and directories on the filesystem.
1 parent 5cec27c commit f69100e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎plugins/hypervisors/hyperv/src/com/cloud/hypervisor/hyperv/manager/HypervManagerImpl.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,13 @@ protected String mount(String path, String parent, String scheme, String query)
231231
command.add("-t", "cifs");
232232
command.add(path);
233233
command.add(mountPoint);
234+
command.add("-o", "uid=`whoami`,gid=`whoami`");
234235

235236
if (query != null) {
236237
query = query.replace('&', ',');
237238
command.add("-o", query);
238239
}
240+
239241
result = command.execute();
240242
}
241243

0 commit comments

Comments
 (0)