diff --git a/src/azure-cli/azure/cli/command_modules/storage/azcopy/util.py b/src/azure-cli/azure/cli/command_modules/storage/azcopy/util.py index bddd2e71b6f..f6b3ef4b2b9 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/azcopy/util.py +++ b/src/azure-cli/azure/cli/command_modules/storage/azcopy/util.py @@ -53,8 +53,7 @@ def install_azcopy(self, install_location): else: raise CLIError('Azcopy ({}) does not exist.'.format(self.system)) try: - os.chmod(install_dir, - os.stat(install_dir).st_mode | stat.S_IWUSR | stat.S_IWGRP | stat.S_IWOTH) + os.chmod(install_dir, os.stat(install_dir).st_mode | stat.S_IWUSR) _urlretrieve(file_url, install_location) os.chmod(install_location, os.stat(install_location).st_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)