Questions tagged [chown]
All about changing ownership of files.
291 questions
0 votes
2 answers
99 views
Change the ownership of files in an external harddrive ntfs
ls -al /media/victor/Backup/ Output: insgesamt 25 drwxrwxrwx 1 root root 12288 19. Aug 13:49 . drwxr-x---+ 3 root root 4096 19. Aug 12:27 .. drwxrwxrwx 1 root root 0 19. Aug 10:43 DATA -...
0 votes
0 answers
110 views
How can I set chown and chmod permanently, also for new files?
I installed texlive as usual in /usr/local/texlive/2025. When installing I typed umask 0027 prior to each command (./configure, make...), hoping that the resulting files would have root as owner and ...
0 votes
1 answer
97 views
user unable to write to media | Permission denied
I am having a problem utilizing a mounted drive on my Raspberry Pi 2B running Diet Pi. dietpi@DietPi:/media/dietpi/Other$ sudo chmod 666 -R /media/dietpi dietpi@DietPi:/media/dietpi/Other$ touch text....
0 votes
1 answer
125 views
What does `sudo chmod -R a=,a+rX,u+w,g+w /data` do?
What does the following command do? sudo chmod -R a=,a+rX,u+w,g+w /data I understand that it changes permissions, but what exactly and how?
0 votes
1 answer
345 views
Have drwxrwxrwx permissions on folder, but after mounting to it it becomes drwxr-xr-x which disalows members of the group to write. How do I fix it?
I have a folder under /mnt/ with drwxrwxrwx permissions and under root:root I then mount a USB drive (exFAT) to this folder and it becomes drwxr-xr-x The issue is that now I cannot scp to that folder ...
5 votes
1 answer
704 views
Root couldn't write to file with rw permissions for all users and owned by other user
I have script that can be runned from different users on the same machine. This script should write logs to the same file on every run. Minimal version of script: #!/usr/bin/env bash ...
3 votes
1 answer
964 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 ...
0 votes
0 answers
40 views
Set group and mod of a new directory
I try to set for NEW created files/directories in /home/test: group to "test" right to "770" This works for the group (1). chown :test /home/test chmod g+s /home/test But I do ...