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.
4,593 questions
0 votes
0 answers
39 views
Why does `chmod 640` prevent group read access on macos?
I'm a student learning UNIX permissions and scripting on macOS. I created a short script that makes a file and applies chmod 640. However, a user in the same group cannot read the file. Here is the ...
1 vote
1 answer
42 views
Permission denied with crontab -e program
I would like to run a custom script on startup. I added the script to my root crontab via sudo crontab -e and adding @reboot /path/to/my_custom_script.sh to the end. I made sure my_custom_script.sh ...
0 votes
2 answers
28 views
Unbind/re-bind usb device via systemctl service running as user (with a custom group)
Basically, without giving the user any new permissions, I am looking to be able to write to /sys/bus/usb/drivers/usb/unbind and /sys/bus/usb/drivers/usb/bind via a systemd service running as the ...
3 votes
2 answers
483 views
Scheduling file permission changes
I'm new with Linux and I worked on permissions recently. I'd like to find out if it is possible to schedule permission changes and how can it be done? I mean if I want to give say a group, access to ...
0 votes
0 answers
43 views
User can't execute a shell script based on shebang but ok when interpreter directly invoked [duplicate]
Context I have a system user caddy and a shell script placed under /run/caddy/caddy-cert-obtained-wrapper.sh. /run and /run/caddy are owned by root:root with permissions 0755. caddy-cert-obtained-...
1 vote
1 answer
48 views
Killing a process with ruser root and euser user
I'm learning linux permissions and confused about the permissions for killing a process. First, from kill(2) manpage: For a process to have permission to send a signal it must either be privileged (...
4 votes
2 answers
287 views
Permissions required to use machine transport with systemctl
I'm trying to set up some tasks and services on my machine across different users. One task is to run regular backups using restic with a regular user restic. While I can skip file permission checks ...
2 votes
1 answer
196 views
How to allow rsync via ssh to a specific directory only
I want to allow moving files to a specific directory on my server using rsync + ssh. However, I don't want to fully trust the users using that SSH user. One solution I found is to set the shell of the ...