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.

Filter by
Sorted by
Tagged with
0
votes
1answer
19 views

Special permissions in Windows 2012R2

I have a main folder named "2020". I have a script that creates a subfolder with a file number and an address, and 5 sub-sub folders, like in the following example: I would like: to give ...
0
votes
1answer
53 views

Security-wise file ownership & permission setup for LEMP server to be managed via wp-cli and wordpress dashboard?

I'm on a LEMP VPS with the following setup; cd /home/$USER/public/myDomain.com # change directory to myDomain.com chown -R nginx:nginx . # change file ownership find . -type ...
0
votes
0answers
12 views

Migrate File Server from one volume to another volume with preserving shares/ntfs permissions

I need to move files/folders and Shares/permissions from one Volume to another volume within the same server. Also, I need to maintain the existing permissions and security settings. At this point i ...
0
votes
1answer
332 views

Files becoming owned by systemd-network:systemd-journal in WSL2 and Docker setup

So I'm running Ubuntu 20.04 under WSL2 with Docker. Occasionally the files mounted by Docker (could be other files as well) are getting their ownership changed from my user to systemd-network:systemd-...
0
votes
0answers
13 views

Write access to a subdirectory within a read-only directory

I have a home server for my website that is running on a mounted image. I mount the image as follows: sudo mount -o loop,offset=19489299 raspbian-stretch-lite.img I then mount my static website ...
0
votes
2answers
32 views

Does Windows Server 2019 behave different with NTFS then Server 2012R2?

Background info: The admin account of a key user needs unrestricted access to a folder on a server. -> he is working on the server per RDP or directly with the folder (shared) Said admin account is ...
0
votes
0answers
37 views

Allow download of pdf files only in .htacces file

I am new to editing .htaccess file I have a .htaccess file that was created for me a while ago but now I have added a new feture to my site to allow people to download pdf files but it appears my ....
0
votes
0answers
25 views

Fedora : find directories defaults permissions

