Questions tagged [permissions]

Permissions are the Unix way of controlling access to resources such as files, directories and devices and may be specified for an owner, group, or all users.

Filter by
Sorted by
Tagged with
1 vote
0 answers
29 views

Is there an alternative way to Install MySQL that uses a custom config other than using make?

I just downloaded a complete game source code and intend to build a webserver on my CentOS 7. However, there are so many libraries needed, and one of the required steps is to install MySQL in a custom ...
flix's user avatar
  • 137
-2 votes
0 answers
33 views

MySQL install using cMake get permission denied even though the owner of dir is mysql

I have a CentOS 7.0 and I'm trying to install mysql mysql-5.6.21 through cmake using this script cmake -DCMAKE_INSTALL_PREFIX=/data/local/tool/mysql-5.6.21 \ -DMYSQL_DATADIR=/data/local/tool/mysql-5.6....
flix's user avatar
  • 137
0 votes
1 answer
30 views

CentOS Directory is losing its 'x' executable flag when I move a file making the contents inaccessible

TL;DR: When I move a file from one folder to another, the destination folder loses its executable property making it and its contents inaccessible [Originally posted on Stack Overflow but reposted to ...
TomBertie's user avatar
2 votes
1 answer
47 views

chown cannot dereference, Permission denied

Given, touch /tmp/abc ln -vs abc /tmp/def $ ls -l /tmp/??? -rw-rw-r-- 1 ubuntu ubuntu 0 Apr 10 22:10 /tmp/abc lrwxrwxrwx 1 ubuntu ubuntu 3 Apr 10 22:10 /tmp/def -> abc Why I'm getting: $ sudo ...
xpt's user avatar
  • 1,560
0 votes
2 answers
28 views

Set different permissions for the user and for the java application

I am writing a graphical java (javaFX) application which is a kind of shell over the operating system. I am currently using Java 8 (JDK corretto 8.402), Debian 12 and Xfce. The problem is that my Java ...
Pablo Casil's user avatar
0 votes
0 answers
23 views

How to set up 'git push remote master' to automatically update files on production web server?

I have my website running on a remote server with gunicorn/nginx. The nginx runs from /var/www directory and its owned by root:www-data drwxrwxr-x 5 root www-data 4096 Apr 8 17:32 www I also ...
user1933205's user avatar
0 votes
1 answer
61 views

Which permission is not too open but not too obscured?

Let me explain you the problem: We need a rsfile.key. mkdir keys openssl rand -base64 768 > rsfile.key rskey.file permissions has to be not too open, if it is too open, MongoDB will not launch. We ...
Caner - sagopanin sag kolu's user avatar
0 votes
1 answer
76 views

Can you tell me why rsync is saying my files are different

I'm using rsync to sync files from my NAS to a Remote Server. The files on the Remote Server appear to have the same user, group and permissions as the source. However rsync wants to copy the files ...
ghines's user avatar
  • 13
1 vote
0 answers
15 views

File access permissions: Running app under PM2 gives EACCES denied for a file my app needs

I have an Ubuntu 22.04 environment. I have a NodeJS app that is running a webserver and needs access to the certificates to enable HTTPS. When I run the app under pm2 (user: brad), I receive a EACCES: ...
Brad's user avatar
  • 11
0 votes
0 answers
40 views

What caused USER to have "root" as OWNER and GROUP instead of the user's name? How do I change it?

/home (machine 1) PERMISSION | OCTAL | OWNER GROUP NAME drwxr-xr-x | 755 | root root . drwxr-xr-x | 755 | root root .. drwxr-xr-x | ...
SystemTheory's user avatar
4 votes
1 answer
94 views

When (and how) are file permission/access decisions made in kernel space?

(I think) I have a relatively good understanding of how Linux permissions work - traditional Unix DAC permissions, and how they're represented, security context in relation to processes (i.e. cred ...
genericuser99's user avatar
0 votes
0 answers
46 views

Problem with permissions when supervisor used in php docker image

I am building my app using official php docker image. Case 1: When I run supervisord with root user and subprocess php-fpm with www-data user. I always get this error log: FPM initialization failed ...
Hải Phạm's user avatar
-1 votes
0 answers
18 views

Not able to perform SFTP to another target server with same public key

I am trying to test the sftp connection to two target linux servers from the same USS source server. I had generated the public/private key pair in the source side and copied the public key to one ...
Brindha Sharadha's user avatar
0 votes
1 answer
38 views

how to configure sudo to allow certain parameter

In particular I want to allow the following command without password: sudo cfgutil --ecid "${Device_ECID}" install-application "${in_File_Name}" With Device_ECID and in_File_Name ...
Martin's user avatar
  • 113
0 votes
0 answers
19 views

elasticsearch cannot read certificate file - linux file permissions

I generated a certificate file with certbot. It is placed in /etc/letsencrypt/.... I created a group called elk where I added the elasticsearch user, and I recursively set it as the owning group for /...
Vivere's user avatar
  • 203
1 vote
0 answers
45 views

How was the formula for calculating umask derived?

When using umask, I know that to get the resulting permission, the mask is first NOTed and then it is ANDed with the default permission (777 or 666). Now my question is, how was this formula derived? ...
JLC's user avatar
  • 317
0 votes
0 answers
34 views

copy file owned by another user to my account

I have two accounts, dnc1 and dnc2, both are not root accounts. I want to login dnc1 account and copy a file owned dnc2 to dnc1 directory. The file mode is 644 and the folder containing it is 755. So ...
alancc's user avatar
  • 213
0 votes
0 answers
19 views

"Failed to set ISR" on Raspberry PI 4

I'm trying to execute a compiled software on a Raspberry PI 4. When I execute it, I see this error message: Failed to set ISR : No such file or directory Has anyone come across this message? I did ...
Lee Changwoo's user avatar
-1 votes
1 answer
44 views

Handling permission error properly in a script

I have a script that does the installation of several modules based on a JSON file describing all the modules. Looping on each module, I call its install script. # Create install log destination ...
Guillaume Bois's user avatar
3 votes
1 answer
234 views

Why does chown reset/remove the SUID bit and reset capabilities?

This command: sudo chown -R root:root directory will remove the SUID bit and reset all capabilities for files. I wonder why it's done silently and it's not mentioned in the man page. Weirdly the GUID ...
Artem S. Tashkinov's user avatar
1 vote
1 answer
44 views

Permission denied when opening a file in gdb

I'm implementing some CTF challenges. The flags are in some text files, that get read from the programs. To protect the flags I have changed the owner of the files, but have set the setuid to the ...
r3k0j's user avatar
  • 15
0 votes
0 answers
22 views

Custom home directory leads to permission error when logging in with "su -l"

When I create a user with a different home directory on a Linux system like this: # useradd "svcjohn" -U -r -m -d "/var/lib/svcjohn" I get an error like this: # su -l svcjohn ...
Ichigo Kurosaki's user avatar
0 votes
1 answer
61 views

How to programmatically determine whether superuser elevation is necessary to invoke code?

When providing code to another, it appears to be good practice to remove all elevation-specific code — that is, provide apt update rather than sudo apt update (or su -c 'apt update'). However, this ...
RokeJulianLockhart's user avatar
0 votes
0 answers
20 views

Umask questions in mount [duplicate]

I have a question regarding 'umask.' I have an extra disk on my Linux system, and I want it to mount during startup with the same permissions as '/home.' For example, my '/home' has these permissions: ...
Josué Suptitz's user avatar
1 vote
0 answers
28 views

Difference between non-executable directory with and without write

Is there a difference between a directory that is not writable (and not executable) and one that is writable (but still not executable)? It seems to me that they are equivalent, because creating/...
CarmenCarmen's user avatar
0 votes
0 answers
11 views

fedora - login to cockpit web gui using ldap credentials

Fedora 39 server configured to allow ldap users to login if they are member of a specific ldap group. The same ldap group is in the sudoers file, so after login users can sudo (set to allow sudo ...
robydago's user avatar
0 votes
1 answer
42 views

can't get permissions for debug folder with a custom program

I am running a program on kali Linux. The program uses Openssl and some other networking libraries. When I try to run the program I get the output below: Failed to open /sys/kernel/debug/ieee80211/...
umarkaa's user avatar
1 vote
1 answer
74 views

How to run a command/program using system account in Linux

My goal is to run LDAP search and get a password for a gMSA account. I have an Ubuntu VM which is Dev_Linux. My user account is sja. I want to run LDAP search using the Dev_Linux account. I refer to ...
sachyy's user avatar
  • 111
0 votes
1 answer
49 views

Permission Issue - Granting access to copy files with root ownership

I have several files that are owned by root that I want to backup, using another user. I do not want to give this user access to all of root, just these particular directories and files. Like /etc/...
sroth79's user avatar
0 votes
0 answers
31 views

SUID not running as file owner [duplicate]

I'm trying to check how the SUID works, and I have created a binary with the shc compiler from this script: #!/bin/bash echo "I'm the script" sleep 5 cat /srv/test/secret The binary is ...
franlol's user avatar
0 votes
0 answers
30 views

Linux recursive permission inheritance

I am wanting to allow file/folder permission inheritance. On my machine, I want some directories to belong to some user/group. This is achieved by running: sudo chown my_user:my_group my_directory. A ...
clank's user avatar
  • 1
0 votes
1 answer
77 views

Cannot write into `/sys/power/mem_sleep` in debian

When using sudo tee or sudoedit, I am getting an Invalid argument error. sudoedit: unable to write to /sys/power/mem_sleep: Invalid argument sudoedit: contents of edit session left in /var/tmp/...
Joce's user avatar
  • 192
1 vote
1 answer
54 views

Changing permissions of a symbolic link (exercise from school) [duplicate]

My school asks me to create files and directories in such a way that the ls -l output looks like that (XX are not taken into account): I've done everything right, except for the symbolic link at the ...
Shoopi's user avatar
  • 31
0 votes
0 answers
21 views

Controlling `install` permission for automatically created directories?

is it possible to create directories when the same permissions using install? for example $ ls -la /srv drwxr-xr-x 1 root root 202 2024-02-01 15:07 . drwxr-xr-x 1 root root 226 2024-02-01 15:12 .. $ ...
gcb's user avatar
  • 400
-1 votes
2 answers
133 views

Unexplained mv permission denied for directory with ACL

I have a folder A inside a folder B, which is in turn in a folder C (all on the same file system). I want to mv A from B to C, but I get a permission denied error. I can mv A within B (i.e. rename A) ...
swami's user avatar
  • 205
1 vote
3 answers
92 views

is there a way to allow only a single proccess to delete a file?

Is there a way to allow only a single main process to delete an original file? Other processes may read and modify it, but not delete. I know a process can empty its contents but there is no problem ...
VeganEye's user avatar
0 votes
1 answer
41 views

Systemd executable failed to read file from CacheDirectory with Permission Denied

I have a Golang binary that runs every 5 mins. It is supposed to create & update a text file which needs to be write restricted. To run this binary I created a systemd service and a systemd timer ...
Korba's user avatar
  • 103
0 votes
0 answers
39 views

Understanding group permissions - can't cd into a folder owner by group that I am member of

Can someone please explain to me why I am unable to cd into the folder 2024 in this screenshot (the OS is truenas scale): the folder I am in has a folder called 2024 that is owned by another user - ...
Roaders's user avatar
  • 139
0 votes
1 answer
81 views

Mount samba share so it's owned by root and users of a group can read/write

I'm trying to mount a samba share ho that it is owned by root and users of a group called smbshare can access it, read and write files in it. I tried putting this in my /etc/fstab: //fs/myshare /media/...
neurino's user avatar
  • 1,819
0 votes
0 answers
34 views

Permission denied for user creating folders in /opt/company/product folder that is owned by the user [duplicate]

My company sells software that installs into /opt/company/product and creates a system user to run the services. The postinst routine uses chown on the product folder. This is a manual test I did (...
Apollo's user avatar
  • 101
0 votes
1 answer
49 views

Why is the sticky bit mentioned twice in chmod but only once in the ls output?

My task was to configure a directory so that users in a group could only delete files they own. I used chmod 1771 RandD, as suggested by lab instructions, to accomplish this. When running ls -l, the ...
user avatar
0 votes
2 answers
85 views

Crontab doesn't open for user

When I am trying to open crontab I see the next output: ubuntu@macaroon:~$ crontab -l crontabs/ubuntu/: fopen: Permission denied When I add sudo it opens fine however, if the jobs don't work there: ...
catch23's user avatar
  • 221
0 votes
1 answer
63 views

SQLite3 randomly changes file permissions and owner

I use sqlite3 for a PHP app. The functions I use are from the Sqlite3 package built in to PHP. I do not normal CRUD actions, including restarting the DB for testing. This includes dropping tables and ...
Vinn's user avatar
  • 166
3 votes
4 answers
259 views

Is traversing a Linux filesystem faster as root

When traversing a filesystem with large numbers of files, is it quicker to do so as root compared to any other user? For example, if there are several million files under /data, and /data is owned by ...
squidpickles's user avatar
0 votes
1 answer
47 views

Can't the user which is executing the program access the not permissible files if the SETUID is set? [duplicate]

I have two users first being ace and the second being ej ace has a file in its home directory, which is a shell script, with the following permission set ( setuid i have used ) -rwsr--r-x 1 ace ace 15 ...
Yanjan. Kaf.'s user avatar
0 votes
1 answer
39 views

NFS3 permissions issue for only some system users

My nfs share is mounted in an ubuntu 22 VM, root, ubuntu and a test user I created can all read/write. However the plex user created by the plex install cannot read or write. When I sudo su plex and ...
aegon52's user avatar
7 votes
3 answers
2k views

Is noexec a standard setting for home?

I have been told that noexec is a standard setting for /home folder for development environments. Can someone provide some references? Using noexec on /home prevents applications like IDEs, editors, ...
user1221647's user avatar
0 votes
1 answer
75 views

How to share user permission across different servers and NFS folders?

I have a 3 different servers running Ubuntu 20. One of them is configured as the NFS host, and the other two as clients. The clients can mount the NFS shared folders and can write content on it sudo ...
Javi M's user avatar
  • 13
1 vote
2 answers
150 views

Create new user with home directory inside another user's existing home directory -- both users must own the sub-directory

Here's my situation: I have a user storageUser with a home directory of /storage storageUser owns /storage with full (RWE) rights Within /storage I have a directory media I'd like to create a new ...
Omaro_IB's user avatar
  • 113
1 vote
0 answers
29 views

permission denied even as root [duplicate]

❯ ./my-project zsh: permission denied: ./my-project I just make a partition out of my hard drive (not the same drive with root) with type ext4 so i think it should be fine using it on my linux. # /...
Mohammad Alimul's user avatar

1
2 3 4 5
90