Skip to main content

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
1 vote
0 answers
22 views

Remove file placed by malware within Windows Shadow Volume Copy directory [duplicate]

While investigating a malware infection in a Windows Server 2012 R2, I noticed the malicious file sits in c:\Windows\Vss\Logs\WsmRes64.dll. The problem is that I can't cd c:\Windows\Vss\Logs, and the ...
Avenger's user avatar
  • 151
0 votes
0 answers
82 views

Receiving Destination Folder Access Denied error on new file server even though group has all necessary permissions

Recently set up a new file server to replace an old one. I copied all of the old files and permissions from the last file server using a script and everything seems correct just looking at it. However,...
randomsysadmin123's user avatar
0 votes
0 answers
61 views

In Windows, how to add and verify execution permission to a file?

Here is a typical situation, assuming that I am the user desktop-6083m7k\pengc running powershell: PS D:\git\HMD-Air\Library\PackageCache\[email protected]\Editor\VSWhere> whoami ...
tribbloid's user avatar
  • 103
1 vote
0 answers
70 views

File ownership on a samba or nfs share client

How is file ownership dealt with within a samba or nfs share on the client side (ie the file owner the client actually sees) I realise that ownership on the host system can be forced (on Samba at ...
Will's user avatar
  • 111
0 votes
0 answers
129 views

PHP Unable to Read /home Folder

I am having an issue with a PHP script not being able to read a user's /home folder. This is an issue on a server running AlmaLinux 9.4, my other server running CentOS can read the folder. The error ...
Rick Boklage's user avatar
0 votes
1 answer
271 views

How to allow other users to modify files uploaded to SFTP server (login as other user)

I have an SFTP server and I can send files to it as let's say user1. I have another user (user2) in that server and I want to be able to remove/modify files uploaded to the user1's configured sftp ...
Muslimbek Abduganiev's user avatar
0 votes
0 answers
16 views

Permission is not applying for user in share path

I denied permission for all users for a folder, but even after applying the permission, users can access the folder in share path. Can you suggest a solution for this? Need help as folder is very ...
Mohan's user avatar
  • 1
1 vote
1 answer
107 views

Why can I use an SSH private key with group permissions on a remote server but not on my local machine?

Introduction There is something I don't understand with SSH private key permissions and I'd like some in-depth explanations about the difference in behavior I'm noticing Here is the thing, I am trying ...
Charystag's user avatar
0 votes
0 answers
157 views

About the time it takes to change file permissions

I am considering changing the folder permissions on a NAS running on Windows from read-only for everyone to writable. The file count is 400,000 and the data size is 6TB. How long do you think the ...
kyoro's user avatar
  • 1
1 vote
1 answer
182 views

Can't create Windows Server 2012 Failover Cluster Share Resource for mounted folder [closed]

We have two a two node Windows Failover Cluster. One resource is a folder that is mounted on a Windows disk1.1. Disk 1 has a file share created on the cluster. We are trying to create another file ...
fedayn's user avatar
  • 65
0 votes
0 answers
43 views

phpBB installation: chgrp not permitted

What did I do wrong? I did see many of those warnings during the installation of phpBB: [phpBB Debug] "chgrp(): Operation not permitted" in file /var/www/phpbb_0003_0003_0011/vendor/symfony/...
viator's user avatar
  • 1
0 votes
0 answers
48 views

Why does lsattr show different attributes for the same file?

Files in a (Ubuntu 22.04.4) Samba share mounted with cifs from /etc/fstab are returning apparently random attributes each time I run lsattr - is that normal? /etc/fstab: //192.168.0.7/files /mnt/nas/...
TommyPeanuts's user avatar
0 votes
0 answers
27 views

ENQ icon character in a .log file

I think it might be rust or a hyperlink
morgansbyers's user avatar
0 votes
1 answer
8k views

How to configure Docker permissions for container to write to a volume as a non-root user?

I have my web application deployed in a couple of Docker containers, and for file uploads I need to be able to write to the filesystem. The application is proxied through Nginx running on the same ...
glenatron's user avatar
  • 235
0 votes
1 answer
302 views

Mounting the GCP Cloud Storage bucket to Directory as a non-root user

I'm running the one service on the Linux based instance in GCP. So for running the service, i have created the one user & group for that i.e.; user: test-user group: test-group Then i need to ...
RAM's user avatar
  • 1
0 votes
1 answer
200 views

Permission error when setting global-acls in dovecot

Dovecot's ACL plugin instructions indicate that for global acl's, we're supposed to create an acl file in /etc/dovecot/. and to include the access control list items in it. So I've created /etc/...
oucil's user avatar
  • 648
0 votes
0 answers
48 views

several tomcat apps running as user, using single java jdk installation owned by root

We administer server with java web applications: alfresco/solr running on tomcat. Up to now java jdk sources of same versions were extracted/copied in several directories next to each other, so ...
groovehunter's user avatar
0 votes
1 answer
62 views

Dovecot/Pigeonhole: How to specify default directory permission for newly created ./sieve directory for fresh uers?

I am running Dovecot 2.3.20 with enabled Sieve support. I am using virtual mail boxes for several hosted virtual domains. The system account and group which owns (shall own) the directories and mail ...
user2690527's user avatar
2 votes
2 answers
1k views

Mounting Samba share to Docker container

Goal On my server I am runing various Docker containers, specifically a syncthing container. In addition I am also using my server for different Samba shares. My goal is to mount the host directory /...
mchp's user avatar
  • 41
1 vote
1 answer
1k views

Mystery "Failed to locate executable"

I've been setting up a monitoring solution for various servers using Promtail, Loki and Grafana, following this article. I got a monitoring machine running Loki and Grafana (on Rocky Linux 9.3) and a ...
Steven Blyatman Chayka's user avatar
0 votes
0 answers
1k views

Windows Scheduled Task Does Not Work With Service Account

I have an odd problem with a scheduled task. The task is scheduled to run at 0202 every morning under a service account. The task is configured to run whether the user is logged on or not and the &...
BWFC's user avatar
  • 101
0 votes
0 answers
22 views

cephfs mount: can't open files with LibreOffice

I'm able to open/write different relevant filetypes with other applications (vim,code,gedit,...) from remote cephfs storage. libreoffice has been configured to prevent file-locks. All dirs and files ...
Peedy2495's user avatar
0 votes
2 answers
296 views

Why ssh-keygen & ssh-copy-id create files with incorrect permissions

I have a FreeBSD host (sh) that I just set up last week, and it is doing these two weird things that seem to be related: ssh-keygen ON this host is creating both private and pub keys with 775 file ...
jg3's user avatar
  • 189
0 votes
1 answer
269 views

How to correct NTFS permissions set by OneDrive client?

We use a Windows Server, which we want to get rid of in a few months. As replacement we configured SharePoint via Office 365, and we use the OneDrive client for synchronisation of files on the ...
Redoute's user avatar
  • 215
0 votes
1 answer
63 views

Why executable files (mode x flagged) under a folder cannot run?

I thought that a script file under my /data folder cannot be executed is because it is not set 'x' permission , but after chmod +x, it still cannot run, even my handmade simple test script cannot if I ...
Michaelzh's user avatar
  • 113
1 vote
0 answers
540 views

Systemd service with DynamicUser cannot write to its CacheDirectory

I'm running OpenSuse Leap 15.4. I have created a unit file for the bazel-remote remote cache server, for the Bazel build system. I wanted to use the DynamicUser feature to make the service more secure,...
dieortin's user avatar
  • 111
0 votes
1 answer
748 views

is /etc/sudoers writable or not

The default permission in /etc/sudoers file is readonly for root and group root as in picture is obvious : So when you open it with any test editor it can't be written and give error read only. now ...
Salar's user avatar
  • 174
0 votes
1 answer
104 views

Windows NTFS filesystem - user cannot access file using Administrators group permissions

There is a shared folder on the computer running Windows 2012R2 with a NTFS filesystem. There is a local User X who is part of the local Group Administrators on the computer. The Shared folder is ...
rboy's user avatar
  • 101
2 votes
2 answers
708 views

How should I modify file permissions to accomodate Wordpress

I have been successfully using the method described here: Maintained by a Single User and it has been working well for me. This is my script for all my websites: sudo chown -R WebAdmin /var/www/...
Chiwda's user avatar
  • 125
0 votes
0 answers
1k views

pg_ctl start on Windows gives error: could not open file "global/pg_control": Permission denied

On Windows Server 2022, I am logged in as Administrator and trying to do a pg_ctl start on a Postgresql database that was initially created by user SYSTEM, but get the following error in the cmd ...
Lurch's user avatar
  • 1
0 votes
2 answers
1k views

Incorrect Permissions and Ownership in /etc/nginx/sites-available Folder for Containers

I seem to have encountered an issue with the default permissions and ownership of the containers within my /etc/nginx/sites-available directory. The current permissions and ownership structure appears ...
Sylvester DeMouser's user avatar
0 votes
0 answers
126 views

Dovecot missed permissions to access mail directory

I'm trying to install a new mail server and I think I've done something completly wrong. I don't know how to fix/continue my current situation. I've installed postfix on my Debian 11 system, working ...
lex's user avatar
  • 1
0 votes
1 answer
875 views

SFTP only user can't see files in a directory when that directory has read access to public users

I have a user which I have called username in the below code, in the sshd config file there is this: Match user username ChrootDirectory /media/pi/128db83f-859d-48dc-a784-4337c53c736f/username Match ...
Paul's user avatar
  • 115
0 votes
0 answers
212 views

How to set file permissions if user logged on using Smart Card or Windows Hello for Business

I have a hybrid joined Windows domain and have set up log-on with Smart Cards and Windows Hello for business. I would like to be able to set file server permissions based on whether a user logged on ...
Andy Haer's user avatar
1 vote
1 answer
460 views

No Write Access to WD My Cloud NAS on Ubuntu Linux

I recently purchased a new WD My Cloud and was able to use the FTP app to transfer files from an old machine that was running OMV to the new NAS. I cannot seem to mount the NAS to my Ubuntu laptop ...
Dan Forbes's user avatar
1 vote
0 answers
2k views

What are the proper permissions and ownership (including wp-config.php and .htaccess) for Wordpress installations on a LEMP server

I am running an Ubuntu based Linux/Nginx/MariaDB/PHP (LEMP), server with my Wordpress installation in the root account at /var/www/example.com/. My Wordpress is running as the www-data user, and Nginx ...
DanRan's user avatar
  • 113
0 votes
1 answer
301 views

Unable to List Contents or Create Files in /var/tmp Folder from PHP Executed Bash Script

Objective: I want to trigger a webhook on a private linux-machine (its a local system not connected to internet), which can delete the spool data generated by CUPS server in /var/tmp folder. To ...
Sheikh Muhammed Tadeeb's user avatar
0 votes
1 answer
222 views

NT Security Descriptor

In active directory an object have several permissions on many objects. how to view permissions of particular object? i am asking like for eg user Kavin have read permissions on some folder, full ...
Sandy Santhosh's user avatar
1 vote
0 answers
53 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
-1 votes
1 answer
2k 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
  • 107
0 votes
1 answer
3k 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
827 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
1 answer
833 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
1 answer
2k 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
651 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
972 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
919 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
1k 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
379 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 ...
u936293's user avatar
  • 407
1 vote
0 answers
235 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

1
2 3 4 5
20