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
1
answer
6k
views
User can access to only one directory with scp
I want to create a user for my Ubuntu server. I will use this user to copy some files from server to my local computer. So permissions should be really limited. This user can only reach to /some/path ...
2
votes
2
answers
10k
views
Nginx configuration issues
I'm having a lot of trouble getting my Nginx Website showing up correctly.
I've been getting 404 errors, and now i'm getting a Connection Refused error.
This is my Nginx configuration
user www-data;...
0
votes
1
answer
37
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 ...
0
votes
1
answer
513
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
...
0
votes
1
answer
33
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/...
9
votes
2
answers
20k
views
What should be the right logs permissions for NGINX on CentOS?
on /var/log/nginx/ I have access and error logs. Some are .log errors and others have .gz
I think I messed up with the permissions. Some files are created by root/root, other files are created using ...
2
votes
2
answers
376
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 /...
0
votes
0
answers
42
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 ...
0
votes
1
answer
28
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 ...
1
vote
1
answer
201
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 ...
0
votes
0
answers
232
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 &...
0
votes
2
answers
116
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 ...
0
votes
0
answers
16
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 ...
2
votes
1
answer
1k
views
Downloading EXE From Web Throws 403 Forbidden nginx
I have a file uploaded to our website under a /Downloads folder, which I created. The download link, similar to:
A Sample Download Link
had no issues downloading up until a few weeks ago. I am not ...
26
votes
4
answers
13k
views
OSX mojave: "crontab: tmp/tmp.X: Operation not permitted"
After updating my OSX to Mojave, it seems I am no longer able to edit my crontab. Any attempt to do so results in the error message on the title of this question.
I tracked crontab to /private/var/at ...
0
votes
1
answer
93
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 ...
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 ...
20
votes
5
answers
101k
views
chmod: changing permissions of 'myscript.sh' : Operation not permitted
While running the following docker file I am getting "chmod: changing permissions of '/scripts/entrypoint.sh': Operation not permitted" error.
FROM sonarqube:7.7-community
ADD plugins/* /plugins/
ADD ...
0
votes
0
answers
57
views
Permission problems with uWSGI and Modoboa
I have run a manual installation of Modoboa (https://modoboa.readthedocs.io/en/latest/installation.html#manual-installation), which runs a webapp in uWSGI. I moved the static content to /var/www/html ...
1
vote
3
answers
2k
views
Allow access in home directory for apache but not other users?
I build a website that automatically manages a dedicated server. It does all sorts of things like creating users and apache settings to point to their home directory.
The home directories host game ...
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
61
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 ...
1
vote
0
answers
174
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,...
0
votes
0
answers
305
views
Amazon Linux 2023 AMI Permissions
I'm setting up a new EC2 Instance with AMI Linux 2023. (I'm super new to Linux/AMI). I followed this tutorial on the AWS website: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-...
0
votes
1
answer
219
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 ...
0
votes
2
answers
2k
views
Script to delete many old user profiles from file server?
I have a network share on a Windows Server 2012 machine that is used to store all the user profile files (My Documents, Desktop, etc).
There are hundreds of old users I need to get rid of and I am ...
0
votes
1
answer
66
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 ...
2
votes
1
answer
324
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/...
0
votes
0
answers
692
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 ...
0
votes
2
answers
419
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 ...
0
votes
0
answers
60
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 ...
0
votes
1
answer
392
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 ...
0
votes
0
answers
41
views
Access to SMB folder from LocalService account
this is the situation:
I have a Synology server with file folder normally accessible from the windows domain computers;
I also have onto the primary domain server an application built onto Apache ...
0
votes
0
answers
129
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 ...
1
vote
1
answer
272
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 ...
0
votes
0
answers
30
views
File System Private download method not Writeable -Drupal
Giving File System error that it is not writeable or folder does not exist on Production Env
Drupal version - 9.5.9
Server we are using Amazon Linux2
I have added line in setting.php $settings['...
1
vote
2
answers
8k
views
Windows: How to fix broken permission-inheritance?
On our network-shares, we have all kinds of broken permission-inheritance.
Just one example:
The folder "D:\Shares\PublicRelations" has full access for the groups "PublicRelations" and "HR" (both ...
199
votes
3
answers
202k
views
What does a + mean at the end of the permissions from ls -l?
What is the plus sign at the end of the permissions telling me?
ls -l
total 4
drwxrwxrwx+ 2 benson avahi-autoipd 4096 Jan 27 17:37 docs
Here's the context:
cat /etc/issue
\CentOS release 5.3 (Final)...
1
vote
0
answers
1k
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 ...
0
votes
1
answer
183
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 ...
-1
votes
1
answer
6k
views
Network File Share access across multiple domains under the same forest
My knowledge of Active Directory and network setup is limited. In the environment of this example, there are multiple domains under one forest. It has come up that users of Domain A have access to ...
0
votes
1
answer
127
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 ...
1
vote
0
answers
42
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 ...
-1
votes
1
answer
889
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 ...
0
votes
1
answer
2k
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 ...
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-...
4
votes
2
answers
12k
views
Getting "Received too large SFTP packet" error when connecting with root account to the server via WinSCP
I've tried different ways and read some solutions including these:
Why I am not able to ssh as root?
Editing with Winscp
And an article from Forum of Ubuntu
I don't understand why when I connect ...
4
votes
2
answers
5k
views
Why am I getting this error from Ansible when trying to change the permissions on a file?
I have the following task in a role named tomcat:
- name: copy tomcat file settings
copy:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: tomcat
group: tomcat
mode: "{{ ...
0
votes
1
answer
541
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
...
1
vote
3
answers
4k
views
Windows permission - Deny sub-folder creation but allow files editing
I'm currently trying to setup a folder on a file server (Windows Server 2012 r2) where some users can create and edit files, but not create sub-folders. I assumed it would be easy with advanced ...