Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
0answers
13 views

Other permissions apart from filesystem access

Quoted from this answer about the difference between filesystem user id and effective user id of a process, it says that The FSUID is used for filesystem accesses, the EUID for other things. What ...
0
votes
0answers
5 views

Pokit Authentication Agent (Gnome) doesn't work in certain applications

I am using Arch Linux x86_64 with the i3-gaps WM. I have installed polkit-gnome to use as the authentication agent for my user. It works great, except for instances where the application 'knows that ...
18
votes
2answers
572 views

What does chmod -u do?

By accident I ran chmod -u filename and it removed all of the permissions I had on filename. The man page does not reference a -u option. Experimenting I was able to conclude that it removes not all ...
1
vote
1answer
27 views

Set to non-default user group upon login in bash

Upon login with .bashrc, how to set the user's group to a non-default one, say targetgroup? Specifically, my problem is that I can execute, on the command line: newgrp - targetgroup but when I ...
1
vote
1answer
27 views

Alpine Linux apk add gives permission error

I'm trying to install packages in a docker image based on alpine. The host system is CentOS system, system-release: CentOS Linux release 7.6.1810 (Core). Here's what I do: # docker run -td alpine:3....
3
votes
1answer
17 views

Permission denied when cd to symlink'd dir in /tmp that is 700 and owned by regular user

Question: Why am I not able to cd into a symlinked directory with 700 permissions, owned by a regular user, as root, when I am able to change into the directory itself? Example: ttucker@plato:/tmp# ...
0
votes
1answer
28 views

How to allow folder permission for another user in Linux?

Consider two user accounts user1 and user2 on one Linux machine. I want user2 to be able to have read and write access to a folder in user1 home directory. So far created a group for both users and ...
2
votes
3answers
41 views

Execute permission NTFS data partition

I'm trying to execute some scripts, which are located on my data partition, from the shell, but I have a problem with permissions. bash: /media/storage/ss/script.py: Permission denied Before ...
33
votes
3answers
3k views

Why is the “ls” command showing permissions of files in a FAT32 partition?

I believe that the FAT32 file system does not support file permissions, however when I do ls -l on a FAT32 partition, ls -l shows that the files have permissions: -rw-r--r-- 1 john john 11 Mar 20 15:...
0
votes
1answer
34 views

Why mount command works only with root [duplicate]

When I type mount <device> <folder> I get message "mount: only root can do that", how so? if mount has -rwsr-xr-x. permissions?
0
votes
0answers
39 views

CIFS permission issues when mounting a NTFS partition

I'm attempting to mount an NTFS file share. sudo mount.cifs //address.fileshare.com/TestMount /home/me/TestMount -o username=MyUserName,domain=MyDomain,uid=MyUserName,file_mode=0777,dir_mode=0777, ...
0
votes
2answers
53 views

Why can't read the contents of a directory? [duplicate]

All filenames mentioned here are directories. The permissions of /media/disk are 0744 (drwxr--r--). The permissions of /media/disk/directory are 0755 (drwxr-xr-x). I do not own these directories in ...
0
votes
1answer
42 views

Can't list directory even as root?

I'm running into an odd issue on my Mac (macOS 10.14.3). I ran sudo du -xk / to get detailed data on my disk usage, and ran into several errors: du: /Users/brx/Library/Application Support/MobileSync: ...
0
votes
0answers
27 views

Opening attached PDF in neomutt: No Permission

When I open a PDF in Neomutt (by pressing v in the opened email and selecting it) then a temporary file /tmp/doc.pdf is created. When I then try to open another PDF (even after closing the first one),...
1
vote
1answer
30 views

Unable to delete directory, imutable flag is not set, not mounted

So i have this directory that causes a lot of problems when trying to delete lxd via snap. The directory in question is /var/snap/lxd/common/lxd/storage-pools/default/. If I try to delete it with sudo ...
0
votes
0answers
23 views

Allowing read write access to a directory under SELinux

Is it possible to allow ANY process to read/write to a directory under SELinux? What I'd like is proper 0777 access to a directory and I really don't care which processes read or write to it. I know ...
0
votes
1answer
42 views

How to make files undeletable but moveable in linux server?

I am a beginner in Linux. Sorry for my naive question. I am managing some folders on our server. The server runs: REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="7.6"...
1
vote
0answers
37 views

Does Access Control lists override group or owner permissions?

