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
0answers
3 views

autofs nfs share served and mounted on same PC reporting permission denied when writing

I am using nfs between multiple Debian 10 machines in my local network, with the same basic setting across the board, and they are all working as expected. I am using autofs as root to mount and ...
-3
votes
0answers
20 views

Permission denied setoolkit

hello evry body im trying to run setoolkit on linux lite after i installed it from gihub but it says: /usr/local/bin/setoolkit: 3: ./setoolkit: Permission denied i used root, tried chmod nothing is ...
-1
votes
0answers
21 views

command to change directory into system file

all files in directory became locked as system files. no user even root can change - so chmod does not work. What command changes directories and recursive files to system files ? this behavior only ...
0
votes
0answers
9 views

Adding an SELinux rule to grant a user read/write access to specific file

I'm currently running into a problem where a user on my machine called qemu can't access certain files. For example /dev/shm/looking-glass. I already ran: sudo setfacl --modify user:$(logname):rw &...
2
votes
3answers
46 views

How to check and assign execute permission to the shell script files?

I'm looking to write a .sh script to assign execute permission to all .sh files that have not been assigned execute permission in the current directory and subdirectories. I can easily assign execute ...
0
votes
0answers
13 views

clamd changing owner/permissons of /tmp

I installed the clamav antivirus package today on Arch Linux. It is the first time I have used it and I am curious to try it out. I have set up and enabled the clamd daemon (I use openrc); however, it ...
0
votes
1answer
43 views

interpreting results of ls-l

I'm having trouble interpreting the results of ls -l in my directory: -rwxrwxr-x 1 root root 37114 Jul 24 02:13 madison_events.json -rwxrwxr-x 1 root root 131355 Jul 24 16:00 ...
0
votes
1answer
13 views

Apache user does not have access to view files

I am working on fixing an issue that one of our webservers is having. There is a simlink to a directory to a mount point on our network storage. The apache user used to be able to see these files but ...
2
votes
0answers
22 views

Unix PAM module fails on login/lock screen - Permission denied - exit code 13

How it works? I'm back with yet another issue I can't figure out by myself. Basically what I have is 2 factor authentication (2FA) module based on Python PAM and with NFC card reader. Once user is ...
1
vote
1answer
17 views

/dev/video permissions Arch Linux (Remmina using FreeRDP)

I am trying to redirect USB through Remmina to an RDP session (FreeRDP on Linux). Access to the usb camera works just fine when I run Remmina as root, which is not an ideal scenario for obvious ...
3
votes
0answers
32 views

Why do I get umask 022 as default in my main user instead of the 0002 one?

I'm using Fedora 34 (Workstation Edition) —although I've seen this same behaviour on a Debian Buster machine, and I'm trying to understand why the users that I am creating are getting the umask 0002 ...
1
vote
0answers
13 views

Why is ACL not working as intended in Bash?

I have a directory named music. I have set setgid and sticky bit on music directory. soubhik@dev:~$ chmod 770 music ; chmod +t music/ ; chmod g+s music/ ; chown :media music/ ;ls -ld music/ drwxrws--T ...
3
votes
1answer
61 views

Clean way of running virt-install with an iso file that's in your home directory that user qemu can't access

I have a script that automatically creates and runs a VM. That script is used by many people. You basically call the script giving it some information like what PCI or USB devices you want to pass ...
0
votes
0answers
23 views

How can mount freebsd disk partition with read and write permission in deban? [duplicate]

My freebsd installed on /dev/sdb2,it can mount with read permission: sudo mkdir /mnt/freebsd sudo mount -r -t ufs -o ufstype=ufs2 /dev/sdb2 /mnt/freebsd How can mount it with read and write ...
0
votes
1answer
42 views

Restrict dot-files in /home to only editable by root on a day-to-day Linux computer [closed]

As Linux users, we know the importance of dot-files. But the idea of them lying around the /home/user/ directory and is modifiable by any programs keeps me up at night. Some digging around shows that ...
0
votes
1answer
38 views

Ownership, disk drives and permissions

I encountered an issue with a disk drive which I already posted on. (For the curious: Issue with device after formatting) In short, one of my disks stopped allowing me to copy files by drag and drop ...
0
votes
1answer
32 views

Issue with device after formatting

