New answers tagged

2 votes

How do I prevent users from messing with their own .ssh folder?

Run a cron job to fix permissions each night. Deleting files is a bit harder. You could possibly restore missing files from backup from cron also. But, it seems like you could get into weird edge ...
Gringo Suave's user avatar
7 votes

How do I prevent users from messing with their own .ssh folder?

The best solution I can think of is to make .ssh and authorized_keys root-owned. Root-owned .ssh / authorized_keys SSH is picky with permissions, but not unreasonably so. First, it requires that the ...
marcelm's user avatar
  • 1,113
15 votes

How do I prevent users from messing with their own .ssh folder?

It is hard to protect users from their own ignorance and incompetence. But depending on how much you need to allow your users to manage themselves and how much you manage for them: you can configure ...
HBruijn's user avatar
  • 77.5k
21 votes
Accepted

How do I prevent users from messing with their own .ssh folder?

Short answer is you can't. SSH is very picky about permissions and will not play with files it doesn't like the look of. Further, the users ssh_config is parsed before the system-wide config. Having ...
symcbean's user avatar
  • 21.7k
0 votes
Accepted

Linux user can't access mergerfs directory that he already has permissions

It isn't a bug. The proper arguments are not being used. IE... allow_other. You need to use the documents from the version being used. Newer releases set the value automatically. See the documentation....
trapexit's user avatar
0 votes

Linux user can't access mergerfs directory that he already has permissions

I found the solution, there must have been a bug in the default version of mergerfs in debian repository (2.33.5) I installed manually the latest (2.37.1) and it worked.
George Berdux's user avatar
0 votes

Using a non-root to deploy a git repo to the web root

After some time digging in this issue I found that by default the /var/www/* is created owned by root, that's why trying to modify anything from other than su will fail, so based on this answer I ...
Alejandro Cortes's user avatar
0 votes

wordpress directory file ownership changes everytime after uploading files/plugins

Your description of how this is provisioned is not helpful. Lets start from scratch. Users: apache - the uid your PHP runtime executes as dev1, dev2, dev2 - developers backup - for creating backups ...
symcbean's user avatar
  • 21.7k
0 votes

wordpress directory file ownership changes everytime after uploading files/plugins

The web server (or the PHP process, depending on your setup) needs write access to the directory. The only feasable way is to run said process as the user websitename. Principally another option would ...
Gerald Schneider's user avatar
2 votes

Windows shared folder accessible only by Administrators

When you set a shared folder in windows environment there are 2 permissions in action. 1 - Shared permission: This permission is set during shared folder config like picture bellow ... 2 - NTFS ...
Salar's user avatar
  • 164

Top 50 recent answers are included