mirror of https://github.com/apache/cloudstack.git
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.
This commit is contained in:
parent
880c87e704
commit
86dadaaec4
|
|
@ -234,11 +234,13 @@ public class HypervManagerImpl implements HypervManager {
|
|||
command.add("-t", "cifs");
|
||||
command.add(path);
|
||||
command.add(mountPoint);
|
||||
command.add("-o", "uid=`whoami`,gid=`whoami`");
|
||||
|
||||
if (query != null) {
|
||||
query = query.replace('&', ',');
|
||||
command.add("-o", query);
|
||||
}
|
||||
|
||||
result = command.execute();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue