2022 Developer Survey is open! Take survey.

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
6 views

Mounting Windows NFS Share to SUSE Linux SLES - nobody:nobody issue - cannot chown

Here's my setup: Windows Server - 192.168.0.57 SUSE SLES15 Server - 192.168.0.5 There is a folder on my Windows server - F:\ARCHIVE The SUSE server has a user U1 and group GRP1 I want to mount the ...
user avatar
0 votes
0 answers
3 views

Vagrant + Docker: sync folder permision

all! I use Vagrant to manage a Ubuntu-14.04 docker. I have a sync shared folder name: common (create by my personal user in host) config.vm.synced_folder "common", "/common" The ...
user avatar
  • 1
0 votes
0 answers
11 views

Disable ACLs on folder or process or user

I have a downloader-application that downloads data and saves it as files and folders. Another application then processes this data. The files and folders get created with ACLs applying to them. $ ls -...
user avatar
  • 473
0 votes
0 answers
9 views

PHP File Permissions and Running HTML Files as PHP

I am running a Linux server (a DV server with Media Temple). It's a pretty standard LAMP setup. I'm running PHP 7.4. I'm using two programs to upload files to the server: Filezilla and a tool called ...
user avatar
  • 1
-1 votes
1 answer
22 views

Limit drag & drop mess

I have a Windows Server 2016 acting as a file server with thousands of files in a well-defined tree. Different people have different access to different parts of the tree. The problem is that some ...
user avatar
0 votes
1 answer
23 views

Error while transferring file permissions

I ran into a problem, wrote a script that compresses pdf files through a program and transfers rights to a new file by copying from the old one to differentiate access to new files. Here is the part ...
user avatar
0 votes
0 answers
134 views

File sharing access denied error on the Windows 2016 file server. only with ONE folder

My problem is as followed: Situation I have a Windows 2016 file server. In the server role the d: drive is shared. I have many shared folders each with the name of a user and shared to that user. ...
user avatar
  • 1
0 votes
1 answer
20 views

Shell Script to Move a File Into Another User's Directory?

I'm running a Ubuntu 16.04 server. On my server, I have a file in directory /home/userA/dirA: userA@myUbuntu:~$ userA@myUbuntu:~$ pwd /home/userA userA@myUbuntu:~$ userA@myUbuntu:~$ ls -l total 8 ...
user avatar
  • 111
0 votes
1 answer
32 views

Is there a tool to check and manage file permissions?

