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
7 views

Why do files created by rslsync user/service have a “r--” mask?

I'm using Resilio Sync to sync a directory between two computers running macOS and Arch Linux, respectively. On the Linux box, the Resilio Sync rslsync.service runs as the rslsync user, and the ...
1
vote
0answers
37 views

How to mount a filesystem in such a way that a specific user has full read access to it?

I want to perform automatic backups of a specific folder, F, in my home directory. To prevent malicious software from removing backups in the repository, however, I have created another user whose ...
0
votes
0answers
11 views

What permissions should be set for shared directory in Linux

I am struggling with setting proper permissions for files example I would like user1 and user2 have access to their directories plus shared and moderator needs to have access to all of those ...
0
votes
0answers
17 views

Group access controls in Google docs

If this question belongs in web apps, then I would ask that the group's moderator be the one to move it to web apps. I believe that the question is better served in this group, because the experts ...
0
votes
1answer
30 views

Why do I have both root and mongodb permisssions?

These are permissions total 8 7351455 drwxr-xr-x 2 mongodb mongodb 4096 авг 21 10:36 . 7340101 drwxr-xr-x 69 root root 4096 сеп 4 11:40 .. for my /var/lib/mongodb I am having problem with ...
2
votes
0answers
21 views

setgid being ignored by application

I run a Weblogic installation on a Oracle Linux Server 7.8. An application in weblogic will write some files to a local directory as output. The application uses the Oracle Weblogic FileAdapter for it....
2
votes
1answer
43 views

For a directory file descriptor dfd, can I prevent traversing up as in openat(dfd, “..”, …)?

I have a user $service with a directory /srv/$service/subdir. /srv/$service has a mode of 0700, i.e. it's only accessible by $service. That user can open a directory file descriptor to …/subdir or any ...
1
vote
0answers
70 views

Why can I cd into a folder I should not be able to access?

I'm having an odd issue with my FreeNAS server related to permissions. Let's just say I have a ZFS pool with the following datasets: personal1 personal1:guest drwx------ personal2 personal2:family ...
0
votes
0answers
30 views

how to run script from user hdfs without password

we create the following script on rhel 7.6 /home/run_tasks and in visudo we configured %sudo ALL=(ALL:ALL) ALL root ALL=(ALL) ALL hdfs ALL = (ALL) ALL hdfs ALL= (root) NOPASSWD: /home/...
0
votes
1answer
41 views

-bash: ./java: Permission denied

I'm trying to run Java on my web server (that is only rented). I downloaded the JRE from java.com and unpacked it in a local folder in my home directory. I changed the permissions of the bin/java ...
-2
votes
1answer
37 views

Permission Error when accessing Python file

I am receiving this error and am unable to address it. I don't understand how I don't have permission to these files in the python3.6 directory. File "/usr/local/lib/python3.6/site-packages/...
0
votes
0answers
34 views

Group has correct permissions and user in group, but cannot access folder

I'm trying to access a folder but I'm not allowed to. The folder (folderA) permissions: $ ls -l drwxrwx--- 6 someuser groupA 4096 jul 24 21:26 folderA The users in the group (groupA): $ grep '...
0
votes
0answers
18 views

Fix permission linux for user and apache development

I have problems setting correct permissions in my PHP web project. Always obtaining 403 denied error: This is my project path: /home/<user>/Escritorio/Desarrollo/wordpress This are the current ...
3
votes
3answers
198 views

-perm flag in find

I'm trying to wrap my head around this command: find /home/ -type d \( -perm -0002 -a ! -perm -1000 \) 2>/dev/null I understand that it's going to look in the 'home' directory for all directories ...
0
votes
1answer
32 views

Accidentally moved /usr now kde is broken. Do I need to re-install?

Okay, so I have a laptop with Windows 10 and KDE neon dual boot. While trying to fix a problem (Linux root did not have enough space left) I accidentally moved /usr to /home. I tried to fix it but ...
0
votes
1answer
32 views

Linux - Why do i need to use sudo to read a file, although permission for others is set to read

Based on the permission given below others can also read the file. I am logged in as ec2-user but I have to use sudo to read the file. Since permission is given for everyone to read why does it still ...
2
votes
1answer
44 views

How to prevent /dev/null file's permission change or corrupted?

I use this command to check whether gpg password is valid or not: gpg -o /dev/null --local-user $KEY_ID -as <(echo 1234) This is a hacked command to check gpg password that I posted here. I can ...
-1
votes
0answers
32 views

