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

run icacls across domains - failed trust relationship

I frequently have to create Directories and set permissions on Samba-Shares which are joined to foreign Domains without Trust Relationship to my "home" Domain. Mounting and creating Directories works fine New-PSDrive -Name "F" -PSProvider FileSystem…
0
votes
2 answers

Can't change file owner as root

I can't change the owner of a file (I'm logged in as root). Output of chown root Shrek.avi: chown: changing ownership of 'Shrek.avi': Operation not permitted Output of chattr -i Shrek.avi: chattr: Permission denied while reading flags on…
0
votes
1 answer

User unable to access files in a folder with SUID S bit set

I have a folder which I want to share with users of a group named frx. I had applied chmod g+s to the folder, but for some reason the SUID bit (for folders in the /home/frx directory) came out as S instead. > pwd /home/frx > ls -al drwxrws---+ 14…
Old Geezer
  • 397
  • 8
  • 25
0
votes
2 answers

Are there any potential pitfalls to changing the permissions of config files under /etc to a non-root user?

There are various services which are being run on our machines, e.g. cassandra, datadog, etc. Occasionally, we need to change the configuration, and we wish to automate the propagation of the config files and restarts. We use Jenkins for automate…
0
votes
1 answer

How to set limited permissions using command line on windows?

user want to delete all permissions and keep only modify permission for everyone and full permission to system. Like this. But present with icacls command icacls "%ProgramData%\myfolder\Licensing" /grant Everyone:M SYSTEM:F how to remove all…
user2331760
  • 155
  • 4
  • 12
0
votes
0 answers

Giving execute permission on folder with ACL makes files executable, too

I have a folder, owned by the "website user" foo, that will host a site: $ sudo mkdir foo $ sudo chown -R foo:foo $ sudo chmod -R u=rwX,g=rX,o= foo $ sudo chmod -R g+s foo $ ls -la drwxr-s--- ... foo foo ... foo I add Nginx (my server) to the foo…
0
votes
2 answers

Cannot read wordpress PHP files in NGINX - HTTP error 500

I have uploaded Wordpress files to /var/www/html/mysite.com, given recursive permissions 755 and recursively owned by www-data:www:data I use the PHP-FPM service running with NGINX as web server on ubuntu 20.04. This is my domain configuration…
YaRmgl
  • 103
  • 3
0
votes
0 answers

Use smb share also as docker volume

I've one Debian 11 Server which has multiple smb-shares under /samba/. Now I'd like to run multiple instances of a file synchronisation software called Syncthing inside docker containers on this machine, thus for every smb-share one Syncthing…
0
votes
0 answers

How to configure vsftpd to set correct permissions, group and owner (Apache Webserver) of newly created files?

I installed vsftpd and I can login with the new user sftp to the server. But if I create a new file via FileZilla the new file has got 755 permission and its group is not www-data (33). Screenshot FileZilla How can I fix this? I want to have correct…
kanka.dev
  • 21
  • 1
  • 1
  • 3
0
votes
0 answers

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 Codeanywhere. When I upload a PHP file using SFPT…
Adam
  • 3
  • 1
  • 3
0
votes
1 answer

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 of the code that I have is the problem $owner =…
0
votes
0 answers

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. Every user (W10) has a documents folder inside and is…
0
votes
1 answer

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 drwxrwxr-x 3 userA userA 4096 Feb 17 14:13…
Pete
  • 131
  • 6
0
votes
1 answer

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, group internal Projects/*/* (files): permission…
0
votes
0 answers

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 master process was able to write logs - but the…