New answers tagged

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,...
telcoM's user avatar
  • 90.5k
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 ...
Savchenko Dmitriy's user avatar
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>...
amphetamachine's user avatar
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 ...
symcbean's user avatar
  • 5,203
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 ...
user10489's user avatar
  • 6,223
-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 ...
Kaz's user avatar
  • 7,894
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 ...
Mattie's user avatar
  • 105
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 ...
Chris Davies's user avatar
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)/...
telcoM's user avatar
  • 90.5k
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 ...
Kenster's user avatar
  • 3,350
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 ...
Stéphane Chazelas's user avatar
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 ...
terdon's user avatar
  • 238k
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 ...
rivimey's user avatar
  • 216
0 votes

Delete all files without user permissions

With zsh: rm -- data/**/*(D.^rwx)
Stéphane Chazelas's user avatar
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/...
raf's user avatar
  • 161
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, ...
Seamus's user avatar
  • 2,765
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 &...
Tom Yan's user avatar
  • 701
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 ...
waltinator's user avatar
  • 4,709
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 ...
Jörg W Mittag's user avatar
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!
EChumley1310's user avatar

Top 50 recent answers are included