Questions tagged [file-permissions]

Most current file systems have methods of administering permissions or access rights for specific users and groups of users. These systems control the ability of the users to view or modify the contents of the filesystem.

Permissions on Unix-like systems are managed in three distinct classes. These classes are known as user, group, and others.

Permissions on Windows systems can be granted to users, groups, computers, or other built-in security principals such as SELF or CREATOR OWNER.

Permissions are generally configured in an Access Control List (ACL, pronounced ackle) with each entry in the list being referred to as an Access Control Entry (ACE).

965 questions
4
votes
1 answer

Server 2012 R2. Add permissions to all folders and subfolders when inheritence is disabled

I need to add full permissions for a specific group of users to all folders/files and subfolders on our file server without changing other permissions. Few years ago someone removed "Administrators" group from our folder infrastructure on the file…
4
votes
1 answer

Adding Folder Permissions Using Powershell

I'm running this script in PowerShell: Add-NTFSAccess -Path 'C:\MyFolder' -Account PROGRAMMING\IIS_IUSRS -AccessRights FullControl and I'm getting this error: Add-NTFSAccess : Cannot bind parameter 'Account'. Cannot convert value…
AYS
  • 143
  • 1
  • 4
4
votes
1 answer

Node + PM2 - How to securely read SSL private key with non-root user?

I'm looking for a way to run node via PM2 whilst reading an SSL private-key that is placed in a secure directory. Details: Bitnami LEMP stack with Node permissions for /etc/ssl/private: drwx------ 2 root root 4096 private permissions for key…
jolian
  • 107
  • 1
  • 6
4
votes
2 answers

Fileserver cannot find any DC's for trusted domain

The problem Due to a merger in our organisation, we are migrating to a new common Active Directory domain. Our old legacy domain and the new domain have a two-way trust between them. We have two main fileservers in our old domain, on which users…
Omnomnomnom
  • 659
  • 3
  • 10
  • 22
4
votes
1 answer

SFTP-server uploaded files having wrong rights

I have been trying to figure out what is wrong with the file rights. When I am uploading files using FileZilla all the files get rights -rw-r--r--. I would want them to have -rwxr-xr-x. I have tried using umask to fix the rights but something is…
Firze
  • 355
  • 6
  • 16
4
votes
1 answer

mkdir -p ignores facl?

I am trying to enforce file perms of 777 across a specific set of dirs. I used "setfacl -m d:o::rwx" and got what appears to be the right permissions $ getfacl . # file: . # owner: blah # group: blah # flags:…
Kevin
  • 41
  • 1
4
votes
5 answers

Finding all files in NTFS with specific user or group in ACL

Executive summary: I want to find all the directories and files a particular user or group has access to. In more detail: I'm looking for a command-line tool to recursively search an NTFS directory for all files and directories where an ACE in the…
David
  • 243
  • 2
  • 3
  • 10
4
votes
3 answers

How do I detect what is changing file ownership on Linux?

I have inherited a bunch of Linux (Ubuntu Precise) servers and am currently having problems with the ownership of a folder changing to "root" fairly often. We run puppet, which changes the ownership to the user it should be, but something else…
Colin Coghill
  • 245
  • 1
  • 4
  • 11
4
votes
2 answers

Getting "Received too large SFTP packet" error when connecting with root account to the server via WinSCP

I've tried different ways and read some solutions including these: Why I am not able to ssh as root? Editing with Winscp And an article from Forum of Ubuntu I don't understand why when I connect with ubuntu via PuTTY, I can have root permission…
Guanjun Chen
  • 41
  • 1
  • 1
  • 2
4
votes
1 answer

Python uWSGI logs have no read permissions

I am running a Python Flask server on uWSGI over an EC2 Ubuntu 14.04 LTS. The server is configured as follows: [uwsgi] http-socket = :9000 plugin = python wsgi-file = /path/to_wsgi.py enable-threads = true The logs, however, are…
Adam Matan
  • 13,194
  • 19
  • 55
  • 75
4
votes
2 answers

How do I set nginx's cache files to file permissions 777?

I'm trying to write a process that invalidates the cache on nginx (and doesn't re-warm the cache). By default, nginx has 700 on its cache files. The closest setting that I could find was: proxy_store_access user:rw group:rw all:r; However, that…
Homer6
  • 221
  • 2
  • 7
4
votes
2 answers

How to set permissions to use 'ls'

I have a folder (which is owned by another user but the same group) and I want to view it's contents, but I always get the following error message: "ls: cannot open directory .: Permission denied" But the group has rwx-permissions! Eg: folder…
NaN
  • 335
  • 1
  • 3
  • 10
4
votes
1 answer

Tool to see nested permissions?

Here's the situation. Often I need to tell how a user is getting access to a specific folder. I can see in "Effective permissions" that they have read/write/etc, but because of nested groups I can't immediately tell why. I'd like a tool/script that…
MathewC
  • 6,957
  • 9
  • 39
  • 53
4
votes
1 answer

How do I see if a file is readable by a specific user on Linux?

I have a complicated file hierarchy and I don't want to check the permissions on each directory. Is there any way to find out immediately if one file is readable by a given user? (outside of logging in as that user)
Oin
  • 188
  • 1
  • 6
4
votes
2 answers

Setting umask for all users

I'm trying to set the default umask to 002 for all users including root on my CentOS box. According to this and other answers, this can be achieved by editing /etc/profile. However the comments at the top of that file say: It's NOT a good idea to…
Yarin
  • 1,366
  • 8
  • 19
  • 31