520 votes

Windows SSH: Permissions for 'private-key' are too open

You locate the file in Windows Explorer, right-click on it then select "Properties". Navigate to the "Security" tab and click "Advanced". Change the owner to you, disable inheritance and delete all ...
iBug's user avatar
  • 10.8k
155 votes

Windows SSH: Permissions for 'private-key' are too open

Keys must only be accessible to the user they're intended for and no other account, service, or group. GUI: [File] Properties → Security → Advanced Owner: Change → Select a principal → Enter key's ...
JW0914's user avatar
  • 7,388
113 votes

Delete old windows / program files from second drive?

Open a Command Prompt with administrative privileges. Run following commands, one at a time (change "Z:\Program Files" with folder you want to delete): takeown /F "Z:\Program Files&...
Arne H. Bitubekk's user avatar
90 votes

How can I make chown work recursively?

chown -R someuser:somegroup /your/folder/here/* This will apply chown to all files and all subdirectories and sub-subdirectories of the specified folder. Use with care.
Sprachprofi's user avatar
  • 1,001
76 votes

Do I really need recursive chmod to restrict access to a folder?

For a directory, "read" access lets you list the contents, and "execute" access lets your traverse the directory to open one of its children (file or subdirectory). So if you remove: just the read ...
xenoid's user avatar
  • 9,862
72 votes

Permissions on private key in .ssh folder?

Am posting this as a separate answer since I wanted to see man page recommendations translated into permissions. Summary based on the man page quotes (linked at the end): Directory or File Man Page ...
Ashutosh Jindal's user avatar
63 votes

If a Chrome Extension is installed but turned off, can it still spy on me?

When an extension is turned off, it is not loaded into memory, and as such can't do anything. When you turn an extension on, it has access to your entire browser history, and if an extension wants, ...
LPChip's user avatar
  • 59.9k
62 votes

Delete old windows / program files from second drive?

What worked for me was a simplified version of this suggestion: Rename the Windows folder to Windows.old Run Disk Cleanup from the Start menu Select the drive containing the Windows.old folder ...
x29a's user avatar
  • 843
60 votes

Windows SSH: Permissions for 'private-key' are too open

In addition to the answer provided by ibug. Since i was using the ubuntu system inside windows to to run the ssh command. It still was not working. So i did sudo ssh ... and then it worked
Parv Sharma's user avatar
53 votes

How to tar a directory preserving not only permissions, but ownership too

I have to compress a directory using tar.gz preserving not only permissions, but ownership/groups too. By default, tar will preserve file permissions and ownership when creating the archive. To ...
Vladimir Panteleev's user avatar
50 votes

Creating User in esxi 6.5 and assigning role

I was trying to figure this out as well and found the solution. It's a little strange assigning the user permissions, as it's in a different location from the tab where you create users and roles. If ...
gegethor's user avatar
  • 501
48 votes

Windows SSH: Permissions for 'private-key' are too open

I had a similar issue but I was at work and don't have the ability to change file permissions on my work computer. What you need to do is install WSL then copy the your key to the hidden ssh directory ...
JKauffman's user avatar
  • 581
47 votes

How can I make my own account a sudoers on VirtualBox?

VirtualBox is TOTALLY relevant to the question. This can happen if you chose to have VirtualBox automatically create your first user for you when setting up Ubuntu. The first user is not added to ...
Retr0Rob's user avatar
  • 471
46 votes

Do I really need recursive chmod to restrict access to a folder?

It goes without saying that, if you created a file two days ago (with a publicly readable mode), and somebody read the file yesterday, or made a copy of it, then there’s nothing you can do today to ...
G-Man Says 'Reinstate Monica''s user avatar
46 votes

Confused by "groups" and the Linux "permission model"

But I don't really get the concept of a group. From what I've gleaned a group is just a bunch of users. (But does that mean a user can belong to multiple groups?) Yes, and yes. A group as I ...
u1686_grawity's user avatar
41 votes

Is superuser the same as root?

Yes, as a general rule, root and superuser are the same; "root" is a/the name typically given to a user with full system privileges on a Unix type system. It is technically possible for other users/...
davidgo's user avatar
  • 69.6k
39 votes

Setting SSH keys on Windows 10 OpenSSH server

Note that if you are setting up keys for an administrator user, putting the public key to %USERPROFILE%/.ssh/authorized_keys will not work. You must append the public key to %PROGRAMDATA%/ssh/...
Utku's user avatar
  • 819
37 votes

Reload a Linux user's group assignments without logging out

Using newgrp command solved problem for me: newgrp <GroupName> This blog post has detailed explanation.
Pavan Vegirouthu's user avatar
31 votes

Windows SSH: Permissions for 'private-key' are too open

You just need to do at least four things: Disable inheritance Convert inherited permissions to explicit permissions Remove Users group You will end up with no Users can access private files, this ...
Default Writer's user avatar
31 votes

If I allow permissions to an application using UAC in Windows, can it hack my personal files or data?

On the contrary. The application can steal/delete/encrypt your stuff even without asking for elevated permissions (using an UAC prompt). One MUST NOT run untrusted software, ever. When you launch a ...
Daniel B's user avatar
  • 61.6k
30 votes

How much can we rely on filesystem permissions for security?

Shorter answer. If you have physical access to a computer system—PC or data storage system—and the only “protection” in place are file permissions, you have 100% no protection. That unencrypted data ...
Giacomo1968's user avatar
  • 53.6k
27 votes

How can rsync fail due to missing permissions if remote login occurs with root?

Another possible interpretation of ssh or rsync giving Permission denied, please try again.. The reasons is that the remote rsync is in an unusual location and has to be specified with --rsync-path on ...
Kalle Richter's user avatar
27 votes

Unable to write to /tmp directory in macOS, unable to correct permissions: “Operation not permitted”

Reboot your Mac into recovery mode Open Utilities menu in the top bar > open Terminal csrutil disable Reboot Remove the tmp folder sudo rm -i /tmp sudo rm -i /private/tmp Create tmp folder sudo ...
25 votes

Permission denied because search permissions are missing on a component of the path, after chmod and chgrp

Usually the execute permission for one path is not set, like it was in this question. The easiest way to solve this is the following command: chmod a+rX -R /var/www But on using CentOS7 or RHEL7 you ...
Trendfischer's user avatar
24 votes

Windows SSH: Permissions for 'private-key' are too open

use below command on your key it works on windows icacls .\private.key /inheritance:r icacls .\private.key /grant:r "%username%":"(R)"
Walter Ferrao's user avatar
24 votes

chown - Operation not permitted even as root user

exfat doesn't support file ownership. There's no place to record it in the bits being stored on the USB drive, so Linux gives you an error when you attempt to change them. Try mounting with uid=1000,...
Brian Silverman's user avatar
23 votes

Using custom fonts without administrator rights?

From Windows 10 17704 onward you'll have the ability to install fonts without admin rights Font installation for non-admin users Have you ever wanted to use your own fonts from your account on a ...
phuclv's user avatar
  • 27k
22 votes

Editing/Creating files in C:\Program Files\WindowsApps

The WindowsApps folder is one of the most heavily protected folders in Windows 10. It contains all the Windows UWP apps, to which Microsoft zealously guards the access. The protections on this folder ...
harrymc's user avatar
  • 465k
20 votes

Is superuser the same as root?

Superuser is the generic term to refer to the user account used for system administration. That means that the superuser has the ability to perform privileged operations such as creating/deleting user ...
nxnev's user avatar
  • 301

Only top scored, non community-wiki answers of a minimum length are eligible