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
0 answers
61 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 ...
MrNiceGuy's user avatar
3 votes
1 answer
10k 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 ...
Alex's user avatar
  • 145
0 votes
1 answer
5k 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 ...
John DiFini's user avatar
1 vote
0 answers
71 views

Modify permissions on files without taking ownership

There's a windows machine sharing a folder over samba and multiple users are leaving their files there. I can access as the machine's local administrator. Is there a way that I can access all the ...
RedNano's user avatar
  • 343
0 votes
1 answer
494 views

Unable to mount windows share with write rights on Debian

I'm unable to mount Windows 2016 Server Core share with write rights on Linux Debian 9.9 Share settings in Windows ("pl:Wszyscy" means "Everyone", Listed users have same permissions as "Everyone") ...
Foxbond's user avatar
1 vote
1 answer
273 views

icacls : create private directory (full control for user and no listing for others except admins)

I would like to create a folder with permissions similar to my home directory. I tried giving myself full control etc. but I managed to get locked out and had to use the takedown tool to be able to ...
pyb's user avatar
  • 216
1 vote
1 answer
369 views

Wordpress file upload succeeds under nginx but attempting to load the file returns 403

I've been trying to debug this for the last few hours and, having solved so many issues already, I seem to have hit a brick wall I have a Wordpress install using nginx under CentOS7 (AWS Lightsail if ...
Machavity's user avatar
  • 846
20 votes
5 answers
101k views

chmod: changing permissions of 'myscript.sh' : Operation not permitted

