Access is denied” error when trying to install an app through SSH using an account that is part of the Administrators group
tried –
cannot used runas administartor as asked pw and dont have it.
- User Account Control (UAC) Settings
If UAC is enabled, it might restrict permissions even for users in the Administrators group. You can either:
Disable UAC temporarily (not recommended for security reasons).
Use an account with elevated privileges.
3. Check Permissions on Target Directory
Ensure that the account you’re using has the necessary permissions on the directory where the application is being installed.
- Use runas Command
You can try using the runas command to run the installer with elevated privileges:
runas /user:Administrator “pathtoinstaller.exe”
Make sure you have the correct password for the Administrator account.
-
Verify SSH Configuration
Check your SSH server configuration to ensure that it allows administrative actions. The configuration file is usually located at /etc/ssh/sshd_config. Look for settings like PermitRootLogin and adjust as necessary. -
Check Group Policy Settings
If your system is part of a domain, Group Policy may restrict access. Check with your IT administrator for any relevant policies. -
Windows Installer Service
Ensure that the Windows Installer service is running:
Open a command prompt as an administrator.
Run:
net start msiserver
8. Use PowerShell
If the installer supports it, try using PowerShell to install the application:
powershell
Copy code
Start-Process “pathtoinstaller.exe” -Verb RunAs
9. Check Antivirus/Firewall
Sometimes, security software can block installations. Check your antivirus and firewall settings to ensure they’re not interfering.
- Log Analysis
Check the event logs for any specific error messages related to the installation process. This may give you a clearer idea of the underlying issue.
nothing worked , in this new os version 24h2
sumitra khadka is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1