Skip to main content
The 2024 Developer Survey results are live! See the results

New answers tagged

0 votes

NFS permission for other - operation not permitted

You're using NFSv4, and your server and client are using different NFS domain settings, and/or you are using a distribution that has NFSv4 idmapping enabled by default when using the default sec=sys ...
telcoM's user avatar
  • 101k
0 votes

Cannot change file permission of "/usr/bin/nvidia-smi" via "chattr"

The combination of immutable and append-only attributes seems odd: I don't know why you would ever need to set both at the same time. Apparently there are rootkits that replace nvidia-smi. This might ...
telcoM's user avatar
  • 101k
0 votes

Cannot change file permission of "/usr/bin/nvidia-smi" via "chattr"

Try to resolve the conflict manually: $ sudo dpkg -i --force-overwrite /var/cuda-repo-ubuntu2004-11-7-local/./nvidia-utils-515_515.43.04-0ubuntu1_amd64.deb and then run $ sudo apt --fix-broken ...
linuxxoid's user avatar
  • 111
0 votes

How can I get neovim to load my init.vim file when in sudo mode?

Set on your .zshrc, .profile or any file to set environments. export SUDO_EDITOR=nvim Restart sesion and use for example to edit pacman.conf file sudoedit /etc/pacman.conf and ready!
Leonardo Henao's user avatar
0 votes

Why is the group permissions rwx for folder but read for newly created files within it?

In RHEL/Rocky 8.x, all system services have been changed from SysVinit scripts to systemd unit files, so changing the umask of httpd requires creating an override file for httpd.service: Step 1: run ...
telcoM's user avatar
  • 101k
-1 votes

shutdown without password using doas

The doas devs do not believe in allowing specific programs. usually the specific program lines are just to enable PATH or some other env var. That's why they didn't bother implementing filter for ...
gcb's user avatar
  • 428
1 vote

Why is the group permissions rwx for folder but read for newly created files within it?

SETGID bit -- set-group-ID bit -- as the name says keeps the group id, not permissions. Change the apache umask to have proper permissions.
Adam's user avatar
  • 111
0 votes

Ubuntu 20.04 upload folder permissions

The correct permissions for web server (i.e. Apache or Nginx) is like that for folders the permission should be 755, and for files 644, 755 folders will be shown as drwxr-x-r-x and 644 files will be ...
Amirreza's user avatar
  • 168
0 votes

How to check if a user can access a given file?

To check for a specific user, you can try the below. sudo -u username namei path /long/path/to/file.txt It will give you output as below if the user has access to the file. f: /long/path/to/file.txt ...
rainu's user avatar
  • 101
0 votes

MySQL binlogs on cifs share getting OS errno 13 - Permission denied

Turning off SeLinux is not a solution for a server. On new server builds where you know the application(s) installed are rusted you can baseline it with SELinux like so: # Install necessary packages ...
Michael Zietlow's user avatar
0 votes

MySQL binlogs on cifs share getting OS errno 13 - Permission denied

The problem was SELinux. I reviewed the log here in /var/log/messages. I tested with sudo setenforce 0 #Switch SELinux to permissive mode. Then I shut off SELinux. In /etc/sysconfig/selinux, ...
SMich's user avatar
  • 1
0 votes

Chroot: Write access to an SFTP directory by non-root users?

Should the SFTP user be allowed to modify the price lists? If not, change the owner of the ./in directories to daisy: for sftpuser in user1 user2 user3 … do chown daisy "$sftpdir/$sftpuser/...
G-Man Says 'Reinstate Monica''s user avatar
0 votes
Accepted

how to make Nginx use home directory as root

I was using fpm but my configuration didn't include it, so I changed my sites-available/default to this: location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass ...
Amirreza's user avatar
  • 168
1 vote

Why do some of the directories in `/run/systemd/` have permissions 600?

If I understand correctly, the purpose of /run/systemd/propagate/* directories is to act as mount points for dynamic bind mounts, for services running in their own mount namespaces. This explains why ...
telcoM's user avatar
  • 101k

Top 50 recent answers are included