I need some help with an SSD disk drive that I am using, or trying to. I encrypted the SSD with cryptsetup, then I forgot about it (there were some files). I rewrote the disk drive completely (using ...
2
votes
2answers
42 views

Allow all users to use chmod on a NTFS file system

Issue: I have a dual-boot PC, Ubuntu / Windows 10, that share access to a NTFS disk partition (mounted as /DATA/ in Ubuntu). I need to avoid the "Permission denied" error when a chmod ...
0
votes
0answers
19 views

What security is there for socketcan interfaces, such as can0, on Linux/Android?

As far as I understand, can0 and can1 are networking interfaces like eth0, but using different addressing and flags. How do you control which user accounts or Android Apps have permission to read and ...
0
votes
0answers
32 views

Setting folder permissions in a loop

in an older question I described the problem, that iTunes on Mac sets wrong permissions to folders on a Debian fileserver with a ZFS pool, so that it can't write to these folders. After a while I ...
0
votes
1answer
45 views

How can I repair PolKit?

First let me describe my system. It's Mint 19.0 (Tara). Mint itself isn't the problem, but it's upgrade mechanism seem to have triggered the issue. It came after upgrading from Mint 18.3 to 19.0. I ...
0
votes
0answers
21 views

find files with peculiar permissions set [duplicate]

I'm prepping for the LPIC1 exam, strongly relying on their online material here. Can someone pls help me clarify this doubt? What is the difference among these: find ~ -perm 4000 find ~ -perm -4000 ...
-1
votes
1answer
38 views

Grant temporary read or read/write access to the directory to a particular user or all users without changing file/directory permissions

I've googled for it and found nothing. Any ideas how it can be achieved? mount -o bind,uid=1000,fmask=0133,dmask=0022 doesn't work - the original permissions are retained. mount -o bind,ro will also ...
0
votes
0answers
45 views

ACLs are not respected on FreeBSD

I am trying to set default group permission for the folder on FreeBSD 13.0 $mkdir test $setfacl -d -m u::rwx,g::rwx,o::rx,mask::rwx test $getfacl -d test # file: test # owner: john # group: wheel user:...
0
votes
1answer
16 views

libvirt user access stopped working

I'm using virsh and virt-manager to manage some qemu/kvm VMs on an otherwise vanilla CentOS machine. Our admins' user accounts are given the libvirt group. This had worked for a long time, but ...
1
vote
0answers
74 views

All attempts at modifying a file leads to 'Permission denied' [duplicate]

I was trying to increase my mouse scroll speed by following https://github.com/tkkcc/libinput_patch which requires modifying a file. Should be easy... $ echo 6 > /tmp/...
2
votes
1answer
47 views

SSH Public Key Authorization error Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

I am trying to SSH onto my server with the command ssh -i key.pem ec2-user@ip_address as I did with no issues last week but this week it is giving me an error of only ec2-user@ip_address:Permission ...
0
votes
0answers
22 views

Watchdog test binary: “Operation not permitted”

I use one of my computers only as a remote-controlled device. Sometimes it gets into a weird state in which it doesn't respond to AnyDesk anymore and doesn't show anything if I connect a screen. I ...
1
vote
1answer
52 views

Accidentally ran "sudo chmod -x /*, is a fix possible?

Im pretty new at linux and I really don't know how to fix this. I accidentally ran sudo chmod -x /* Now every command I run returns a "Permission denied" even the sudo command. please help!
0
votes
1answer
33 views

sudo for specific commands without password doesn't work

I really tried to find a solution before posting here, however I couldn't find any. I tried to allow a specific user to run apt update and apt upgrade for a without entering his password, so I did a ...
0
votes
0answers
31 views

Can modify system files/folders via SSH, but not via SFTP

My problem I want to mount or access my Linux server's filesystem from my MacBook Pro. Some of the reasons for this include: Sometimes I edit files text files, but I want to be able to use standard ...
0
votes
0answers
13 views

Audio devices on vncserver Tigervnc

Hi i have a question about audio devices on a vncserver "TigerVnc" I have done the Follow and it woks i don't want to create a virtual audio server not at all i just want to the audio ...
1
vote
0answers
52 views

can't uncheck “allow executing file as a program” from txt files

I can't remember how i have made all .txt files on my external hard-drive with NTFS executable in Ubuntu, so that whenever i double-click any .txt file on that disk or open the right-click menu, it ...
0
votes
0answers
14 views

Pure-FTPd fileserver on my raspberry only readable and not writable

So I followed this guide to install a ftp server on my Raspberry Pi. I did everything (even the optional part at the end) and it worked. I could connect my Mac (via Finder) with my Raspberry Pi and ...
0
votes
0answers
34 views

dmesg: klogctl: Operation not permitted

I see the following error running dmesg in my Linux running on a embedded board. / # dmesg dmesg: klogctl: Operation not permitted As you see, I'm running as root. I am also aware of the question ...
0
votes
0answers
40 views

Why I can't open text files when execetue “x” permission is on?

for example I have test_file and I run sudo chmod 775 test_file so now while I'm the owner I can read,write and execute it but with graphical interface it doesn't work, I don't have any error messages ...
-1
votes
1answer
100 views

“sh -c 'echo 3 > /proc/sys/vm/drop_caches” - Permission denied

I have a user with the same privilleges as root. When I run sh -c 'echo 3 > /proc/sys/vm/drop_caches' which is intended to run as cron I get : "Permission denied".
0
votes
2answers
42 views

Trying to start a .sh on boot

I try to start a start.sh file when the Server starts. Some info: It's a headless vServer I tried crontab but that didn't work either My current approach is systemctl command When I login the user is ...
2
votes
0answers
28 views

Permissions required to modify SELinux labels

I am writing code that is SELinux aware. I am new to this security module and am having a steep learning curve. For my code to work in an SELinux environment, I need to be able to relabel files. For ...
0
votes
0answers
58 views

OpenVPN3: Error calling StartServiceByName… Permission Denied… as root?

I cannot figure out how it's possible that I'm getting "permission denied" as root. Something might be missing execute permission, but I cannot figure out from this error message what that ...
0
votes
0answers
35 views

Removed ability to run sudo commands on Ubuntu

I did something pretty stupid - while struggling to add sudo power to a user on my Ubuntu system, I changed the following line in /etc/sudoers: # Allow members of group sudo to execute any command %...
1
vote
0answers
20 views

permission confusion when trying to tail logs

I would like to tail my radius logs with my user but I get the following: ron@OldNotebook ~ [1]> sudo ls -l /var/log/radius/radius.log -rw-r--r-- 1 radiusd radiusd 147918 Jun 22 15:04 /var/log/...
0
votes
1answer
36 views

chcon: failed to change context of ‘/usr/sbin/httpd’, Permission denied

I am new to SELiunx concept and as per the RHEL7 > SELinux User's and Administrator's Guide > 3.2. UNCONFINED PROCESSES Audit log type=IPC msg=audit(1624375715.312:4225): ouid=0 ogid=0 mode=0666 ...
1
vote
1answer
16 views

Udev rule not triggered

i'm trying to write an udev rule to mount a specific partition of an usbkey as rw for the owner and no access for group and other user. This is my rule: SUBSYSTEM=="block", KERNEL=="...
2
votes
1answer
32 views

Permission denied to create files on Samba shared folder mounted using CIFS

I have two ubuntu (lubuntu 20.10) machines. On one of the machines, I created a folder and shared it using samba. My entry in /etc/samba/smb.conf looks like this [MyShare] comment = NO COMMENTS ...
1
vote
0answers
30 views

Permission denied when running program from make

I'm trying to debug a problem, where I can not run flutter from make. This is my minimum Makefile which reproduces the issue. fails: flutter doctor works: sh -c flutter doctor And the ...
0
votes
1answer
43 views

Changing read only file system to read write file system

I have switched to Parrot OS as Windows doesn't meet my requirements like tools, good CLI support etc. But to practice hacking (ethical), when I downloaded a machine from vulnhub and tried to install ...
4
votes
1answer
68 views

curl not able to write to /tmp directory owned by user

I tried running the script as instructed in https://docs.docker.com/engine/security/rootless/: $ curl -fsSL https://get.docker.com/rootless | sh But the script crashed in the following line: curl -L -...
0
votes
1answer
75 views

Linux file permission confusion [duplicate]

My home folder contains 2 users. 1 admin users and 1 guest. I basically want a guest user not to be able to change the directory to a directory outside his own home folder when he logs in via SSH ...
0
votes
2answers
105 views

How is a -r--r--r— file being modified by an application?

I've set some Spotify UI settings in /Users/username/Library/Application Support/Spotify/prefs that I'd like to keep. I'm having an issue where the application overwrites this file every time it ...

1
2 3 4 5
79