How to change the super user password?

I found a similar question with a plausible answer but it did not pertain 100% with my problem: on Linux Mint (cinnamon) I changed the password (being in sudo su) with the [passwd] command and I get a ...
1
vote
1answer
39 views

By creating a new user, does it have read and write permission to its own home directory?

I am totally new to the Linux world. If I create a new user, does it have read and write permission to its own home directory by default? Logically, it should, but I'm not sure.
-1
votes
0answers
28 views

Why do i get permission denied error when setting variable?

My .sh script is as following: #!/bin/sh PYTHON_ARGS = "-m" echo "Enable uppercase? [y/N]" read ANSWER if [ "$ANSWER" = "y" ] then PYTHON_ARGS = "${...
0
votes
0answers
15 views

How to (re)mount an FUSE partition and set (or change) its options, especially permission-wise? [migrated]

Note: If you don't mind reading all these, jump to "The Questions" section. The Actual Problem I have write permissions problems with both my external (i.e. external SD card) and internal ...
0
votes
0answers
35 views

rsync files that are only accessible if I switch user with sudo su

I have a local user "w10_user" on my windows 10 (local) computer. There is remote linux host "server". On server, where I can't change any configuration I have users "...
3
votes
1answer
70 views

updatedb can not create temporary file for a custom database file

I am trying to create a custom mlocate db for my home directory. When running the updatedb it complains about inability to open a temporary file. 55;~/>uname -a Linux yoga 4.12.14-lp151.28.59-...
0
votes
0answers
25 views

FFMPEG Permission denied when running on seperate volume

/mnt/volume_nyc3_01/tmp/input.mp4: Permission denied I receive a Permission denied error when trying to run this ffmpeg command: ffmpeg -i /mnt/volume_nyc3_01/tmp/input.mp4 -c:v libx264 -filter:v ...
0
votes
0answers
31 views

How to create user which have permission only specific folders

I need to create user and give only permission to my site folder and apache config folder(read,write,shell).These user should have ssh connection.Can anyone help me please? Distro is Centos 7.
1
vote
0answers
19 views

Cannot change ownership in SSHFS/FUSE

I encounter permission denied when trying to change the owner using chown of a folder on mounted SSHFS: # /etc/fstab sshfs#ubuntu@my.remote.tld:/mnt/data /data fuse user,_netdev,nonempty,...
0
votes
0answers
45 views

I can delete a file from a read-only directory on a samba share

