New answers tagged permissions
0
votes
I lose permission every day at midnight
If I change permissions to 444, log in to my site, then change the permissions back to 400.
In other words: with permissions 400, your scripts cannot read the file, but with permissions 444, they can,...
0
votes
Can't Change Permission in Mounted Drive
As NTFS is a Windows file system, it does not support Unix permissions. mount plays around this by mounting it with a static "permission mask". You could change that to change the ...
1
vote
Unusual Permission for Directory
/run and /run/user/<$UID> mounts are BOTH in-memory filesystems of type tmpfs, so you're right that it's not a "real" (read: persistent-storage-backed) directory.
/run/user/<$UID>...
0
votes
Accepted
I lose permission every day at midnight
This should be a comment - but space is limited there and so is formatting.
You've not really provided a good explanation of the situation.
You've said you "lose permissions" and how you ...
0
votes
Why .profile and .bash_profile have non-owner R permissions?
First, the default profile files do not contain passwords and typically the information in these files is not sensitive, and it is rare for sensitive information to go in them and they typically don't ...
-1
votes
Why .profile and .bash_profile have non-owner R permissions?
That is wrong; they shouldn't be readable. They could contain sensitive information like environment variable definitions with API keys and whatnot.
In the TXR Language, I did something about this. If ...
0
votes
Is there any way to prevent deletion of certain files from user owned directory?
You asked about Linux specifically, but just for the benefit of other readers of these questions, BSD and macOS have chflags which can also be used to completely protect the files (and not just from ...
3
votes
sudo rm -rf /* is not working
You're trying to remove all files and directories from the system.
This includes /proc and /sys, which are virtual filesystems provided by the kernel and contain files that cannot be deleted.
As an ...
0
votes
How to set up directory to allow user to create files with 755 permissions
From the comments, you are asking for regular files to automatically get execute permissions, and that is the hard part.
When a file is being opened for writing, using the system calls of open(2)/...
1
vote
Accepted
sshd: Authentication refused: bad ownership or modes for directory /data
You should set /data and its subdirectories to be owned by root with permissions 0755 (rwxr-xr-x). Alternately, you can disable this permissions check by setting StrictModes to "no" in the ...
16
votes
Regular user is able to modify a file owned by root
vim cannot modify the file, but if it has write access to the directory that file is linked to and either you own that directory or the t bit in its permissions is not set, then it can delete it and ...
45
votes
Accepted
Regular user is able to modify a file owned by root
This is happening because of two things:
vim (at least in this case) and sed, when doing in place editing, actually delete the original file and then create a new one with the same name.
the ability ...
0
votes
** ERROR ** trying to launch openvpn3 : Failed preparing proxy: Failed to execute program net.openvpn.v3.sessions: Permission denied
The usual reason for getting permission denied as root is that the apparmor subsystem is enabled and is restricting the program in question from accessing files in particular places.
A second but ...
0
votes
1
vote
Delete all files without user permissions
Disclaimer: I'm the current author of rawhide (rh) (see https://github.com/raforg/rawhide)
With rawhide (rh) you can do:
rh -UUU data 'f && !ur && !uw && !ux'
-UUU unlinks/...
0
votes
Accepted
How to give Transmission permissions to write on external HD on Raspbian Raspberry Pi media server?
1. You should confirm that you have the packages installed that are needed to handle EXFAT file systems:
$ sudo apt update
...
$ sudo apt install exfat-fuse exfat-utils
If they're already installed, ...
0
votes
How to give Transmission permissions to write on external HD on Raspbian Raspberry Pi media server?
Apparently both the kernel and fuse exfat drivers use uid/gid for setting the transient ownership and umask/fmask/dmask for setting the transient permission of the content of the mount (including the &...
2
votes
Accepted
sticky bit on files and directories
This is a case of RTFM
From man 1 chmod:
Restricted Deletion Flag or Sticky Bit The restricted deletion flag
or sticky bit is a single bit, whose interpretation depends on the
file type. For ...
1
vote
sticky bit on files and directories
For executable files, this is the resident bit. It can be set by the administrator to tell the OS to keep the program code in swap space even if it is not running at the moment.
Modern Operating ...
0
votes
Error: could not open `user_jvm_args.txt`
As it turns out, by adding a user, group, and working directory, it allowed me to start it no problem!
Top 50 recent answers are included
Related Tags
permissions × 4448linux × 822
files × 452
chmod × 349
users × 262
sudo × 256
ubuntu × 242
acl × 228
group × 207
directory × 194
filesystems × 190
mount × 182
root × 178
security × 166
debian × 163
centos × 157
ssh × 133
bash × 125
apache-httpd × 124
samba × 118
chown × 107
umask × 99
shell-script × 91
nfs × 89
rsync × 86