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.
977
questions
0
votes
0
answers
183
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 ...
-1
votes
1
answer
35
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 ...
0
votes
1
answer
130
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 ...
0
votes
0
answers
2k
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. ...
0
votes
1
answer
117
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
...
0
votes
1
answer
462
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, ...
0
votes
0
answers
251
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 ...
0
votes
0
answers
171
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 ...
0
votes
1
answer
927
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 ...
2
votes
1
answer
470
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 ...
0
votes
1
answer
822
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['...
0
votes
1
answer
2k
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
...
0
votes
0
answers
292
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@...
1
vote
0
answers
275
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/...
1
vote
1
answer
497
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?
0
votes
3
answers
2k
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-...
0
votes
0
answers
825
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 ...
1
vote
0
answers
135
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 ...
0
votes
1
answer
763
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 ...
0
votes
1
answer
691
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 ...
1
vote
2
answers
4k
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/...
0
votes
1
answer
4k
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 ...
0
votes
1
answer
106
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 ...
1
vote
1
answer
855
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 ...
0
votes
1
answer
3k
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 [...
0
votes
1
answer
3k
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 ...
0
votes
1
answer
3k
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 ...
0
votes
0
answers
268
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/...
1
vote
1
answer
5k
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 ...
1
vote
1
answer
570
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 ...
1
vote
0
answers
184
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. ...
0
votes
1
answer
365
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 ...
3
votes
1
answer
1k
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=....
0
votes
1
answer
305
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 ...
2
votes
1
answer
1k
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 (...
0
votes
1
answer
371
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 ...
0
votes
1
answer
2k
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 ...
1
vote
0
answers
743
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 ...
0
votes
1
answer
368
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 ...
0
votes
2
answers
1k
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 ...
0
votes
1
answer
594
views
Very strange AH00035 error
I am here because I have a very strange behaviour on my server and I ever investigate for hours on the AH00035 error.
On my server, if I create a simple php file index.php
<? php echo "Hello ...
0
votes
1
answer
39
views
In mac, not able to view or open a file which displayed while by `locate` command [closed]
OS: MacOS
When I try locate acronym a folder named acronym and all the contents in the folder are getting displayed, but I am not able to view or open any of those files.
I was able to view and access ...
0
votes
1
answer
584
views
How to give permissions to local computers using computers' MAC addresses in Windows Server 2016 for file sharing
I have the following issue:
I have a server with Windows Server 2016, and I need to use it only for saving, reading, and modifying files with file sharing.
The way I have the restrictions is with ...
2
votes
1
answer
617
views
Remote command has different umask
ssh user@host "umask" gives 0174
ssh user@host and the umask from server shell gives 0002
Could you please explain how can it happen?
UPD:
Actually, it was /etc/passwd overriding umask.
1
vote
1
answer
245
views
Dynamically sharing file/folder between users on the same machine with subdirectory
I have 3000+ local users on my Linux system. I want to set permissions dynamically for folder or files.
I came across ACLs (Access Control Lists) when I researched this topic. All users home location ...
0
votes
1
answer
598
views
Prevent deletion of other's files on a shared folder
We have a shared folder so all employees can upload and save file or create folders to it. But we want to prevent workers to delete other's files and folders. I assigned all permissions except "...
0
votes
1
answer
351
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
1
answer
2k
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
1
answer
2k
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
0
answers
264
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 ...