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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

texlive update - Command to update directory owned by other user fails to chdir

I've installed Tex Live manually. To update, some documentation recommended assigning the install directory to a user (tex), then updating using the following command: alias update-tex='sudo -u tex -E ...
M3GAprincess's user avatar
0 votes
0 answers
22 views

Can't start TOR as a daemon on FreeBSD

I'm trying to understand why TOR does not start as a service on my FreeBSD 13.2. This is the error message that I see during the boot : [notice] Tor 0.4.8.9 running on FreeBSD with Libevent 2.1.12- ...
Marietto's user avatar
  • 501
0 votes
0 answers
17 views

User root while Group is root but Changing Ownership from /dev/ Ultimately

Okay...so I have used chown and chmod as directed by many tutorials to access some /dev/ files for peripherals. The chown and chmod does not make it past a reboot. This is okay. The issue I am seeing ...
For Ward's user avatar
0 votes
2 answers
33 views

File Permission of a User with No Additional Groups

Using a Rocky Linux server, I created a user using the following command, sudo adduser foobar and user foobar is now a member of group foobar. We can confirm with the following. foobar$ id uid=1111(...
Sekots Reivan's user avatar
0 votes
1 answer
20 views

Can't Change Permission in Mounted Drive

Hello im new using Ubuntu. I try to change permission from directory in mounted drive but always back to root or user while run command 'chmod'. i already try this command : sudo mount -t ntfs -o ...
Dans988's user avatar
-1 votes
0 answers
37 views

Creating login access to for system-user (for www-data)

How can I create login access to system user www-data? So to be able to login using ssh right away into www-data system user?
Руслан Пилипюк's user avatar
0 votes
1 answer
25 views

Unusual Permission for Directory

I am using Fedora as shown below: [root@PANTRY 1000]# os Linux 6.5.12-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Nov 20 22:12:09 UTC 2023 unknown [root@PANTRY 1000]# I have a sub directory that is ...
robertdaleweir's user avatar
0 votes
2 answers
89 views

I lose permission every day at midnight

I require a file at the top of my PHP scripts. The file just has connection object for MySQL: $c->new mysqli('host','usr','pass','db') The file has 400 permission: -r-------- and I keep it in /etc/...
bungee1980's user avatar
0 votes
0 answers
14 views

Permission Denied error when I try to open the image file stored on the ZFS disk accessed through sshfs from another machine

I would like to boot the FreeBSD 13.2 image file using Libvirt + virt-manager. I have stored the image on the external hard drive,"formatted" with ZFS while I'm using Devuan 5 installed on ...
Marietto's user avatar
  • 501
0 votes
2 answers
60 views

Why .profile and .bash_profile have non-owner R permissions?

On the Linux systems I've seen the files .profile and .bash_profile in ~ have permissions -rw-r--r--. People seem to put various env vars into these files quite often, including smth like AWS keys, ...
Anton K's user avatar
  • 199
-1 votes
1 answer
51 views

sudo rm -rf /* is not working [duplicate]

Using an online Arch-linux emulator, I ran sudo rm -rf /* and this is what I got: root@localhost:~# sudo rm -rf /* _(blicking) And I got a lot of "rm: operation not permitted" The question ...
lk050807's user avatar
0 votes
0 answers
34 views

unix permissions (and repercussions with smb shares)

I have a NAS on which years ago (I was using a Linux box at the time) I copied some files mounting it as a NFS share. Years later... few days ago, I tried to access to the same files/folders from a ...
alberto4986548376's user avatar
2 votes
0 answers
75 views

Debian upgrade and xf86EnableIO: failed to enable I/O ports (Operation not permitted)

Same symptom as "xf86EnableIO: failed to enable I/O ports 0000-03ff (Operation not permitted)", which solution was: Looks like a lot of people are having similar issues today. In my case, ...
xpt's user avatar
  • 1,366
21 votes
2 answers
3k views

Regular user is able to modify a file owned by root

If the file is a plain text file created by root with: echo 'foo' > ./file.txt Your ls -l is: -rw-r--r-- root root ./file.txt But as a regular user, I can change this with vim saving with :w! or ...
rhuanpk's user avatar
  • 385
2 votes
1 answer
64 views

sshd: Authentication refused: bad ownership or modes for directory /data

I'm trying ssh-ing into a rooted Android phone, but it gives me an error Permission denied (publickey)., and the log says Authentication refused: bad ownership or modes for directory, despite of the ...
丶 Limeー来夢 丶's user avatar
0 votes
0 answers
71 views

I get permission denied for a command in an sh script, but same command works from terminal

I have a service run by systemctl in RedHat 8.8. The service itself is relatively simple: cat /etc/systemd/system/myservice.service [Unit] Description=My service After=network-online.target [Service]...
Gábor Major's user avatar
0 votes
1 answer
51 views

** ERROR ** trying to launch openvpn3 : Failed preparing proxy: Failed to execute program net.openvpn.v3.sessions: Permission denied

I cannot figure out how it's possible that I'm getting "permission denied" as root (and as a normal user) when I launch openvpn3 on Ubuntu 23.10 : $ openvpn3 session-start --dco true --...
Marietto's user avatar
  • 501
0 votes
0 answers
36 views

nslcd.conf permission problem

I have a fresh AlmaLinux 8.8 installation where I have installed the nss-pam-ldap package. When I try to restart the nslcd service it fails: # systemctl restart nslcd.service Job for nslcd.service ...
Simon T.'s user avatar
0 votes
0 answers
23 views

What is causing permission denied under proot?

At work I have limited access to my PC, so I am running proot with /nix mounted to give me access to nix package manager. However, executing some setuid commands fails under proot. $ proot /usr/bin/...
KamilCuk's user avatar
  • 860
1 vote
0 answers
61 views

Cant Get Container To Mount Volume With Standard User

I can't seem to get containers (running podman) to be able to write to directories when running a standard user. This solution also did not work. To be clear I can read files from these directories, I ...
The Floating Brain's user avatar
0 votes
2 answers
76 views

sticky bit on files and directories

I've always heard that sticky bit should be only used with directories, and I understand that, but what is the meaning if it is applied to a file. If I set the sticky bit to a file and do an ls -la I ...
std124_lf's user avatar
1 vote
2 answers
97 views

How to give Transmission permissions to write on external HD on Raspbian Raspberry Pi media server?

I've installed Transmission on my Raspberry Pi with Raspbian on. Want to download torrents (legally of course) to an external hard drive. Permission is denied. root is owner and group for the drive I'...
Fredrik Gadd's user avatar
0 votes
1 answer
168 views

Error: could not open `user_jvm_args.txt`

This is my first time making a bash script into a service and I'm running into an error where the service fails because it can't open a text file that is used for java arguments (user_jvm_args.txt). I ...
EChumley1310's user avatar
0 votes
0 answers
13 views

chmod alternative working on ancestor paths? use case: g+x on all ancestors of a directory

There are some cases, where you might want to provide, e.g., "+x" permission to a group or others on a deep directory. It may not be overly complicated to apply this to every ancestor ...
AlexK973's user avatar
  • 101
0 votes
1 answer
48 views

Linux revert revoked permissions

I'm a sudo user on Ubuntu VM and I tried to give access to the other people with all of their permissions revoked (they just need the connection to the Postgres database). I typed in: sudo chmod 750 / ...
redbaron's user avatar
2 votes
0 answers
46 views

Cannot write to /dev/fb0 in systemd-nspawn container

I've created a systemd-nspawn container in which /dev/fb1 from the host is bound as /dev/fb0. I've set PrivateUsers=off in the .nspawn config file, and the file ownership and permissions of /dev/fb0 ...
Clydog's user avatar
  • 31
6 votes
2 answers
2k views

Why should I use `sudo` with the `passwd` command to change the password of another user?

If you look at the permission set of the passwd command, you will see this: user@apple:~$ ls -l /bin/passwd -rwsr-xr-x 1 root root 59976 Nov 24 2022 /bin/passwd /bin/passwd has the SUID bit set and ...
grassy's user avatar
  • 71
0 votes
1 answer
38 views

Why sudo -u not working for folder that is owned by the user [duplicate]

Considering there is hierarchy of directory in a mounted drive |-ssd-drive |-main |-sub Following are access of folder main, sub drwxrwxrwx. 12 poweruser devgroup 4096 Oct 26 18:45 main ...
Dreamer's user avatar
  • 105
0 votes
0 answers
14 views

NFS dir permissions changed not visible

I have an nfs storage mounted at /mnt/data. This is mounted across several VMs in the same mountpoint. I changed the permissions of the dir from 775 to 770. The change is visible only in one VM. I did ...
pkaramol's user avatar
  • 2,689
0 votes
0 answers
54 views

Unable to write to a file/give write permission to a file

For some reason even when I logged in as root and using "sudo su", I can't write the file of "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor". Error writing lock file ./....
james's user avatar
  • 1
2 votes
1 answer
83 views

Problems with primary group (gid), secondary group and permissions

I hope my question is not repeated, as I have been searching the Internet for several days with different keywords and I can't find the solution to my problem with the permissions. I have a shared ...
Jokte's user avatar
  • 21
0 votes
0 answers
43 views

Non-root access to a wifi adapter via ioctl in Linux app - how to grant?

I'm trying to debug a Qt5 c app in Ubuntu 20.04 on Odroid board. The app communicates with wifi adapter via ioctl(), eg: int fd = iw_sockets_open(); struct ifreq ifreq; //ifreq.ifr_name holds "...
wowa's user avatar
  • 1
0 votes
0 answers
36 views

Sudo permission denied [duplicate]

Fresh Debian 12 installation. Added new user at install "administrator". Apparently sudo is not installed by default so I added sudo: su - apt install sudo -y I then added the administrator ...
Atomiklan's user avatar
  • 231
0 votes
0 answers
51 views

Remove write permission but keep delete permission

This is an odd one, a file in my server is written to once every boot by one of the services in it. I found out that another process (that I have no control of) keeps changing the contents, so I made ...
user2384330's user avatar
0 votes
2 answers
60 views

Is it possible to protect a directory from being deleted without it making read-only?

There are some directories that I want to have edit access to, but I don't want to accidentally rm it. I have accidentally ran rm -rf * in the wrong directories before and want to safe proof against ...
roulette01's user avatar
4 votes
4 answers
1k views

Delete all files without user permissions

I have a prompt that asks me to delete all the files in a directory that the owner (u) can't r, w, nor x, in one command. I tried this command: find data -type f ! -perm -u=rwx -exec rm -f {} \; ... ...
cow's user avatar
  • 81
0 votes
1 answer
64 views

Make binary executable for all users

Let say I have flutter binary at ~/flutter/bin/flutter with execute permission for user,group and others. I want to make binary accessible or executable for all the users in system. Since the binary ...
Amal's user avatar
  • 1
0 votes
1 answer
94 views

How to change permissions of /proc/pid/mem?

As a personal project, I'm writing a small tool in Haskell to mimic the functionality of scanmem. It Scans /proc/pid/maps to obtain regions of virtual memory Scans through /proc/pid/mem to extract ...
lesserfish's user avatar
2 votes
0 answers
36 views

How to make copied files respect ACL settings?

Say I open in a PDF file with permissions 600 in a graphical application. I want to "save as" it in a folder with ACL settings as follows: $ getfacl . # file: . # owner: doron # group: ...
Doron Behar's user avatar
0 votes
0 answers
51 views

Virtiofsd, Problems with qemu VM launch script

I am in the process of writing a script to start my qemu Windows 10 VM on an Arch Linux host. My issue is that one of the commands won't run from the script, but will run in a terminal. Here is a test ...
Diamond White's user avatar
0 votes
1 answer
44 views

why resets `desktop-file-edit` the permissions of a file?

let's say i have set the umask system-wide to 027 via a one-liner at /etc/profile.d/ on a multiuser-system. after some time resp. reboots i want to hide an existing desktop-file system-wide from the ...
DJCrashdummy's user avatar
0 votes
0 answers
117 views

How to modify/extend USB device access permissions in Debian?

I have a PC with Debian 10. I need the USB drives to have broader permissions than those given by default by the system. I will give an example: with the user "john" being authenticated, ...
Gustavo's user avatar
  • 11
0 votes
0 answers
45 views

Can't access file even though I am the user, I have permissions, I have chowned/chmod'd the entire directory structure, selinux off

Sorry for the copy/paste, doing this over a remote screen share: I am on Rocky Linux and I am at a total loss as to what is going on here. I can't cat/vim this file but as you can see, I am the owner,...
Grant Curell's user avatar
0 votes
0 answers
57 views

User suddenly changed to nobody, and is restored when changing permission to a file

I was learning about git internals, doing basic commands, when suddenly I encountered this error: fatal: detected dubious ownership in repository at... I then noticed that the user is nobody. I have ...
username's user avatar
0 votes
1 answer
40 views

How do I mount attached drive /home or something similar on VPS

I obtained a VPS and they attached a 16TB HDD... They gave me a guide to mount the HDD to folder /hdd. My issue is that the program I am installing on a sudo user has a lot of small apps that get ...
Nanja's user avatar
  • 1
1 vote
0 answers
29 views

Why does setreuid have this limitation on setting ruid to current value of suid?

According to the docs for setreuid: Unprivileged processes may only set the effective user ID to the real user ID, the effective user ID, or the saved set-user-ID. Unprivileged users may only set ...
quixotrykd's user avatar
0 votes
0 answers
46 views

How to turn on developer mode on chromeOS

I'm trying to enable developer mode on chromeOS. I know the Esc+Refresh+Power then do Ctrl+d but when I do that my Chromebook says "Chromebook last booted in developer mode etc." then logs ...
Evan Charles's user avatar
0 votes
0 answers
90 views

SSH Keys Not Recognized?

I have two Debian (11 and 12) systems. I'm trying to verify ssh access from server A to server B via keys, following this video https://www.youtube.com/watch?v=vINn1MIrf7o. I try to use the keys, ...
Rez's user avatar
  • 1
-1 votes
1 answer
65 views

creating hard links Linux question [duplicate]

From the book The Linux Command Line by William Shotts, page 33: So now we have four instances of the file fun. Let's take a look at our playground directory. [me@linuxbox playground]$ ls -1 total 16 ...
Guilherme Woolley's user avatar
0 votes
1 answer
20 views

Restricting client-side SSH configurations

We allow a small group of student users to connect to our servers using ssh with local forwarding in order to access data science / programming resources such as Jupyter, rstudio, etc. Recently I have ...
jay's user avatar
  • 101

1
2 3 4 5
89