I have this line in /etc/fstab (//freenas/share/ is a samba share, the samba-share user has the ACL permissions to modify stuff) //freenas/share /run/media/myname/freenas/share cifs _netdev,...
0
votes
0answers
13 views

umask does not change even after changing /etc/login.defs

I have read this answer: https://askubuntu.com/questions/805862/how-to-change-umask-mode-permanently, which recommend to change the file /etc/login.defs to change the umask permanently. So I change it ...
0
votes
1answer
37 views

Permissions Query

I thought I understood how permissions work in Linux, until I became aware of this situation. I have a subfolder, oddball that contains files with following permissions: ls -aRl /mnt/oddball /mnt/...
0
votes
1answer
24 views

Unable to write to mounted dir (after chown)

I've mounted a samba share to /mnt/nas with an fstab entry. I can read everything, but sudo is required to write to it (permission denied on touch test.txt but not sudo touch.txt). I tried: chown -R ...
0
votes
1answer
30 views

Manjaro: in which directory should user software go?

I have a few programs (python, bash, etc., some are my own, some are third-party) that I want to be able to use anywhere. Hence, i thought about putting them somewhere in my $PATH. I recently switched ...
0
votes
0answers
30 views

Samba User Cannot Access Nested Folder and File Due to Folder Permissions

This samba (samba.x86_64 4.9.1-10.el7-7) shared directory has been setup and running years before me on a CentOS 7.7 system. I am trying to unravel a few shares. A samba user, bob is a member of ...
0
votes
0answers
31 views

What is difference between file mod status 750 and 2750?

In some material to describe SGID ,when any user executes a file with SGID bit set on it, it will always be executed with the group ownership of that file, irrespective of who is running it. sudo ...
0
votes
2answers
44 views

File permissions: what is the difference between 755 and 4755

Both permission sets mean owner can read,write,execute; group and world can read,execute. I expect 4755 to be r--rwxr-xr-x, but instead it is -rwsr-xr-x. What is it? Copying my comment to StephenKitt ...
0
votes
1answer
29 views

Interpretation of file permission on Linux/Unix

I have an application trying to read files in a directory in a Linux Env. My directory permission is 'drwxrwxrwx' but the app doesn't have access to the files under this directory. However, when I ...
0
votes
1answer
29 views

How to fix it wsl ubuntu on widows 10? Operation not permitted

I am using a WSL, ubuntu on windows 10 and I want to set permissions like below but I am receiving an error. Why? How do I fix it? ubuntu-user@LAPTOP:~$ chmod 400 .ssh/MyKey.pem chmod: changing ...
0
votes
2answers
56 views

Primary vs secondary groups in Linux

What is the difference between the primary and secondary group? Why is there a need for a primary group? Are the user's permissions the same as the primary group permission? Assume there is a user A ...
1
vote
1answer
40 views

Make every file in a directory executable by default?

I have a directory in which I am storing all my shell scripts and I would like new files to be made executable by default so that I don't have to go chmod u+x [file] everytime. Is there a way to make ...
-1
votes
1answer
55 views

Is it possible to remove directory permission `d`

I know about Everything is a file (Wikipedia). While I was playing around with file permissions, I've wondered if it's possible to change a directory file type into a plain regular file type. eg: ...
0
votes
0answers
15 views

CentOS user can use sudo but cannot start/stop services

I want to know if it's possible to control user commands in linux. We have a group called operators, they are normal users but can view logs and such but cannot start/stop services. Is there any way ...
-1
votes
0answers
46 views

What does the '0' in Android file permission 06755 (of the file /system/xbin/su) mean

When rooting an Android device, one needs to do the following commands chown 0.0 /system/xbin/su chmod 06755 /system/xbin/su chown 0.0 /system/xbin/busybox chmod 0755 /system/xbin/busybox In the ...
0
votes
0answers
56 views

Why would 000 on /etc/shadow permissions lead to me not being able to use passwd?

Basically, I decided to change the password on the VM I use for work which runs CentOS 7. Entering a new password in literally every case (user runs passwd himself, user sudos passwd, sudo su and then ...
0
votes
0answers
26 views

ls: Crucial_X8: Permission denied

I hope this is a right community for asking this; if no, please advice a better one. I work on 256GB-ROM MacBook with MacOS Catalina. There're a lot of files and a lot of Xcode IDE temporary data. So ...
0
votes
1answer
33 views

Evince 'save as' permissions

If I Save As a .pdf file opened in Evince PDF viewer, it will always save it with 600 permissions regardless of what permissions the original file had. Is it possible to configure it in such a way ...
1
vote
2answers
22 views

Is there somewhere I can write configuration files from my program without root access?

I'm writing a small utility, and I have to put the configuration files somewhere. From looking into it, it seems like /etc would be the cannonical location in Linux. But I'm running into the issue ...
0
votes
1answer
29 views

Permissions problem when using ruby based snap 'mdl'

Because I don't understand Ruby, but want to use the ruby based program mdl (markdownlint), I have installed it using snap. While I can run the program, if I try and set up a customizations in a ~/....
0
votes
2answers
32 views

Debian 10: Cannot add my user to group

I am trying to add my user to group smbgroup sudo usermod -G smbgroup <username> When I run this command no error is produced, however when I then run groups I do not see smbgroup listed in the ...
0
votes
1answer
52 views

Advanced File permission and how to read them correctly

alisto@ubuntu:/projects/solarproj$ \ls -al total 32 drwxrwsr-t 3 root solarproj 4096 Dec 8 16:02 . drwxr-xr-x 3 root root 4096 Dec 8 15:29 .. -rw-rw---- 1 boband boband 802 Dec 8 15:44 ...
-1
votes
0answers
21 views

What is a fast and reliable way to back up Linux files with permissions onto Windows hard drive?

I use Windows to manage my backups. I just discovered that when moving files from Linux to Windows and back the permissions get mixed up a bit. I use Git to do backups and deploy everything ...
0
votes
1answer
37 views

Automatically offer to set execute permission on shell scripts

I use shell scripts a lot. Practically every time, I create the script and try to run it, and get the permission error because I forgot to set +x. This seems like a huge hassle, is there a way to make ...

1
2 3 4 5
75