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
1answer
48 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 ...
0
votes
0answers
21 views

permission error when adding new VM

This is my environment: MX Linux 19.4 AHS, virt-manager 2.0, Windows 8.1 in VM, I added the following packages through Synaptic qemu-kvm, libvirt-daemon-system, virt-manager, libvirt0, qemu-utils, ...
0
votes
1answer
13 views

Added celery to admin group, but still can't run the bash script

I'm logged in as celery, celery@de-vpn-2:/etc/app$ ls -lt total 8 -rwx------ 1 admin admin 144 Jun 12 18:39 user-count.sh But I have no permission running the bash script: celery@de-vpn-2:/etc/app$ ...
1
vote
1answer
27 views

File permission change when copying to external hard drive

Why does a file with a permission of 0664/-rw-rw-r-- become 0777/-rwxrwxrwx when copied onto an external hard drive? The external drive is NTFS-formatted - does this matter?
0
votes
2answers
81 views

Can not change the user owner of a file

I'm running Ubuntu under Windows. I have a file which is owned by a user named leon: -rwxrwxrwx 1 leon leon 0 Jun 8 20:25 linux1.txt but for some reason, I can't change its owner by running (...
2
votes
0answers
33 views

Duplicate/Export Permissions of entire file system

I was making a few modifications as root user on my server today and accidentally ran chown -R user:user / instead of chown -R user:user . I noticed quickly, but not fast enough to stop some of the ...
0
votes
1answer
15 views

Cannot do rmdir sftp permission issue?

sftp> ls -ltr drwxrwxrwx 1 user group 0 Aug 28 2018 Processed_20180828_131645 drwxrwxrwx 1 user group 0 Aug 29 2018 Processed_20180828_190042 sftp> rmdir ...
0
votes
0answers
17 views

hostapd can't read configuration file

It seems that hostapd can't open the configuration file create_ap made in /tmp to read even though it was running as root. I've tried running hostapd by itself with hostapd -d /etc/hostapd.conf as ...
1
vote
0answers
33 views

Regular user needing to create new directories as another user

I'll try to explain this as best as I can. We have a regular Linux user who makes continuous requests to our Sys Admins to transfer files from his home dir to a particular 'tool' directory. He then ...
0
votes
2answers
47 views

Why can't I run nmap with the -O option even when I use sudo

I'm trying to determine which ports are in use with my machine. I found, online an article that listed one method as follows: $ sudo nmap -sT -O localhost I believedthis would give me a list of all ...
0
votes
1answer
24 views

Controlling file access permission

We have around 100 user accounts on a Linux server, and 20 of them belong to my ITOp team. I want to allow my team user accounts to only view my files in a subdirectory directly under my /home ...
0
votes
0answers
16 views

Terminal sessions and docker permission in tmux

I have some basic Linux processes, terminal session, and docker permission problem. It may be a silly question. The situation: I have created a user group and added my user into it to use docker ...
0
votes
1answer
31 views

Synapse/matrix server container config permission/file denied

Answer posted by me below, can't accept my own answer yet I am working on a chat client, for development I use a docker setup that uses a 'generate' command to create a config file that you can adjust ...
0
votes
1answer
28 views

Setting ACLs correctly for -rw-r--r--+

I've been able to set the default ACL permissions for new files like so: sudo setfacl -Rdm u:usernamehere:rwx /var/www/path/to/files This seems to give all new files a permission of: -rw-r-----+ I'm ...
-1
votes
1answer
54 views

Change permission or encrypt files [closed]

Is it better security-wise to protect your files by encrypting or changing permissions (like 600)?
0
votes
1answer
17 views

Root cannot install packages in rescue or chroot plus service errors

I am using Arch linux. Currently, I am having the trouble of: User Login Management failed User Login Management failed User Login Management failed User Login Management failed Kernel Module drm ...
1
vote
4answers
65 views

Is it possible to change root shell from user?

I think I'am facing not so common problem. I wrote chsh -s /bin/false root and now I can't log in as root. Is there any possibility how I could log in to root? When I try command chsh -s /bin/true ...
0
votes
0answers
15 views

Samba share permissions

How do permissions on samba work? As I am understand it there are several permissions in works Linux (system) user / group on samba server the user of the samba itself smbpasswd -a john user on a ...
1
vote
2answers
45 views

How to create a temporary file that has “normal” permissions?

In a build script I want to create a temporary file that has a unique generated name, then write some data to it, and then rename that file to its final name (the reason for this procedure is that I ...
-1
votes
1answer
36 views

Cannot change ownership/permissions of disk

I have an EXT4 disk mounted on /mnt/external I have also tried mounting it on ~/EXTERNALMNT. The disk is not an NFS share. It is an external USB drive. I can read from the disk but cannot write, ...
0
votes
1answer
21 views

rsyslog custom log file permissions

I have haproxy service running on the server. For haproxy logging created following /etc/rsyslog.d/haproxy.conf file with content mentioned below: $ModLoad imudp $UDPServerAddress 127.0.0.1 $...
0
votes
2answers
42 views

How do I handle file names with spaces when changing permissions for certain files in the current directory and all its subdirectories?

I am currently trying to set all files with extensions .html in the current directory and all its subdirectories to be readable, writeable, and executable by their owner and only readable (not ...
0
votes
0answers
48 views

cp setattrlist Permission denied on MacOS

I am a second "Administrator" user on a Mac OS. I am in the admin group, and am trying to use homebrew, which was installed by the first user. I have made sure everything in /usr/local/* is ...
0
votes
2answers
30 views

User within a group cannot chmod on local disk mounted as NTFS

I have a local SSD disk, which is mounted via /etc/fstab on my Ubuntu machine: /dev/sdb2 /media/Store ntfs-3g rw,nosuid,nodev,default_permissions,umask=0002,uid=deniss,gid=deniss 0 0 I can read and ...
1
vote
2answers
41 views

Running a Command With Another User's PATH Variable

Ubuntu 20.04.2 LTS The problem I have is with running commands as another user (sudo/runuser/...). I'm unable to find a set of options for any of them that run the command with the target user's $PATH ...
0
votes
2answers
39 views

Compare content of two folders/disks (including timestamps,permissions)

I have two directories on two different hard drives and want to check if the content is really exactly the same. From what I read I can use diff -rq dir1 dir2 to check if files are missing or differ. ...
1
vote
1answer
47 views

Is there a way to disable all write access for a specific user in a directory?

I recently learned about ACL and setfacl for setting per-user access rights. But there is one thing that I cannot figure out how to pull off, and that is restricting all write(*) access for a specific ...
0
votes
0answers
56 views

sudo ssh: load pubkey Permission denied

user1 needs to be able to su to user2 on host1, and then ssh to host2 using public key authentication. The key is in /home/user2/.ssh/id_rsa on host1. It works with sudo -s... [user1@host1] $ sudo -u ...
0
votes
0answers
32 views

Rsync shows error(s) but the files were successfully copied

The host machine is running on Centos7 My pc is running on Ubuntu 20.04 I'm transferring images operationally using rsync from the Centos7 to Ubuntu using this command: rsync -auvz ${src_d01_pcp_1hr}/ ...
0
votes
1answer
40 views

Unable to execute file, despite having execute permissions on the file

I evidently misunderstand some aspect of file permissions. I'm attempting to execute a binary file compiled with g++ within a /var/www/html/modules file of a Linux machine from within a Drupal ...
0
votes
0answers
13 views

Access permissions have not been updated in open VNC sessions [duplicate]

I've updated group access permissions of a directory. Users that belong to authorized group can access the contents of the folder when they login via SSH. However, they cannot access that folder ...
1
vote
0answers
31 views

Can't create /etc/passwd.xxx file but can create /etc/test file in centos

I'm using an AWS image that for some reason is configured such that I can't seem to create any file named /etc/passwd.xxx (insert anything for the x). I can create files named test, test.xxx etc, it ...
0
votes
1answer
11 views

Non-root user with permissions to manage multiple files

I am using the Consul Template project, which is a process that is responsible for rendering multiple template files into various locations on disk. This poses a challenge of how best to manage the ...
0
votes
1answer
52 views

Cannot delete file with rm, not even with sudo. also cannot change file ownership

I have a list of .gz files I want to remove (something must have gone wrong during the transfer and are now corrupted) here's the list: drwxrwxrwx 2 root root 8192 May 3 09:42 . drwxrwxrwx 2 ...
2
votes
1answer
117 views

rsync_xal_set: lremovexattr(“/my/path/file.zPXUj1”,“security.selinux”) failed: Permission denied (13)

I am currently migrating from Ubuntu 20.04 to Fedora 34. Following backup script has worked fine so far: rsync \ -avixXEH \ --stats \ -...
1
vote
2answers
35 views

How to mount a disk/volume only for specific users?

This is probably a basic question for most of you, but I don't have a good knowledge of this topic (yet). Please forgive my ignorance. use-case: I have a small RaspberryPi that I want to use to ...
0
votes
2answers
52 views

Is on the whole Linux system any file not readable or not writeable by root?

I am just curious because for ordinary user scripts I must check if the corresponding file is readable by the user and writable like this (just a snippet for the read operation): if ! [ -r "$1&...
0
votes
1answer
20 views

How to restrict access to a folder in Apache2

I have a Raspberry Pi 4, running as a webserver (using Apache2). I have a directory that contains images, and I don't want users to access the folder that contains those images via my website, but I ...
0
votes
0answers
25 views

How to use sshfs to mount remote directories with correct group read-write permissions?

I am trying to mount a remote directory using sshfs on my local machine. The remote directory /www/path/to/dir belongs to another user someuser and user group webgroup on the remote server. My account ...
0
votes
1answer
33 views

PHP getting linux file without permission?

I have a PHP code, that list files and folders, using shell_exec("sudo ls /home/user"); (www-data has sudo NOPASSWD access to ls. ) Now I need to read the file, where there is no guarantee, ...
1
vote
0answers
33 views

www-data user cannot access USB drive mounted in /var/www/html/folder

I have an Raspberry Pi with mounted USB external drive. I've mounted this USB (/dev/sda1) to /var/www/html/owncloud/data/drive as I want to be able to access it from my PHP applications (precisely: ...
0
votes
0answers
28 views

As a root user, I do not have permission to create/write any file in any directory

As a root user, I cannot create/edit any file in any directory all of a sudden with the following error. E212: Can't open file for writing Everything was working fine. The last thing I did was to ...
0
votes
0answers
16 views

ERROR: xfce4-settings-4.16.1-r0: trying to overwrite [path] owned by exo-0.12.11-r0

i am on alpine-linux xfce :~$ uname -a Linux me176c 5.4.107-asus-me176c #1 SMP PREEMPT Sun Mar 21 20:28:04 UTC 2021 x86_64 Linux and I have problems upgrading as per # apk upgrade 1 error; 2000 MiB ...
0
votes
1answer
19 views

Create dir with permissions using uid/gid?

I know I can create a directory with permissions using sudo install -d -m 0755 -o username -g groupname ./foo/bar But how would I go about if I was in the midst of some remote machine/docker setup ...
2
votes
0answers
25 views

Using umask vs. setgid: best practice for peacefully sharing a directory in a Linux users group?

What is the best way to share a directory between multiple Linux users? Say I have a directory at /foo (a regular directory no NFS or else) and a bunch of users added to the group bar. What I want is ...
1
vote
1answer
47 views

Editing a file without it being executable

I have a file secretinfo.txt inside a directory SensitiveData that I am trying to edit. Currently, the directory and file have the following permissions: drwx------ 2 www-data root 4096 Apr 20 17:39 ...
0
votes
0answers
29 views

How to disable user accounts from being able to login to other's users accounts from the same machine

I have an admin user account, in which I am able to login normally and also by ssh having enabled 2 step verification. I want to create a new user account, say it dummy account, from which I will ...
0
votes
0answers
57 views

Advice needed about deploying website backend files to webserver from git repo

We are trying to improve the management of our website backend files, and are planning to deploy (using git pull) the files from the git repo (hosted on a local (within our organisation) GitLab server)...
1
vote
1answer
18 views

Granting Permission to use TTY Ports

I'm trying to grant permission to my user account to use a couple of tty devices so that I don't need to use sudo to interact with them. These are the properties on the ports in question. 9303 0 crw--...
0
votes
1answer
14 views

Permissions of parent directory (being able to write on it, but not deleting it)

I'm interested in protecting a parent directory (e.g., test in the example below) by being removed (i.e., accidentally, without explicit root priviledges), while at the same time I need to be able to ...

1
2 3 4 5
78