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
0
votes
0 answers

Prevent Apache from writing to a file

I have a website based on a CMS, running on Apache 2.4/PHP7.4. The CMS has an admin interface and changes you make there are written to config files inside the web root (/var/www/html/...). As a crude security measure, I thought I'd prevent writing…
0
votes
1 answer

directory owner permission does not get updated properly via ansible loop

I am trying to create and update directory permission on my linux machine by using below ansible task but it does not change the ownership properly: for instance: directory /home/xyz/xyz/{{ IDM }} and /home/{{ IDM }} ownership permssion gets…
Roushan Jha
  • 55
  • 1
  • 1
  • 5
0
votes
1 answer

Private file storage area settings in Drupal 9.3 ($settings['file_private_path'] =)

I use Drupal 9.3 and I have created a private folder outside the root directory. I followed the documentation [link] and added the following line in my settings.php file in drupal: $settings['file_private_path'] = '../private'; The private file…
Abe
  • 123
  • 6
0
votes
1 answer

Linux file ACLs are not kept using Docker for new files/containers created by Docker daemon

I am trying to grant read permissions to group grafana-cloud to files under /var/lib/docker/containers: #> ls /var/lib/docker/containers/ | head -n1 0515ccad974eb0e4577c7b35a0c517ab889db95d996e6188e9d0377cfa2265d4 #> setfacl -Rdm…
0
votes
0 answers

NFS4 + Kerberos and ownership of mounted share

I have the following setup: NFS4 server on Debian Buster, Kerberos server on the same machine, no LDAP or AD. The hostname is bohr.digital. List of…
QkiZ
  • 634
  • 2
  • 9
  • 22
0
votes
3 answers

Prevent user from seeing list of other user's home dir

I want to prevent a user from seeing a list of home directory(of other users). By default, a user can not access other user's home dir but can find another user's home dir like below: [opc@instance-20210712-0826 home]$ cd…
0
votes
0 answers

Backup (SeBackupPrivilege) and restore privilege(SerestorePrivilege).for domain user

How do I verify the if the domain user has backup (SeBackupPrivilege) and restore privilege(SerestorePrivilege)? I tried added the domain user to backup operators group. But Whoami /priv command output shows that the domain user doesn't have the…
0
votes
1 answer

Hacked file regenerates whenever it is deleted - ubuntu/apache2

Have just had a hacked website flagged by Sucuri There were a number of backdoor PHP files flagged, which I HAVE been able to delete However, the index.php file has a spam link injected in to the bottom of it. I've tried deleting it - which DOES…
freestate
  • 109
  • 2
0
votes
1 answer

systemd script do not set correct file permissions at boot time

I have written a simple service that calls a bash script that should change file permissions at boot time. The issue is that it seems that the service is not working as the permissions are not changed by the time the user logs in. However, when I…
0
votes
1 answer

SSH connection issue : How to change folder / file permissions in Windows similarly to Linux?

I have hard times connecting my local PC through SSH to another remote PC. I set the public key on both machines in the authorized_keys folder following this tutorial : https://help.ubuntu.com/community/SSH/OpenSSH/Keys but i get permission denied…
0
votes
1 answer

On CentOS 6, how to let user-created files inherit permissions from their parent directory?

So our servers are set-up like this: Folder structure /asic is our grand project's folder, /200T is a subproject of that grand project, and folders right under /200T such as /lbh are each worker's personal directories who are working on the…
NoobAdmin
  • 3
  • 1
  • 4
0
votes
1 answer

SELINUX : How to make child folder rule precedence higher than parent rule

SELINUX : How to make child folder rule precedence higher than parent rule eg : /home/kevinw/www/kp/storage(/.*)? all files system_u:object_r:httpd_sys_rw_content_t:s0 lost to /home/kevinw/www(/.*)? all…
0
votes
1 answer

How to enable read permission on Kubernetes mount path

I have installed FluentD on Kind-Kubernetes cluster on CentOS VM running on my laptop. I'm having issues getting FluentD to read logs as it is throwing the following error. 2021-08-29 08:26:31 +0000 [warn]: #0 [tail_container_logs]…
0
votes
1 answer

Automatically set owner to new files in a NFS Folder

I have a machine which acts as a NFS server, this machine shares files with others. Developers use the dev-user to upload files to the NFS server, but in the NFS client those files need to be owned by web-user, and devs don't have the credentials to…
0diseus
  • 1
  • 2
0
votes
1 answer

How to prevent a SFTP user from seeing other directories?

I'm setting up a Windows Server 2019-based web server. One of our vendors needs to be able to upload files. I have Added sshd Created a login for them to use Created a group for that login Added that login to the group, and removed the login from…
Don R
  • 143
  • 2
  • 11