I have the following directories with world writing permissions : /usr/tmp /var/spool/samba /var/tmp /tmp/* /dev/mqueue /dev/shm First is this state normal ? And second, in a "learning to fish&...
1
vote
0answers
11 views

Systemd-journal-upload service cant read ssl key file

I am trying to get one of my VM servers (server1) to connect the systemd-journal-upload service to connect to the systemd-journal-remote service on another VM (server2). I already have multiple other ...
0
votes
1answer
42 views

How to deny git pull and cd into a folder/file in Windows?

So I find myself being forced to use a Windows machine just because thats what the financial institution feels is more secure for an outside contractor. I am using powershell and I just received some ...
1
vote
1answer
34 views

NTFS permissions inheriting incorrectly as “this folder only”

I have a full directory tree that was migrated from another server. I've created top level folders with the necessary permissions that I wish to propagate to all descendant files and folders. However, ...
2
votes
1answer
55 views

specifying complex permissions on files and folder in unix

At work I manage a group responsible for data management and security. We have a need to specify complex permissions on files and folders beyond just the standard user/group/world rwx. Research shows ...
1
vote
1answer
82 views

Permission issues with administrator account on Windows Server 2012 R2 — cannot create new files and need elevated privileges to edit files

Have a domain account and a local account. Both are administrators -- they are part of the administrators group. For some odd reason, something must have gotten corrupted as accounts require elevated ...
0
votes
1answer
42 views

Powershell returns access denied on non-os files used by IIS site

I am connected as a local administrator using RDP to my WIN2K16 server, and manage it using gui and powershell. Overall I have full control over the machine, and never had permission errors using both ...
0
votes
0answers
7 views

localise settings for custom log files with custom configs

I'm trying to change the permissions of the log file I create. The configuration is in rsyslog.d/ directory, but whenever I change the file permissions with $Umask 0000 $FileCreateMode 0644 It's ...
0
votes
1answer
65 views

Different permissions for guest and non-guest users in Samba

I am configuring a samba server for file sharing. I was wondering if there is a configuration setting to map different file or directory masks to different users. I am attempting to allow admin users ...
0
votes
0answers
15 views

Folder in Ubuntu Became a File and the other Show Question Mark in Owner/Group

I encountered a very weird issue, appreciate if someone could help. One of my folder stored in a LVM2 XFS filesystem (mdadm RAID6), silently became a file and a folder showing question mark on both ...
0
votes
0answers
19 views

icacls - deny all permissions for a folder for Virtual Service Account

I am trying to explicitly deny all the permission for a folder like this, I am using below icals command, but it's NOT working Invalid parameter "/deny:d" error. Please suggest! icacls &...
2
votes
1answer
65 views

Prevent user to overwrite files and directories

Help me to learn if this scenario is doable using Linux. I want to secure the access to a system path called "/mnt/data". System users retrictions: 'daemon_user': read/write access. 'read_user': ...
1
vote
0answers
67 views

Downloading EXE From Web Throws 403 Forbidden nginx

I have a file uploaded to our website under a /Downloads folder, which I created. The download link, similar to: A Sample Download Link had no issues downloading up until a few weeks ago. I am not ...
0
votes
0answers
14 views

Ubuntu: Pointing an SFTP user to its working directory without listing other user's directory

I am working on configuring an SFTP server on Ubuntu Server 18.04. I want to create SFTP accounts that point directly to their working directory without listing others. For example if the real working ...
0
votes
1answer
42 views

Best way to secure world-writable .shtml files written to by Perl?

The Perl script I have a Perl script running on an old Debian 6 server (until I move to a new server) that opens an editable pane in an .shtml file, accepts only Creole markup input from a single ...
0
votes
0answers
20 views

File permissions take very long to apply on client computers

Noticed a problem and would like to get a few suggestions how to troubleshoot it. Two servers, file and domain controller. File server has access based enumeration enabled. Folders do not have too ...
0
votes
0answers
192 views

Access Based Enumeration with Azure Files

Is it possible to enable Access Based Enumeration in Azure Files? We're using Azure Files with the AADDS integration enabled (per the setup discussed here - though with just the Azure Files; no local ...
0
votes
1answer
198 views

OpenLiteSpeed file_put_contents Permission Denied Error

New to OpenLiteSpeed, I received a permission denied warning error when trying to write a file in the website subdirectory using file_put_contents() API from PHP. I thought perhaps I needed to adjust ...
0
votes
0answers
44 views

Prevent .pdf files from being downloading but allow to view in browser

I have tried to search better solution on Google and on Serverfault and found too many questions and answers, but none of them was my solution. (E.g. prevent the browser from downloading doc docx and ...
0
votes
0answers
190 views

rsync postgres backup to another directory

I have CentOS 7 (3.10.0-1062.18.1.el7.x86_64) with SELinux enabled. PostgreSQL 12 installed (not sure if it is related). I try to backup database and move backup files to another disk. How I create ...
0
votes
0answers
25 views

POSIX ACLs on Linux: How to prevent users from taking away permissions?

I need to accomplish seemingly easy task. Using POSIX ACLs I need to configure access to a directory tree, where users can share files. While doing that I want to ensure that unprivileged users are ...
0
votes
1answer
4k views

How to change permission of a folder to 777 in Dockerfile?

I have a project directory like this: |-var/www |-docker-compose.yml |-app |--uploads |---photos |-Dockerfile This is my docker-compose.yml file: myapp: build: context: myfolder ...
0
votes
0answers
34 views

Allow web users to write into folder on Nginx

I have a web site running on Nginx server on Ubuntu and I made profile picture upload in Django. However when I try to upload a new profile picture it says [Errno 13] Permission denied: '/home/xyz/...
2
votes
1answer
2k views

Check 'effective permissions', 'effective access' from command-line, Windows/NTFS

How do I mimic Advanced Security Settings 'Effective Access' tab in command line (Win10 notably)? Prefer built-in tools, I'm about to evaluate if sysinternals AccessChk can accomplish this icacls ...
0
votes
0answers
31 views

Creating an NTFS folder with read/write, but not “edit”, permissions

If you start with "read, execute, write" basic permissions and take away "create folders/append data" you get a "drop folder" with read and "write new files only", but applications "save as" functions ...
0
votes
1answer
105 views

Cannot write to local shared directory

I wondered if anyone has experienced this issue... We noticed a permissions error on a server that uses a case management system. It works by writing to locally hosted shared folders. After a reboot, ...
0
votes
2answers
34 views

How to re-apply original inherited permissions to files created while being administrator?

I hope someone can answer this once and for all, this is driving me mad for months now. Platform: Windows Server, any version. This problem doesn't happen on a workstation. Problem: In a folder, ...
40
votes
1answer
3k views

Why can I update a file owned by root using sudo vi, but not append a line to it with sudo echo “Thing” >> file?

I would like to have script that is doing automated migrations of websites from another be able to append Includes to the /etc/httpd/conf.d/vhosts.conf file. However, when I try to use echo to put ...
0
votes
1answer
55 views

Shared hosting: how to prevent a user to see another's files but still have their files writable by Apache/PHP

I have read What permissions should my website files/folders have on a Linux webserver? and here is a linked question. Let's say: /var/www/bobweb/ is owned by bob:bob /var/www/eveweb/ is owned by eve:...
1
vote
1answer
37 views

setfacl inherit permissions without bash scripting

i have this script to add inherit permissions in all directory's, asd=$(find -type d); for a in $asd; do setfacl -d -m "u:pythoncrons:rwx" $a; done my question is, i can set inherit permissions ...
0
votes
1answer
128 views

openSUSE: “Permission denied” error on Cron log file

using: openSUSE Leap 42.2 /etc/cron.d/mysite file content: * * * * * wwwrun /usr/bin/php /srv/www/mysite/cron.php >> /var/log/apache2/mysite.cron 2>&1 /etc/cron.d/ dir content: /etc/...
1
vote
2answers
689 views

Windows: How to fix broken permission-inheritance?

On our network-shares, we have all kinds of broken permission-inheritance. Just one example: The folder "D:\Shares\PublicRelations" has full access for the groups "PublicRelations" and "HR" (both ...
3
votes
1answer
165 views

NTFS inheritance issue

I am having permission problems with a folder on Windows Server 2012. At the root of the disk the following permissions are granted: Principal Access Inherited from ...
0
votes
1answer
34 views

Home Folder user has Full Control. Any reason NOT to?

I am looking for information one way or the other. Should users have Full Control over their Home folder in terms of permissions? Our environment is Samba AD-based, with Samba file servers. The user ...
1
vote
1answer
113 views

Where do these NTFS permissions actually live? How are they created?

Alrighty, not sure how to word this but: Where do the NTFS permissions themselves get created? For example, I can set "Full Control" or "Read", but where are those programmed at? Here is why I ask: ...
0
votes
1answer
22 views

What could prevent me from renaming a file locked?

I've run into a very weird issue on a build server where it won't let me rename any file 'locked' on the entire D drive as it throws a permissions error. I have local admin rights which allow me to ...
0
votes
3answers
82 views

Root running a command, but force the command to write data as another user

To make this question clearer, let me explain my use case. I have a MySQL database (so an application) that runs with the mysql user, and the database has 2 root users: One accessible from a tcp ...
5
votes
2answers
72 views

Linux complex file sharing between users [closed]

Let's start with the elephant in the room: I have no formal training and I've been given a couple of small servers to manage for various, off-topic reasons. This to say that my knowledge is patchy. ...
0
votes
0answers
268 views

command line solution of “crontab: tmp/tmp.X: Operation not permitted”

I have the following problem. But I only have ssh access to the Mac machine. So I not use any GUI solution. Is there a way to enable this in the command line? Thanks. OSX mojave: "crontab: tmp/...
0
votes
1answer
359 views

How to fix permissions on a linux webserver

Short version : i can't upload images using php and i have no idea how to fix the permissions issue Details : I've been using a vps for around three years now I set it up to run Sendy (a little ...
1
vote
2answers
2k views

Application logging broken under Tomcat 9: permission denied to /var/log/myapp

I have a Java webapp that runs under Apache Tomcat on Ubuntu Linux. When I upgraded from Tomcat 9 from Tomcat 8, the application was no longer able to write log files to /var/log/myapp. I can't ...
0
votes
1answer
38 views

Beyond private-keys or passwords, why disable other=read/exec/write access file permissions for “system” (separate from user/application) files?

Summary In Unix, Linux, or BSD systems: Besides private-key or password files, user-private content, or any custom-application-specific reasons (like serving a database of private information for ...
1
vote
2answers
599 views

Windows permission - Deny sub-folder creation but allow files editing

I'm currently trying to setup a folder on a file server (Windows Server 2012 r2) where some users can create and edit files, but not create sub-folders. I assumed it would be easy with advanced ...

1
2 3 4 5
18