I came across the following task: Add 3 new users - alice, bob, charles Create a new group - marketing - and add alice, bob and charles to that group Create a directory - /marketing - whose owner ...
6
votes
2answers
491 views

Can't remove a file with file mode bits a+rw

I have a file with the following file mode bits (a+rw): [0] mypc<johndoe>:~>sudo touch /tmp/test [0] mypc<johndoe>:~>sudo chmod a+rw /tmp/test [0] mypc<johndoe>:~>ls -l ...
0
votes
0answers
16 views

Setfacl set permissions for future files and directories recursively

I have a directory a directory with permissions as below: drwxrwxr-x 5 myuser mygroup 4.0K Mar 12 19:54 log I have an application which regularly creates directories inside the folder and writes ...
0
votes
0answers
11 views

Cannot change default permissions in home ~/Documents [duplicate]

When I create folders in Documents catalog, all have rwx permissions for a user. However, when I create a file, it has only rw- privileges for a user. I tried to change default permissions using umask ...
1
vote
0answers
11 views

Trying to configure two USB drives for Samba server, permissions allow access to one but not the other on PC?

On my raspberry pi 3 that has Samba and Ntfs-3g running Raspian I have two USB drives mounted to two folders (from lsblk) Then I have added the following code to the bottom of the samba configure ...
-1
votes
1answer
29 views

cannot create regular file '/usr/Desktop': Permission denied

Im trying to git clone git clone cp /usr/Desktop But it comes up with cannot create regular file '/usr/Desktop': Permission denied every time
-1
votes
1answer
41 views

How to restore file permissions, to their default. Following chmod -R 777 / [duplicate]

Basically i entered a wrong command on one of my most important cpanel server chmod -R 777 / And all the folders and files are changed to 777 permission and all the services like phpmyadmin and mail ...
1
vote
2answers
43 views

Error when move or delete file on ext4 in dpkg info directory

There is a troublemaking empty file (md5sums of kernel 4.19.1) left on my ubuntu system, with has strange owner/group/date/attributes How to fix or workaround this defect file? $ uname -a Linux ...
0
votes
0answers
18 views

How to “cryptsetup open” an encrypted disk with user rights?

I have an encrypted flash drive drive for some private data. It was set up using dm-crypt/cryptsetup. Everything works fine, except that I always have to use root rights to run cryptsetup open /dev/....
0
votes
1answer
33 views

Why am I able to still write to a file marked 400

root@user123:~# touch 1.pwd root@user123:~# chmod 400 1.pwd root@user123:~# echo "abc" > 1.pwd root@user123:~# vi 1.pwd root@user123:~# ls -lart total 3344 -rw-r--r-- 1 root root 148 Aug 17 ...
0
votes
0answers
56 views

“Permission denied” error when deleting files although owner of file

-rw------- 1 sato_y sato_y 19 Aug 15 2018 _complete drwx------ 2 sato_y sato_y 68 Aug 15 2018 files -rw------- 1 sato_y sato_y 673 Aug 15 2018 _invocation [sato_y@ircms-icals fork0]$ rm ...
-1
votes
1answer
21 views

How to make a user not have write permission to all the disk files and directories?

I would like to make a user (identified by uid) unable to make any changes (creating or deleting files and directories) to the disk. It seems to be unrealistic to set the permission to every disk file,...
0
votes
1answer
22 views

How to allow a user to create files in a directory but prevent this user from creating and deleting files in the parent directory?

I would like to prevent a user (identified by uid) from creating and deleting files in /tmp, but allow this user to create files in directory /tmp/hello, which is owned by this user. How can I achieve ...
0
votes
2answers
116 views

root “su - <user>” got permission denied (Ignored)

Got permission denied when switching user from root to postgres. No issue switching from root to ubuntu. root@node-01:~# su - postgres su: Permission denied (Ignored) postgres@node-01:~$ logout root@...
3
votes
1answer
69 views

umask not being applied? [duplicate]

I am setting the umask to a new value as below. However although I am applying rxw to the user, this does not seem to be respected (?) /home/pkaramol $ umask u=rxw,g=rw,o=r /home/pkaramol $ umask -...
2
votes
0answers
16 views

ACL permissions mysteriously giving execute on group

I did the following and I don't understand the end result: $ mkdir mydir $ setfacl -d -m u::rwX,g::rwX,o::rX,m::rwx mydir $ touch mydir/test.txt $ getfacl mydir/test.txt # file: mydir/test.txt # ...
0
votes
0answers
44 views

