As of May 31, 2023, we have updated our Code of Conduct.

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
-2 votes
0 answers
15 views

Why is the permission of the created file inconsistent with the specified one? [migrated]

I am using open to create a file in c, here is my code int create_file(const char* path) { extern int errno; int fd = open(path, O_RDWR | O_CREAT | O_EXCL , 0666); if (fd < 0) { ...
Klen's user avatar
  • 1
1 vote
0 answers
22 views

ACL permissions not syncing with LDAP

Have a MacStudio running system 13.3.1 set up as a file server. It is bound to an Open Directory server. Using TinkerTool as a GUI to set/update permissions of the shared files/folders. Everything ...
David P's user avatar
  • 11
-2 votes
1 answer
86 views

Change permissions/ownership of file/directory owned by 33:33 in Linux

I have a directory where I used to make the backup of my owncloud files from Ubuntu. It's owned by user 33 and group 33, which in Ubuntu are the www-data (Apache) user and group. Now I have changed ...
Andyc's user avatar
  • 97
0 votes
1 answer
205 views

How to take ownership of all contents in CSC folder?

I have files that was saved as offline files from a Synology server to the CSC folder on my computer that I would like to delete. I cannot delete the files unless I individually take ownership of ...
smithalysia92's user avatar
0 votes
1 answer
191 views

Move docker compose wordpress with local volume to new host with correct permission

I'm struggling to migrate / move my Docker Compoe project with Wordpress and Mysql to a new host. My docker-compoye.yaml is as follows: version: '3.1' services: wordpress: image: wordpress ...
mbecker's user avatar
  • 101
0 votes
0 answers
276 views

OSError: [Errno 30] Read-only file system: <relative_path_to_file>

(On Ubuntu 22.04 LTS) When trying to create or edit any file or directory on my hard drive I get a 'Read-only file system'-error (two days ago I could still do that): $ whoami mattia $ mkdir example ...
Asterix's user avatar
0 votes
0 answers
135 views

Error writing lock file: Permission denied

(On Ubuntu 22.04 LTS) After connecting my NAS drive with the mount command in the nashome directory, the following error occurs, when trying to edit or create any file in the mounted directory tree: [ ...
Asterix's user avatar
0 votes
1 answer
117 views

How to force custom permissions on files created by git checkout command?

I need files created by git checkout command to have custom permissions. Even with core.sharedrepository=0777 setting git creates working tree files with 0644 permissions. But I want it to be at least ...
Mikhail Karakulov's user avatar
0 votes
0 answers
69 views

Unable to Write, Permission denied

As an apache user, I was trying edit some files owned by a different user, lets call it docroot drwxrwxrwx 2 docroot docroot 327 Feb 15 20:34 . drwxr-xr-- 53 docroot docroot 8192 Jan ...
asim's user avatar
  • 101
0 votes
0 answers
75 views

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 ...
Jochen's user avatar
  • 1
1 vote
2 answers
127 views

Folders untouchable: owner unknown and cannot be changed

I have a parent folder, let's call it 'P', and in P resides 5 child folders. I am administrator of this non-domain joined server, but I cannot delete these child folder or in any other way alter them. ...
Janus Engstrøm's user avatar
1 vote
1 answer
152 views

Create shared folder as active directory would in powershell

With Active Directory I can manually create new users. Every time I do that, I use right click -> Copy on that user, then I modify some things like Name, Surname and SamAccountName. This process ...
Fral's user avatar
  • 11
0 votes
2 answers
381 views

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: ...
Wojciechgc's user avatar
0 votes
1 answer
29 views

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 ...
Old Geezer's user avatar
1 vote
0 answers
110 views

Automating NFSv3 File/Folder permissions in Windows

I'm a Windows/MSSQL DBA who is inheriting a quirky system through no fault of my own, and had a quick question. Background I have an Azure NFSv3 volume that is being exported to a Windows Server 2019 ...
Vocoder's user avatar
  • 111
0 votes
2 answers
59 views

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 ...
ranban282's user avatar
0 votes
1 answer
61 views

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\...
user2331760's user avatar
1 vote
0 answers
141 views

Samba AD sysvol sync unison permissions issue

I'm having an issue with syncing the unix permissions and ownership on the sysvol between two Ubuntu Samba AD DCs using unison. I have copied the idmap.ldb file from DC1 to DC2 and the Windows ...
squidconspiracy's user avatar
0 votes
0 answers
231 views

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--...
bobsoap's user avatar
  • 161
1 vote
1 answer
239 views

Rsync makes the destination folder unwritable before copying files to it (and then of course it fails with Permission Denied)

I want to use rsync to deploy a project from my dev machine (Windows 11, CygWin) to a remote server (Ubuntu) through SSH. I've made sure that my SSH user has full write access to the destination ...
Lázár Zsolt's user avatar
0 votes
2 answers
379 views

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 ...
YaRmgl's user avatar
  • 103
1 vote
1 answer
277 views

executing a command without password prompt or root

For the sake of writing a script, I'd like my minikube-role-user to execute the command minikube tunnel without a password prompt, without switching user to root, be it by su or temporarily by sudo, ...
Dylan's user avatar
  • 13
0 votes
0 answers
2k views

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 ...
vrudy_0o0's user avatar
2 votes
0 answers
476 views

AD-Joined Samba Share with Windows XACL Access Denied

Overview I have a file server and domain controller both running Samba 4.15.9. The DC is the only one in the forest. The DC, file server, and a Windows 10 client are joined to the same domain. On the ...
timelmer's user avatar
  • 131
1 vote
2 answers
281 views

Windows-10 shared folder permission

We have a small office LAN with a few Windows 10 PCs (without server). One PC has a shared folder which various users create files for sharing. For various reasons some created files are sometimes ...
micC's user avatar
  • 23
0 votes
0 answers
123 views

SFTP FOLDER Permissions

I am trying to create separate ftp folders for each vendor and yet want to keep them all in one folder so the finance team could access all the vendors folders but the vendors only see their own ...
user980443's user avatar
0 votes
0 answers
377 views

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 ...
kanka.dev's user avatar
0 votes
0 answers
62 views

UWF - cant delete files in excluded folders

I have a windows 10 PC and have set up the UWF filter to protect the drive. Some folders have been added to the exclusion list. So far it is working, any change made to the drive is lost on reboot, ...
sharkyenergy's user avatar
0 votes
0 answers
147 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 ...
Adam's user avatar
  • 3
-1 votes
1 answer
25 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 ...
Fernando Suarez Ornani's user avatar
0 votes
1 answer
113 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 ...
BadKempachi's user avatar
0 votes
0 answers
1k 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. ...
Frank's user avatar
  • 1
0 votes
1 answer
62 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 ...
Pete's user avatar
  • 131
0 votes
1 answer
250 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, ...
user10070149's user avatar
0 votes
0 answers
181 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 ...
324Ss's user avatar
  • 1
0 votes
0 answers
81 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 ...
Peter Herdenborg's user avatar
0 votes
1 answer
580 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 ...
Roushan Jha's user avatar
2 votes
1 answer
307 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 ...
Col. Shrapnel's user avatar
0 votes
1 answer
620 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['...
Abe's user avatar
  • 123
0 votes
1 answer
1k 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 ...
Javier Cortejoso's user avatar
0 votes
0 answers
212 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@...
QkiZ's user avatar
  • 604
1 vote
0 answers
216 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/...
Nicola's user avatar
  • 11
1 vote
1 answer
392 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?
Adam Alleman's user avatar
0 votes
3 answers
834 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-...
Muhammad Dyas Yaskur's user avatar
0 votes
0 answers
467 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 ...
suresh's user avatar
  • 231
1 vote
0 answers
101 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 ...
Lexicon's user avatar
  • 247
0 votes
1 answer
509 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 ...
freestate's user avatar
  • 109
0 votes
1 answer
452 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 ...
Georgi Koemdzhiev's user avatar
0 votes
1 answer
2k 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/...
Patrick Schulz's user avatar
0 votes
1 answer
3k 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 ...
NoobAdmin's user avatar

1
2 3 4 5
20