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
0answers
33 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 ...
-1
votes
0answers
19 views

Robocopy issue coping userprofile to server Share SecurityID can't be owner

So I have spent the last week or so writing a nice logon script to apply to group policy on my domain controller to have the effect of roaming profiles but to mitigate many of the issues with roaming ...
0
votes
0answers
17 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
47 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
140 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
37 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
28 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
23 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
354 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
32 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
325 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
27 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
38 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
27 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
52 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
30 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
57 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
269 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
93 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
26 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
52 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
19 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
80 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
69 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
141 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
186 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
1answer
1k 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
36 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
313 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 ...
2
votes
1answer
51 views

Remove Access of object or user from directory using PS

We have several servers in the same domain and the requirement is to remove permission from a specific folder which is defined in the power-shell script and I need to specify the name of the object ...
1
vote
1answer
51 views

One computer cant access shared files

We have about 80 computers that are domain joined. All but 1 can access the S:\testdata\test1.docx On one computer no matter which user account I log into on that computer with I can see the file, ...
0
votes
0answers
21 views

Logging in via SFTP changes owner of parent folder

I have a serious problem with my SFTP server running under macOS 10.14.6. (Server is version 5.8) What I'm trying to achieve is to restrict SFTP users to only see their home folder. I have all ...
0
votes
0answers
21 views

Could a Samba process or tar have changed the permissions on a Samba share?

On a server running CentOS 7 and Samba version 4.8.3 I was working in a samba share /home/share. All the sudden I was getting an error message that I didn't have permission to access it. I tried this ...
0
votes
0answers
37 views

Are there any versions of Windows where the default permissions for the %LOCALAPPDATA% directory give access to other users?

The application that I'm developing assumes that files that we create under a user's %LOCALAPPDATA% directory being accessible only by (1) that specific user, (2) adminstrators, and (3) LOCALSYSTEM. ...
0
votes
0answers
30 views

File Permissions Issues in Ubuntu 18.04 ngnix and WordPress

I am having a very strange issue. I have a DigitalOcean droplet running Ubuntu 18.04 with nginx as the web server and php fpm 7.2. I have a WooCommerce site but the wc_logs folder is not writable. I ...
0
votes
1answer
71 views

SeBackupPrivilege, but cannot read all files

I am trying to read full directories independent of the current file-permissions. But even though I do have "SeBackupPrivilege", the following code leads to an "UnauthorizedAccessException". How can ...
0
votes
0answers
39 views

log file is access denied even I am an administrator

I try to open a mysql slow log file in windows server 2012 R2. Even I open notepad as administrator, it still says "access denied". I check the mode of the file in powershell and found that the file ...
1
vote
1answer
54 views

UNIX Copy/Move files in same directory preserving timestamp

Following is the scenario. There are multiple files in a directory created by users belonging to same unix group. Unix Group: Prod. User in Prod Unix Group: User1 User2 User3. All 3 users have same ...
0
votes
1answer
119 views

nginx fastcgi_cache_path write access for other users

I'm using a nginx webserver with the fastcgi caching. The fastcgi_cache_path is set to an sub directory of the webroot of each virtual host from nginx. (eg. /var/html/user01/httpdocs/nginx_cache ... /...
0
votes
0answers
36 views

Why use umask in subshell followed by chmod for ~/.ssh/id_rsa

What's the purpose of the pattern below, specifically the umask followed immediately by chmod? The code is taken from the checkout step of the CircleCI. (umask 077; touch ${HOME}/.ssh/id_rsa) chmod ...
0
votes
1answer
653 views

Network File Share access across multiple domains under the same forest

My knowledge of Active Directory and network setup is limited. In the environment of this example, there are multiple domains under one forest. It has come up that users of Domain A have access to ...
1
vote
3answers
1k views

Ansible: How to test a registered variable for conditional?

Attempting to use Ansible for locate and change all file ownership for user_01 to user_02? - name: "Find files for user_01 or UID of user_01_uid" command: "find / -path /proc -prune -o -path /...
0
votes
1answer
45 views

Folder shared with Full Control, yet is Read-only for client

Server is Win 2008r2, non-domain. Client is Windows 7. User XYZ on client has matching account on server in group Users. Credentials for server account for XYZ are stored in credential manager on ...
-1
votes
1answer
202 views

Debian 9 give User permission for all folders

How can I give a user permissions for all folders? So /home, /var etc.
1
vote
1answer
107 views

Why can't user X write to directory despite having default:user:X:rwx ACL on the directory?

As I understand it, this all looks good: iammedemo owns the directory, but iammme has default:user:iamme:rwx, so if anything, iamme should effectively be just as privileged as iammedemo, and be able ...
0
votes
0answers
138 views

File ownership conflit between SFTP and NFS

Context: The company I work for do computing calculation for their client. They need an SFTP access for their client. It should work like that: The client send a file1 via FTP in dirA File1 is ...
0
votes
0answers
23 views

AD Share Drives Read Only

I recently re organized my users into new OUs. Now the share drives will not let security groups save, and all files open in read only. All security groups have modify permissions to the share and ...
0
votes
1answer
2k views

How to troubleshoot 'permission denied' errors while accessing files in linux?

My question is concerning generic troubleshooting when getting 'permission denied' errors while accessing files as certain user and here is a specific example where I could use some extra help: As a ...
0
votes
1answer
1k views

Windows Equivalent to “chmod -R a-w”

What is the Windows equivalent to "chmod -R a-w" to recursively remove write permissions of a directory? The tricky part is to leave the rest of the permissions the same (e.g. if subfolderA is only ...

1
2 3 4 5
18