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.
3,823
questions
0
votes
1answer
14 views
Permissions of files shared via VirtualBox Shared Folders are not shown correctly in VM
I'm running VirtualBox; host and VM (guest) are both Ubuntu 20.04. I've shared the whole file system of the host (ext4) via VirtualBox Shared Folders capability for VM. I had to add my user on the VM ...
0
votes
0answers
12 views
pmount a drive but not in /media/
Is there a way to pmount a drive out of /media/ I need to mount a drive in the home of a user and that he can write in it
On Linux, for a hard drive, internal, without any encryption (ext4), the user ...
0
votes
1answer
23 views
How to allow users share file access?
I'm managing a Ubuntu server with hundreds of users.
One user may want to share his files/folders to his significant other. A few users may be in the movies enthusiast club, while some of them are ...
0
votes
1answer
17 views
Rtpproxy start with /var/run/ instead of /var/run/rtpproxy
I am currently setting up rtpproxy in RHEL 7, and when I tested in in ubuntu, it runs without any problem.
From what I observe, I think the problem is mainly due to the permission of /var/run/; the ...
0
votes
1answer
28 views
find files with -perm and change perms
I need to find all files in a directory where “other” have permissions to read, write, or execute, and I need to apply those permission to “group”.
Example: if file1 has rwxr--rw-, this would change ...
0
votes
0answers
15 views
Permission Denied after power failure
I have a single RHEL server that is not allowing users SSH access, but can access the front end web server via LDAP. We did have a power outage last week and the servers were without power for a few ...
-1
votes
0answers
31 views
Permission denied when I try to use a reserved port
Guys I'm using Kali Linux, I created a python script and everything is fine, but when I try to use a reserved port for this error:
PermissionError: [Errno 13] Permission denied
But when I use a ...
0
votes
1answer
76 views
nmap: Couldn't open a raw socket. Error: Permission denied (13)
I'm attempting to run the following command on an Ubuntu box (ssh from Windows 10 PowerShell):
sudo nmap -sU -O localhost
Starting Nmap 7.91 ( https://nmap.org ) at 2021-03-02 10:13 GMT
Couldn't open ...
5
votes
0answers
64 views
Kernel module remove not permitted for some sudo users
I use a sudoers file, which (besides other items) contains following lines:
homebridge ALL=(ALL) NOPASSWD: /sbin/modprobe -r bcm2835-v4l2, /sbin/modprobe bcm2835-v4l2, /sbin/reboot
%sudo ...
0
votes
1answer
27 views
Debian: Nextcloud : Can't create or write into the data directory /mnt/disk0/nextcloud-data/
I installed nexcloud on my debian install. When I run:
sudo docker run -d -p 8080:80 nextcloud
I get some random hash. Than I go to localhost:8080 where is set up screen. I fill up all textboxes and ...
1
vote
0answers
18 views
setfacls and groups showing under Windows Advanced permissions
I'd love to find out what I am doing wrong here. I have a samba member server connected to a Windows AD environment sharing out a test folder. The end goal is to manage all permissions from windows as ...
0
votes
0answers
10 views
VMware RH server 6.5, client RH7.4 not pulling updates
I am running a VMware RHEL server 6.5 on a win server 16 host. No internet connection, internal network only.
RHEL client running 7.4 can not access the yum repository on this server.
I did a ping ...
1
vote
1answer
27 views
On Linux, how do you exempt one user from sticky bit restriction inside of directory
On RHEL 8 I have created a directory for a group. The group members are allowed to create files within the directory, but because of the sticky bit, are disallowed from deleting files created by other ...
-2
votes
1answer
47 views
Cannot set permissions to 600 on SSH key file [closed]
I tried to delete all permissions on my private key file in order to make only me the owner have access to it but it brought this error
chmod: prac1: new permissions are ----w--w-, not ---------
...
1
vote
0answers
58 views
Unable to `mkdir` in /mnt/ and cannot `chmod`
I'm following this guide on my Ubuntu Azure hosted VM and need to make a directory in /mnt/. For this question I'll just change the directory I want to create to "test". I keep getting the ...
1
vote
0answers
18 views
Prevent user from deleting a directory but have full access inside it (SMB)
(I've searched for hours now but couldn't find any answer that worked. If this is a duplicate, please point me to an answer that works and I will close this ASAP).
Note: This problem applies to an ...
0
votes
1answer
24 views
Booted a SD Card to install Mint and cannot change permissions to format it
I recently flashed my SD card to format and reinstall Linux Mint on my machine. Everything went well, but I have learned that SD cards cannot be use as a boot device.
The problem now is that I am ...
-1
votes
1answer
54 views
symbolic style permissions in Linux [duplicate]
Can someone explain to me how symbolic style permissions work in Linux? And help me set the permissions of r--r-x-wx in symbolic style on a file?
Thanks
1
vote
1answer
45 views
sftp permissions access denied
My local computer has Debian 10 and I'm using Dolphin on KDE. I am using it to connect to a remote computer running ubuntu 16.04. I am able to connect and browse through the files using the sftp ...
0
votes
1answer
16 views
Not changing permissions as root on git pull
I've been managing a not very big system for a few months now and there are still a couple of issues that I don't like how they're being dealt with right now.
Currently, there is practically just one ...
0
votes
0answers
26 views
How do I access folder using mount point?
I am trying to access a folder so I can copy it into another partition.
I know the mount point /mnt /uuid, but cannot see it in my Ubuntu nautilus files.
(Long story irrelevant to this issue.)
I ...
3
votes
1answer
46 views
How can I use strace on a command executed as a specific, non-root user?
I'm trying to use strace to observe where a certain process searches for files. The locations this process searches will differ depending on the user and their unique environment variables. However, ...
2
votes
1answer
21 views
Man cannot read manpage from NFS, although the file is readable
I have an issue reading man pages that live on an NFS mount. I managed to isolate it to the following minimal example. The man page file is on an NFS mount /data and its path is /data/program.1
I can ...
0
votes
0answers
33 views
setuid not allowing me to run script as root? [duplicate]
I wrote this tiny script:
#!/usr/bin/env -S bash -xeuo pipefail
whoami
cd /repo && git fetch origin master && git merge -s recursive -X theirs origin/master
And set the u+s bit which ...
0
votes
0answers
25 views
Linux softwares permissions
Is there a way to list "permissions needed for a specific software" or "softwares needing a specific permission"? (Like the way Android and Windows list location, camera, ...
0
votes
1answer
55 views
How to give write permission to apache user
I am a beginner in server management.
I am using the class.upload.php library so that users can upload files from my website.
To this, I give a full path like: uploads/gifs/90/x.gif
This path does not ...
1
vote
1answer
16 views
Allow/Deny ICMP “on demand” from normal user (Sysctl, Sudo, /proc)
I would like to set up an account on a CentOS 7.8 that can allow/deny ping (icmp echo) "on demand".
This works great logged as root, example :
echo 0 > /proc/sys/net/ipv4/...
0
votes
1answer
31 views
Make files read-only - except for the program that creates them
So I've got a situation where programX.py creates files such as file1.txt.
How could one make it so that only programX.py has the rights to edit (write to) file1.txt?
So anything else (such as a user) ...
1
vote
1answer
24 views
Sharing a directory between users (using ACL) when some files are created with only owner rw (600) permissions
Background:
I'm trying to share a folder between two users on the same machine . The normal way would be to have the two users in the same group set the parent folder to that group with rw and the s ...
7
votes
3answers
1k views
Why do I not have sufficient permission when running sudo as a user
The below fails:
sudo -u chris ls /root
ls: cannot open directory '/root': Permission denied
While the below succeeds:
sudo ls /root
...
I do not understand why. I assume -u just changes the $USER/...
0
votes
0answers
22 views
Permissions problems configuring a NFS server and client between Ubuntu 18.04 x64 and Ubuntu 18.04 Arm64
Because I have a little space on the sd card of my jetson nano,I have installed the nfs server on Ubuntu 18.04 x64 bit and the nfs common client on ubuntu 18.04 for arm64 on the jetson nano. I have ...
1
vote
1answer
30 views
Cannot cd into directory because of permission, but directory is mine [duplicate]
I have changed my windows machine to Artix linux. And I had bunch of music in the windows so I just kept them in drive and moved them over to new Artix installation. At first, the permissions of files ...
10
votes
3answers
929 views
Can I get UNIX file permissions to take effect immediately for all processes?
When I change the permissions on a file using chmod, existing file descriptors can continue to access the file under the previous permissions.
Can I cause those existing file descriptors to close or ...
0
votes
1answer
53 views
chmod command to persist file permissions
This is part of Ansible automation where I have to run a single chmod command and read the permission from the users. Thus,
chmod -R $fileperm <filename>
However, at times the user may not ...
0
votes
1answer
25 views
How are sudo permissions granted across parent/children processes?
I was having a look at how sudo grants work across parent/children processes, however, I'm confused.
If I open a terminal (emulator, in a graphic environment), and execute:
$ sudo bash -c "sudo -...
0
votes
1answer
35 views
Linux - Inherit file permissions from parent directory
I want all the newly created or moved files in a directory to inherit the permissions from the parent directory.
For that I did:
chown -R myuser:myuser /home/directory/
chmod -R 2774 /home/directory/
...
2
votes
1answer
36 views
Figuring out why permission is denied on a file by recursively checking permission on parents
I get permission denied on a file /some/very/long/path while trying to do df on it.
I try to do df /some/very/long and get the same. Then I go one more level up df /some/very, still same.
Finally, ...
4
votes
1answer
257 views
Permission denied when calling a script, although I'm the user who's permitted to call it
I've added "x" to the sh scripts in a directory:
$ whoami
alex
$ sudo chmod og+x ./scripts/*.sh
And so I have
$ ls -al ./scripts/
total 24
drwxr-xr-x 2 alex alex 4096 Jan 25 10:33 .
drwxr-...
0
votes
0answers
13 views
Why does nautilus show different permission icons on lost+found in an external drive?
On my external drive, I have an ext4-formatted partition.
I've recently noticed that the icon that's shown in the file manager on the lost+found directory there is different from the one shown for the ...
0
votes
1answer
58 views
What is set-group-ID on execution - ignored and why am I unable to unzip a file because of it?
I'm trying to unzip a file using gunzip GCF_000746645.1_ASM74664v1_genomic.fna.gz but I get the following error:
gzip: GCF_000746645.1_ASM74664v1_genomic.fna.gz is set-group-ID on execution - ignored
...
1
vote
1answer
81 views
chroot debootstrap problem : no such file or directory
I would like to run X86 applications on my Jetson Nano using qemu and debootstrap on ubuntu 18.04. Actually I'm following this tutorial :
https://www.youtube.com/watch?v=dzAoaFOJy7U&t=338s&...
0
votes
0answers
15 views
How can I reset all system file permissions in Debian 10? [duplicate]
I want to reset all system file permissions. Because I used sudo chmod 777 -R / command. But I don't know how.
5
votes
1answer
128 views
A very strange behaviour of filesystem, Schrödinger's file
I'm fresh to Unix, and I would like to have your help with this strange behavior
I have a user directory /Users/den
den$ ls -la
total 208
drwxrwx---+ 19 den staff 608 18 Jan 16:35 .
drwxr-xr-x ...
0
votes
1answer
25 views
Fedora and default permissions for initramfs
I'm on Fedora 33 and I would like initramfs to be readable by any user after each kernel upgrade. How can I change its default permissions?
10
votes
1answer
2k views
Accidentally ran chmod +x /* - How bad did I just mess up?
I wanted to mark all of the files in the directory I was in as executable, and I ran chmod +x /* because I thought that was the command to mark all the files in the directory you were currently in as ...
0
votes
1answer
47 views
Why does root own the dot dot “..” directory?
I've been using Linux for ages - I practically live in it, but I've never actually thought to ask why root always owns the .. directory.
If you chmod the totality of a subdirectory structure to some ...
2
votes
0answers
67 views
sshfs mount and permission
I'm gonna go crazy!
I've been trying to handle a sshfs mounted folder for several days, but always get a permission denied on file.
The context:
Local Server (L) and a Remote server (R).
Only user X ...
0
votes
0answers
56 views
ssh connection fails with Connection closed by message
I have copied the ssh public key of srcuser@srchost to the authorized_keys of destination server destuser@desthost
The .ssh home directory of the destination server is as below:
ls -ltr /export/home/...
0
votes
0answers
13 views
Cannot perform command as a different User -even from root user
I have pm2 node modules installed in a user called otheruser. I need to run the program from root user.
If I normally logged to otheruser and perform any action its working fine.
otheruser@bubble-...
1
vote
0answers
44 views
Error running outguess on Linux terminal in windows
So far I was able to get outguess installed on my Ubuntu distribution running under WSL by running
sudo apt-get update
and then
sudo apt-install -y outguess
Both commands worked fine. After, I tried ...