-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix folder permissions for programdata\ssh during server install #549
fix folder permissions for programdata\ssh during server install #549
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
# Folder permission is FullAccess to System and Builtin/Admins and read only access to Authenticated users, if user allows | ||
Repair-SshFolderFilePermission -FilePath $sshProgDataPath @psBoundParameters | ||
# All files besides private key files and log folder/files should have same permissions as ssh folder, if user allows | ||
$restricted_files = @("ssh_host_dsa_key", "ssh_host_ecdsa_key", "ssh_host_ed25519_key", "ssh_host_rsa_key", "*.logs") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log files can have read only permissions for authenticated users
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok - I think the log files inherit from the log folder.
When the log folder is created by SSHD, it only allows Full Access to System & Admins.
I think either situation is permissible. Having a separate check for the log files/folders that permits read access for users, but won't add read access to users, if it has not already been granted might work best?
fix comments
PowerShell/Win32-OpenSSH#1900