Trying to add an SFTP user without changing ownership to them

I'm running CentOS 6.9. I'd like to add SFTP users that can access certain directories. For one of them, I'd like them to be able to access everything (with SFTP permissions only and no shell access)...
1
vote
1answer
18 views

GNU Screen requires different permissions for chroot environment? /run/screen

I have my computer start secure shell in a chroot system at boot. (All the normal directories are bind mounted in the chroot system /run, /dev, /dev/pts, /sys, /proc). After logging in to the chroot ...
0
votes
1answer
19 views

Mount cifs with Write access for group

I am trying to mount a cifs on RedHat 6.10 with below in /etc/fstab: //chq-qaedinas.chq.ei/DataHistory /DataHistory cifs auto,credentials=/etc/samba/user,noexec,umask=0002,uid=20588,gid=50011 0 0 ...
-1
votes
0answers
30 views

your firefox profile cannot be loaded. it may be missing or inaccessible - AD multiple profiles

I have a new ubunutu 16.04 machine which I recently connected to my workplace domain where multiple users login to the same machine with there workplace account names. When a user login to the machine ...
1
vote
1answer
51 views

Can only write as root although user seems to have full permissions [duplicate]

I am having trouble writing to a samba share from a linux client (a Windows client can read and write just fine). According to ls -la run from the linux client, I should have full permissions: james@...
4
votes
1answer
101 views

Group permissions for root not working in /tmp

I experience a strange behaviour in my /tmp directory. Although a user belong to a group has permissions to read/write a file, he cannot do so. In this example, I create a new file /tmp/test.txt as ...
0
votes
1answer
26 views

Samba write access problem: parameter does not show in testparm even though it is in smb.conf

I am trying to get a samba share setup so that users have both read and write permissions. I thought that I would be able to do this by editing /etc/samba/smb.conf to add my share like so: [CLOUD] ...
14
votes
3answers
2k views

Is there a file that always exists and a 'normal' user can't lstat it?

I need this for a unit test. There's a function that does lstat on the file path passed as its parameter. I have to trigger the code path where the lstat fails (because the code coverage has to reach ...
12
votes
3answers
2k views

Why is “rm -r” unable to delete this folder?

I have a folder with -wx permissions called folder1 and another folder inside it called folder2 with rwx permissions. I tried to delete folder1 using this command: rm -r folder1 But I got the ...
0
votes
1answer
38 views

Running Bash Script in a Browser Even with Apache Permissions Set

I have a program that sits in a Docker container. I want to be able to go to a browser page and run the Docker container so the program will start. So, I created a bash script that runs the Docker ...
0
votes
2answers
75 views

Which owner group does `ls -l` show?

When the file owner is part of several groups, how does ls -l decide which group to show? For example, on MacOS, I see drwx------+ 48 flow2k staff 1536 Feb 5 10:11 Documents drwxr-xr-x+...
-1
votes
0answers
27 views

Network user access to folder

I mount a folder on a NAS file server on my ubuntu machine using cifs and the NAS account and it mounts the server folder and I have full access to it. Now I run a program which uses a folder on the ...
0
votes
0answers
46 views

Permission denied issue while doing CD even after having group permission

I'm getting Permission denied while doing a cd into directory /tct/foxprod_t2b_002/cilin/cust_test/testcases/level1 and user is a member of this group; other users on the group can easily accessing ...
0
votes
0answers
26 views

permission denied: cdrom to change permission

I need to change the permission of cdrom. I have tried the command stat and this is the result: File: /media/cdrom0 Size: 2048 Blocks: 4 IO Block: 2048 directory Device: b00h/...
0
votes
1answer
34 views

What would happen if a file have both regular permissions and ACL permissions?

If a file have a regular permission of read for user John, and also have an ACL permission of write for user John, what would happen in this case: Would the regular permissions only be applied (so ...
0
votes
1answer
60 views

Elasticsearch cannot open log file: Permission denied

The error I installed Elasticsearch on CentOS using rpm and am encountering this error when I try to start it via systemctl start elasticsearch: Feb 20 21:08:34 server.cberdata.org systemd[1]: ...
-2
votes
1answer
49 views

How to reset entire system permissions back to default in Linux?

I found I've a kind of messed up most part of my system permissions. Some places that only owner should have access is now exposed to world. How can I reset the folder permissions to default like i ...