I developed a set of rules for file and directory owner and permissions for our company server. E.g.: Projects/: permission 750, owner root, group internal Projects/* (directories): permission 2770, ...
user avatar
0 votes
0 answers
33 views

Process unable to write file - disk space ran out what happened?

I had a situation with a server misconfig. Nginx was unable to write its logs due to invalid file permissions and checking with free the buffers/caches were at about 3.2GB (out of 4GB Memory). Nginx ...
user avatar
  • 1
0 votes
0 answers
23 views

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 ...
user avatar
0 votes
1 answer
28 views

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 ...
user avatar
2 votes
1 answer
75 views

Can I rely on the 701 permissions to prevent users within the same group from messing with each other's data?

Some time ago I've learned that assigning all users to the same group and setting 701 to their home directories prevents them from messing with each other's data, yet lets a system program, such as a ...
user avatar
0 votes
1 answer
187 views

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['...
user avatar
  • 123
0 votes
1 answer
202 views

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 ...
user avatar
0 votes
0 answers
54 views

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 principals: kadmin/admin@DIGITAL kadmin/bohr.digital@...
user avatar
  • 456
1 vote
0 answers
41 views

NFS v3 linux permissions issue

new with linux permissions and I'm having an issue on write between my fileserver (192.168.1.1, debian) and my new nextcloud instance (192.168.1.2, ubuntu) on the file server side: exportfs /mnt/...
user avatar
  • 11
1 vote
1 answer
199 views

Should both root and wheel users own the files that originally were only owned by root?

Should a wheel user that was created to disable root login and secure SSH have the same ownership as root from a security point of view?
user avatar
0 votes
1 answer
89 views

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-...
user avatar
0 votes
0 answers
60 views

How to force owner of a shared windows folder?

I have a directory of shares: D:\share\users\user1 D:\share\users\user2 D:\share\users\otheruser1 D:\share\users\yougettheideaithink Each user folder is the owner of their folder. Each user has what ...
user avatar
0 votes
0 answers
77 views

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 ...
user avatar
  • 231
1 vote
0 answers
37 views

Noexec vs chmod -R -x for malware interogation?

I am setting up a Linux box to examine malware samples. I wanted to create a directory where I could safely unzip each sample and run very basic triage commands against the file to collect ...
user avatar
  • 237
0 votes
0 answers
101 views

Windows 2022 sometimes cannot modify file even 'Everyone' has 'Full Access'

The Windows 2022 is fresh installed. I have a local user v in group Users. I also have a native app called work.exe who has a config file config.xml. I copied the 2 files, from VM share folder, into %...
user avatar
  • 1
0 votes
1 answer
117 views

Hacked file regenerates whenever it is deleted - ubuntu/apache2 [duplicate]

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 ...
user avatar
  • 109
-1 votes
1 answer
114 views

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 ...
user avatar
0 votes
1 answer
523 views

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/...
user avatar
0 votes
1 answer
421 views

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 ...
user avatar
0 votes
1 answer
24 views

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 ...
user avatar
1 vote
1 answer
74 views

NFS: control file/folder access using groups on the server

I feel a bit stupid to ask as it feels to me to be a very basic question, but anyway I haven't found a solution yet: I have a Linux dataserver and several workstations that mount folders on this ...
user avatar
  • 13
0 votes
0 answers
125 views

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 [...
user avatar
0 votes
1 answer
394 views

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 ...
user avatar
0 votes
1 answer
500 views

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 ...
user avatar
  • 143
0 votes
0 answers
62 views

Why is my Samba share only writable by root?

I have set up a Samba share, and it is only writable by root. For example, I can only create a folder on that share with sudo: ~$ mkdir /mnt/SHARE/somedir mkdir: cannot create directory /mnt/SHARE/...
user avatar
0 votes
1 answer
1k views

PHP can't write to /tmp folder anymore after Apache update

Linux dist: Ubuntu 18.04.5 LTS Server version: Apache/2.4.29 PHP Version: 7.4.20 with PHP-FPM Recently this server did an automatic upgrade of Apache and ever since PHP can't write to /tmp breaking ...
user avatar
  • 101
1 vote
1 answer
86 views

Two files, same permissions, Apache says one is forbidden

I have two files in a directory that is accessible to the Interent. It's part of a WordPress installation. Here are the directory contents: # ls -lah total 11M -rw-r--r--. 1 apache apache 2.9M Jul ...
user avatar
1 vote
0 answers
43 views

File permission issue - You need permission to perform this action

This is a very strange issue related to a dfs replicated folder. The share in question is shared with "Everyone" with full access and permissions are applied to sub-folders using ACLs. ...
user avatar
0 votes
0 answers
105 views

Jenkins NOT failing build when encountered Permission Denied status 126

During development, I forgot to set privileges to a script (DB backup) on remote host, which revealed some Jenkins' weakness - when one of steps failed with "Permission Denied" (status 126) ...
user avatar
  • 101
0 votes
0 answers
47 views

Why does setfacl turn on the group execute permission on files even when specifying X?

I'm seeing strange behaviour with setfacl setting the eXecute bit on the group permission for files in some situations, confirmed on CentOS 7. As user root with unmask 0002: mkdir foo touch foo/bar ...
user avatar
0 votes
0 answers
37 views

Ubuntu SFTP hide unauthorized subfolders [duplicate]

I currently run Ubuntu 20.04 Desktop server. And I am using the SFTP function by installing OpenSSH on the server. For testing purposes, I temporarily created a directory called /home/mydirectory/...
user avatar
0 votes
0 answers
35 views

file ownership and permissions issue with phpBB on Ubuntu 20.04 VPS

I am porting a phpBB site from a shared server to a VPS, running Ubuntu 20.04. I have configured apache2 for virtual domains, since I have more than one. Here's where the boards are: /var/www/...
user avatar
0 votes
0 answers
68 views

Azure AD Joined Workstations, File Shares and User Permissions

The environment is as such. Local DC's, Azure AD Connect syncing to Azure AD. Laptops/workstations joined to Azure AD. I need to create shares on the workstations/laptops so our developers can dump ...
user avatar
0 votes
1 answer
55 views

Why can I delete the file of another user given 640 permission and sticky bit?

I want to have a shared folder /data where multiple users can put their datasets to be used by others. I've followed the instructions in this answer, so now I have: ciprian@server /data $ ll .. | grep ...
user avatar
2 votes
1 answer
251 views

Rsync copies all files with executable permission

I ran the following command to back up my home-directory: $ rsync -ahv \ --info=progress2 \ --partial \ --exclude=.cache/ \ --exclude=.miniconda3/ \ --exclude=....
user avatar
  • 125
0 votes
1 answer
111 views

NTFS permissions with multiple user groups

I do not know how to search for this, so I am sorry if this has already been asked. Also, I am new to Windows administration so if I say something wrong do not hesitate to correct me! I have a folder ...
user avatar
2 votes
1 answer
324 views

NFS4 w/o Kerberos : name mapping works, permissions don't

I simply want to "map by userNAME" between NFS4 client and NFS4 server, when each has different uid for a given user name, w/o having to setup Kerberos. The situation: my Linux machine (...
user avatar
  • 23
0 votes
1 answer
28 views

SMB share, from windows, creates files are owned by administrator and permissions and for Everyone. How to force this to be user who created file?

So I have a smb share setup using unisphere. I can login to my windows machine on the domain and my ad account. I can access the share but when creating a file on the share it shows under security ...
user avatar
  • 179
0 votes
1 answer
414 views

Libvirt raises permission denied when QEMU is accessing the VM on an external hard drive

I wanted to use an external hard drive as a libvirt storage pool for my VMs. I defined a new pool in /media/wenzel/OSWatcher/vms, and imported my vm win10-ts1-1507.qcow2 there. However, when starting ...
user avatar
  • 1
1 vote
0 answers
303 views

NFS : permission denied - home dir NFS Qtree from Netapp

I have centos7 box NFS Qtree used for home dir from Netapp is able to mount just fine Export policy shows : any any any ...ie super user access as well is any When i am root user on client box , can ...
user avatar
0 votes
1 answer
100 views

You require permission from Domain\xyzuser to make changes to this file

I've seen other questions similar but not quite the same. Have a client that is seeing a message when trying to access files in a folder on a Windows server 2012 R2. This behavior is consistent for a ...
user avatar
0 votes
2 answers
434 views

Samba clients able to delete each others files. How to block

I have applied sticky bit on Samba share directory. Now client is not able to remove files and directories created by root of Samba server, The issue is many clients access the same directory share ...
user avatar

1
2 3 4 5
19