While running the following docker file I am getting "chmod: changing permissions of '/scripts/entrypoint.sh': Operation not permitted" error. FROM sonarqube:7.7-community ADD plugins/* /plugins/ ADD ...
JYOTI PRAKASH MALLICK's user avatar
1 vote
1 answer
327 views

NFS storage write permissions

I have installed NFS Server on CentOS 7. I have two other hosts, that I want to share different directories with. Here's my /etc/exports file: /home/WS2016 192.168.200.2(rw,sync,no_subtree_check) /...
mekkanizer's user avatar
1 vote
0 answers
17 views

How to find out if a specific file was accessed by a process and denied access?

I was recently trying to install an SSL certificate and I was unaware of which account was being used on IIS to access it. I thought that maybe if I looked in the Security log I would find out what ...
leeand00's user avatar
  • 4,919
0 votes
1 answer
790 views

Grant access to user for all user folders and subfolders in c:/users

We have an RDS server with dozens of user profiles and I am trying to run cleanup scripts to get rid of some old software folders from the users C:\users*username\appdata\local\softwarenamedfolder ...
Gummby8's user avatar
  • 51
1 vote
1 answer
5k views

Grant users 'read only' access to NFS share without affecting current permissions

I have a Linux (Ubuntu 16.04) server that roughly 30 users login to with shell access. There are different groups setup which manages their access to folders within /opt/working/shared/. /opt/working/...
jblz's user avatar
  • 215
1 vote
1 answer
2k views

What Ownership should `public_html` have so it can use 750? (And not 751) [duplicate]

Question: What ownership does Apache need so that it does not require execute permissions for the world on public_html (751)? Background: When I changed the php.ini settings through cPanel, there was ...
Chris Happy's user avatar
0 votes
1 answer
1k views

403 Forbidden on JS/CSS files after switching Apache to use Event MPM and php-fpm

(I see there are several existing questions about 403 errors and one or two of the rest of the parts of my configuration, but nothing that seems to match up to my exact situation that I've seen so far,...
s11111's user avatar
  • 151
1 vote
1 answer
4k views

PHP Script and correct permissions for user to change everything

The network configuration doesn't allow access to FTP from outside the building. There's one user that need to upload and change files from a specific folder so I've installed TinyFileManager https://...
Enrique Becerra's user avatar
0 votes
2 answers
255 views

Updating user files on no login account on Linux, without using root?

I am working with a Linux embedded system. It has a special account that is used to run software compiled by the manufacturer's programming environment. This account purposefully has the login ...
jeffry7's user avatar
5 votes
1 answer
5k views

File Permissions have Question Marks? How did this happen? How to scan for them?

I have a bunch of files that are messing up my backup system (via rsync). The permissions are all question marks. How does this happen? How do I find them / scan for them? This partially breaks my ...
user708503's user avatar
0 votes
1 answer
2k views

ProFTPD on Debian: Set read, execution and write permissions to new uploaded files (and then delete it by software)

I have activated an FTP server with ProFTPD on Debian Server 8.11. I would like that the new uploaded files via FTP has 2 features: read, execution and write permissions of the user&group (by ...
Kiuki's user avatar
  • 101
1 vote
0 answers
212 views

How to disable the locate command, when used by an ordinary user, from printing file paths that belong to other users?

On Debian with mlocate installed, the locate command seems to print file paths matching a given pattern regardless of the owner. This is a bit privacy instruing. How can I prevent mlocate from ...
xuhdev's user avatar
  • 940
2 votes
0 answers
183 views

PHP-Script cannot create directories outside of web root [closed]

I have a strange issue with my drupal 8 installation on Ubuntu 18.4. The Drupal Webform-module is not able to create needed directories. Therefore file upload fails. The error occurs if I use the ...
James Butler's user avatar
1 vote
2 answers
2k views

Windows File Server Migration - Without Trust

We are about to migrate our file server (Windows Server 2012) from its current domain to a new domain. Due to issues outside my control, there will be no domain trusts or even DNS forwarders from ...
Dave's user avatar
  • 51
1 vote
1 answer
892 views

How to allow an SCP client to change file mod time without being the owner

WinSCP complains at me when it tries to change the file modification time of a file it doesn't own. It says, set times: Operation not permitted. I can remove this error message by unchecking "...
Magmatic's user avatar
  • 179
2 votes
0 answers
297 views

Attempting to delete cron directory in docker gives "Invalid argument"

I'm trying to write a hardening script to remove the cron directory in an alpine Linux based docker image. docker run -it alpine:3.7 rm -rf /var/spool/cron rm: can't remove '/var/spool/cron': Invalid ...
Daniel Powell's user avatar
1 vote
0 answers
36 views

Printer generated PDF corrupting file permissions/file

So I am at a loss on this one. Our TOSHIBA e-STUDIO3005AC printer has been operating perfectly for ~2 years. In the last month, whenever someone scans a document, the pdf will be deposited into our ...
Arrow123's user avatar
26 votes
4 answers
13k views

OSX mojave: "crontab: tmp/tmp.X: Operation not permitted"

After updating my OSX to Mojave, it seems I am no longer able to edit my crontab. Any attempt to do so results in the error message on the title of this question. I tracked crontab to /private/var/at ...
Joao Encarnacao's user avatar
8 votes
1 answer
4k views

Managing Security Groups for NTFS Permissions

To start off with, I work for a company that a long time ago when they implemented file shares for each division, they also broke the cardinal rule of NTFS permissions and used explicit permissions ...
takeitback's user avatar
1 vote
0 answers
380 views

Docker Compose WP permissions

I've a docker compose creating a WP container. The container has a more recent version of WP than the one I'm trying to import, so WP ask me to update the database and some folders. The update process ...
Jumpa's user avatar
  • 111
1 vote
1 answer
185 views

The write permission of files disappear after the files are copied between 2 remote system using FTP

I have setup FTP between 2 remote systems and scripts are set up on both the system to Archive and Extract the file. So the script in the source Archives(tar) file and the script on the destination (...
Johnny_doubts's user avatar
0 votes
1 answer
321 views

User directories ownership has UID on google cloud (gcp) causing possible ssh issue

I am having trouble with some users logging into my GCP compute instance (set up with a slum deployment). When I try to log in, for example, as user 'pi', I get the error: Permission denied (...
byrdman1982's user avatar
2 votes
1 answer
3k views

Windows file permissions - Admin permissions don't seem to work as expected / access denied

I have just inherited a server and I have an issue accessing some folders. I usually get this solved "in the end", usually by forcing a takeown command and then starting from scratch - but, it's ...
wil's user avatar
  • 195
2 votes
0 answers
241 views

Viewing Permissions in Mac OS on a Windows Server 2016 using Active Directory

I am logging into a Windows Server 2016 server and then accessing several volumes. While browsing directories in terminal, all file permissions appear as being owned by the PAM user I am logged into ...
I'm Root James's user avatar
0 votes
1 answer
396 views

Permissions for a webhook under NGINX

Here is what I have on an Ubuntu Server 16.04 LTS: I'm hosting a static website (build using https://gohugo.io/) on a private github repo I created a Webhook.php on my Webserver that is called by ...
Norbert's user avatar
  • 231
1 vote
2 answers
2k views

Sticky bit resets after every reboot

I've got a CentOS server that performs a few dedicated tasks, where different processes/users need to full access to each others files. As these files are temporary in nature, they are stored in the /...
kasimir's user avatar
  • 201
-1 votes
1 answer
2k views

setting umask for a directory so that all directories, executable file(.sh , .cmd, .bat) are 750 and regular file 640

need to create and change existing file and directory such that all directories and executable files(*.sh, *.bat, *.cmd ..) are 750 and regular file are 640 . I need to this in shell and python both. ...
user1656899's user avatar
-1 votes
2 answers
213 views

Possible for domain policy to prevent local Administrator from modifying file permissions?

I have been handed a new Server 2012 that is a member of the company domain. I am in the local server Administrators group. I do not have a domain account. When I opened up the permissions properties ...
Old Geezer's user avatar
1 vote
1 answer
93 views

Windows Server 2016 - Setting up a file share. Permissions work with individual users, but not groups?

So here is my issue. It's been a while since I last set up a file server (2007), and am currently working on the beginnings of one for my current company. The issue I am running into is this: I ...
ServerGuy's user avatar
2 votes
1 answer
1k views

Set default file permission mode without ACLs

I have an AWS EFS share, which does not support filesystem ACLs. How can I set a folder inside the EFS share to default to mode 664?
spiffytech's user avatar
  • 1,093
0 votes
0 answers
142 views

Inheriting Permissions for New Files

I'm having trouble getting inherited permissions to work on an ext4 filesystem. In fstab I added the acl attribute, and when I try the following I expect the new files to get rwxrwx--- permissions, ...
Louis Waweru's user avatar
1 vote
1 answer
4k views

Configuring SFTP in ubuntu 18.04, error "/bin/bash No such file or directory" or "Unexpected end-of-file from SFTP server"

I'm configuring SFTP in ubuntu 18.04 following this tutorial (https://www.digitalocean.com/community/tutorials/how-to-enable-sftp-without-shell-access-on-ubuntu-18-04) But when I try to connect from a ...
Luis Lopez's user avatar
0 votes
1 answer
1k views

Why does rsync+cron fail with opendir permission denied?

I am trying to make a nightly offsite backup using rsync. There is a folder /media/raid1/backup that is to be uploaded to a different server every night using a cron job running as the user ...
RenWal's user avatar
  • 21
0 votes
0 answers
1k views

How to allow nginx to write to a folder owned not by www-data

On Debian 8: I used "ChrootDirectory" to jail a user fileuploader to upload files to /var/www/public now the uploaded files and folders have the ownership fileuploader:fileuploader. Now I serve these ...
Finn's user avatar
  • 229
1 vote
1 answer
795 views

User Group permission for apache website

Apache is running with www-data:www-data I added a user sudo useradd -s /bin/false -d /var/www/dev -m dev and added to www-data group sudo usermod -G www-data --append dev uid=1001(dev) gid=1001(...
Bivas Mandal's user avatar
0 votes
2 answers
265 views

Linux & NFS: Atomic compare-and-exchange of file ownership

My IT department made an error and chowned every file on the filesystem to root:OurGroup. Then their automatic backup (i.e. .snapshop) system created a snapshot, so we no longer have a reference of ...
iAdjunct's user avatar
  • 141
0 votes
2 answers
228 views

Set permissions correctly for Windows Group Policy copy of files?

I set AD group policy to copy some .LNK shortcut files from a network share to users' individual desktops, with a user-level group policy setting. Errors 0x80070005 were produced by each copy, as ...
Jonathan Brickman of Topeka KS's user avatar
1 vote
1 answer
2k views

Permissions error on Samba

I have a Samba server with multiples folders, but when user try to create a folder or a file the group permissions are only set to "r" (read), I'm doing something wrong? My Samba version is 4.3.11-...
user avatar
1 vote
1 answer
2k views

Folder redirection GP and CREATOR OWNER inheritance/scope

We use the folder redirection group policy to place users' My Documents folders on a network share. We have configured the share with Microsoft's recommended NTFS permissions, as defined here: https:/...
morbiD's user avatar
  • 145
1 vote
2 answers
10k views

How to change permissions on C:\ in Windows 10?

For our installation image for Windows 10 (Education version), I'd like to prevent users from creating new folders on the C:\. The installation is used by students sharing PCs in a class room, and ...
Ale's user avatar
  • 1,723
2 votes
1 answer
9k views

SMB issue- Access denied

i have a windows server 2012 R2 for file sharing purpose, clients are using win 7 64 bit. network drives are mapped on profile. Issue: some user drives disconnect suddenly with the message of Access ...
Farrukh Khan's user avatar
1 vote
0 answers
48 views

Why can a logged in root account modify this file, but I can't when using sudo

I have a file on my Debian Stretch server that has the following security attribute: -rw-r--r--, owned by root. If I login as root directly (su -), I can edit and save it. But if I try to do sudo ...
contactmatt's user avatar
0 votes
1 answer
500 views

NFS "-mapall" doesn't include anonymous clients?

I am accessing Unix-like NFS servers using Client for NFS in Windows Server 2008 R2. Since the server is not part of AD, and there is no "User Mapping server" active, the documentation states that ...
Ate Somebits's user avatar

1 2 3
4
5
20