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.

0
votes
1answer
26 views

Logrotate “permission denied” error

I am trying to get logrotate to work and keep getting the follow error message. /etc/cron.daily/logrotate: error: error accessing /ftp/logs: Permission denied error: error opening /ftp/logs/...
0
votes
0answers
25 views

Can't copy file with read permissions

I have a file which I can't seem to copy even though I have permissions as user1 > sudo -u user1 cp item1 some/nested/dir cp: cannot create regular file 'some/nested/dir/item1': Permission denied ...
0
votes
1answer
24 views

Why can't my webserver write (PERMISSIONS ISSUE)

I have this filesystem $ ls -la /var/www/myapp/api/project/files/ total 12 drwxrwxr-x 3 me me 4096 Jun 17 14:28 . drwxrwxr-x 10 me me 4096 Jun 17 14:27 .. drwxrwxr-x 2 me me 4096 Jun 17 14:28 cache ...
1
vote
0answers
23 views

tor fails in systemd, will start in foreground

I am trying to get tor running on a Pi Zero using systemd (start at boot). Tor will start as a foreground #/bin/tor Jun 16 00:53:57.920 [notice] Tor 0.4.0.5 running on Linux with Libevent 2.0.21-...
0
votes
2answers
36 views

Restrict a user to home directory without modifying /home/%u permissions

I'm still a novice with Linux. I'm building an Ubuntu mail/web server that multiple users will use. I would like to restrict users to their home directory so they can login, change their password, or ...
1
vote
0answers
16 views

to set the default permissions on files under a specific folder

Scenario: We're receiving the below files from upstream which is a mainframe system. -rw-rw---- 1 s36748 xyz 293 Jun 6 19:20 CSJ_H_20190606.csv -rw-rw---- 1 s36748 xyz 3284 Jun 6 19:20 ...
1
vote
2answers
11 views

Removing mount default execute permission of text files

I want to mount all text files without execute permission to eliminate the (Run in Terminal - Display - Run) message, which appears every time I open a text file in Linux Mint. I have the following ...
2
votes
1answer
66 views

Why choose a umask of 002 over 022?

I was cleaning up groups and permissions on my home system today, and re-familiarized myself with umasks. It seems that the default on my system (Ubuntu 18.10) is 002, but that for root it's 0022. ...
0
votes
1answer
22 views

Proper permissions for Laravel project in /var/www/html

I want to create a Laravel project in /var/www/html using composer. Since composer won't allow you to run as root, I can make a directory and give it all the permissions 777 but I don't think that's a ...
0
votes
0answers
14 views

How to copy ownership and permissions using rsync but not the files

I am using AWS CodeDeploy to copy files from git to the server. It can't overwrite the files, so I have to move the files to another temp location and then it moves the files from the repo to the ...
0
votes
1answer
52 views

How to prevent someone with remote access from changing my file permissions?

If someone gets unwanted remote access to my computer/OS, what's to prevent them from opening a terminal and changing the permissions on my files? I have a FW that is very good, but, let's assume ...
1
vote
2answers
26 views

Discard “access denied” stderr natively in find

Is there an option in find that allows me to suppress the error messages that I get from it trying to access directories for which I don't have access? I know I can just discard stderr, but it seems ...
0
votes
0answers
21 views

Chromeos Linux Beta

I am attempting to install Krita on my chromebook. I have 'turned on' linux beta and chromeos prompts me that 'Shared folders are available in Linux at /mnt/chromeos...' Issue debian@penguin:/mnt/...
1
vote
1answer
31 views

Cron Job Console Connect and Root Permissions

I'm working on a script for user Bob with the relevant parts shown below. Problem I'm having is if I put this cronjob under user Bob, zenity will work but shutdown wont. And if I put it under root ...
0
votes
0answers
33 views

How to use read-only permissions to prevent corruption on a writeable filesystem?

I'm developing an embedded Buildroot OS for the Raspberry Pi. This system will be turned off by simply removing power (there will be no shutdown timer), therefore it must be able to handle poweroff ...
0
votes
2answers
49 views

Can you still access the current directory (or root directory), if your user does not have permission on that directory?

It is possible for a program to inherit or be passed an open file descriptor, for a file it would not otherwise be permitted to read (or write). For example: (sudo -u nobody echo "hello world") > ...
-1
votes
2answers
82 views

How to test file permissions using shell script?

I am testing if my file has read permissions, by running this script as root: #!/usr/bin/env bash FILE="/etc/shadow" if ! [ -r $FILE ]; then echo "Hello" fi exit 0 Ideally, script has to print ...
3
votes
0answers
29 views

How to mount files as specific user when using docker namespace remapping?

Problem description: I have a webservice using docker to run nginx and haproxy (among other containers). I want to provide these docker images via a private docker hub registry, and thus don't want ...
1
vote
1answer
39 views

Bash Script to create a file for each unique permission in a listing/find command and printing each directory/file path instance of that permission

I'm trying to create a bash script that will be able to perform a find command to get the permissions and full path of every file/directory in a directory tree and create a file for each unique ...
0
votes
1answer
28 views

Set File Permissions to Default from Umask

https://geek-university.com/linux/set-the-default-permissions-for-newly-created-files/ So I want my umask (command) which in this case is 0002 to be subtracted (bitwise) from 666 for files and 777 ...
0
votes
0answers
20 views

What permissions are required to see USB langid as a user?

As a user, I need to be able to read the langid of a USB device. Run as my user, the output of lsusb -v it gives me limited information on all USB devices (note second line) Bus 001 Device 002: ID ...
0
votes
0answers
26 views

ACL not working as expected [duplicate]

I am using a Centos7 machine. I have created an user named bob and assigned him read and write permissions to a folder named "/var/www/html" using the command setfacl -R -m u:bob:rw /var/www/html/ ...
0
votes
1answer
18 views

Dealing with USB drive read/write operations in scripts with no sudo privileges

I'm developing an application which at some point needs to write in a USB drive unit. The application gets executed with non-superuser permissions and I've thought the best way to write on the drive ...
1
vote
1answer
37 views

How to express `find`'s -writable and -readable tests, when they are not available?

Sometimes on old Linux systems, I experience that find doesn't support -writable and -readable tests, which test whether the file or directory is writable/readable resp. for the current user. Say, I ...
0
votes
0answers
40 views

upgrade openssh rpm error: unpacking of archive failed on file /usr/bin/ssh-keygen: cpio: rename failed - Permission denied

rpm -Uvh openssh-5.3p1-124.el6_10.x86_64.rpm openssh-server-5.3p1-124.el6_10.x86_64.rpm openssh-clients-5.3p1-124.el6_10.x86_64.rpm openssh-askpass-5.3p1-124.el6_10.x86_64.rpm warning: openssh-5.3p1-...
0
votes
0answers
21 views

Hide folder that user uses currently

I'm searching for a ftp server or any idea to achieve hiding folder from others when somebody is working in it. For example: I have 3 folders: A B C when I working in A, anybody who is also connected ...
0
votes
1answer
34 views

Elasticsearch fails to start with 'permissions read' error even though read permissions exist

I have a symlink at /etc/elasticsearch/analysis that points to a mounted drive at /elasticdata/fileshare/analysis on Ubuntu 16.04 LTS Azure VM. When I try and start elasticsearch I am getting the ...
1
vote
0answers
42 views

Why can I change permissions for a file with 000 permissions? [duplicate]

I have the following file: ------- 1 user user 0 may 26 14:07 a.tar.gz When I execute chmod 777 a.tar.gz, the file permissions change. Why does this happen, and how can I block it?
0
votes
0answers
26 views

Permission setup for two different groups of users in the same directory

I need to find the optimal permissions layout for the following use case: There is a AIX machine used for collaborating on software projects. Each project has its own sub-directory. For each project,...
1
vote
1answer
25 views

NOQUEUE: SYSERR(www-data): can not chdir(/var/spool/mqueue-client/): Permission denied

Here's the folder: drwxrws--- 2 smmsp smmsp 4096 May 25 22:47 mqueue-client/ So I did this... usermod -a -G smmsp www-data # groups www-data www-data : www-data smmsp But I still get this error ...
0
votes
1answer
18 views

How to give permissions for all users to execute a program installed by sudoers?

I installed a Perl program with many external dependencies in /opt/Soft (ubuntu 18 ) using sudo su at first step. Once installed, I exit the "sudo su" mode I could not anymore execute the program as a ...
0
votes
0answers
38 views

libvirt: Permission denied for disk volume file

I'm trying to create a qcow2 volume with libvirt+qemu in a custom volume pool, then consuming that volume in a new domain. When trying to create the volume, I get an error from qemu-system-x86_64: ...
0
votes
1answer
21 views

Getting the right file permissions when building packages in /usr/local/src

As far as I understand, when you build a package foo located in /usr/local/src you shouldn't need to be root. However, when I extract the package and try to run the build script it fails because it ...
0
votes
0answers
20 views

File permissions on Nextcloud/Apache2 Debian

I am facing a problem with a nextcloud installation on an apache web server which runs on debian. I have a domain pointing to the /var/www/html directory. In this directory I have the directory ...
1
vote
0answers
27 views

RHEL-7.4 Linux rpm file Installation error

I tried to install rpm file in RHEL-7.4 Linux using: # rpm -i xxx.rpm /var/tmp/rpm-tmp.5WIuFR: line 9: /etc/init.d/xxx-driver: Permission denied What is this error and how to resolve it?
2
votes
1answer
61 views

Why can't I access a symlinked directory

I want to (soft)link my .thunderbird dir onto the actual directory which is on a SD card. Thus, (xenial)florian@localhost:~$ ls -la /var/host/media/removable/SD\ Card/.thunderbird/ total 24 drwx-----...
0
votes
1answer
43 views

cant delete files

im tidying up my back up drive root@raspberrypi:/media/pi/Seagate Expansion Drive/Jane-PC# ls -la | grep Goo drwx-w--w- 1 pi pi 4096 Nov 17 2016 Google Calendar - Month of Nov 2016_files -rw-----...
0
votes
0answers
17 views

In what circumstances i cannot create setuid for file and stickybit for dir? [duplicate]

I am running with Linux RHEL 7. I am trying to understand why I am not able to create setuid for file and sticky bit for directory. I am trying to create my own dir with sticky bit and then some ...
0
votes
1answer
49 views

How to give permissions to all files of a server in a user without making him the owner

Recently I had a project which was about ssh connection with an Amazon EC2 server. In this project I was asked to create a user than can have read permissions -only- to the whole server (all files in ...
0
votes
0answers
10 views

creating a chroot sftp user connecting to a different directory

I created a user and added it to its own group at the bottom of my sshd_config i added Match Group sftpusers ChrootDirectory /var/dir1/dir2 ForceCommand internal-sftp However, it gives ...
0
votes
1answer
22 views

How to operate on a directory with different owner from a script?

Few days ago i have installed elasticsearch, For diagnosing some problems on my elasticsearch setup, i have checked the logs files located in /var/log/elasticsearch and tailed them but apparently the ...
0
votes
0answers
12 views

ACL: Wrong owner & group after mounting

I try mounting the filesystem of our NAS on my Linux machine. I mounted the filesystem from the share with my username: sudo mount -t cifs -o user=username,sec=ntlmv2i //share /run/media/user/...
0
votes
0answers
8 views

Permissions -o Nautilus -o Auth

What is this interval that is made after the first attempt to open a directory that has no permissions at all, so in case of nautilus its the current users password, so, what can i do to get rid of ...
1
vote
2answers
34 views

Can't open file even though directory/file is owned by user and in group

I am having a really tough time understand user/group permissions. I have spent hours reading and trying things. Here is what I have: Directories Permissions Input 1: ls -lhd Output 1: /var/log: ...
0
votes
0answers
16 views

Ubuntu SFTP upload permission

I have a ubuntu 16.04 server, where I would like to upload files only an exact folder. structure: files |_ static |_ xyz... |_ uploads I want an user to write/read only the uploads ...
1
vote
0answers
23 views

Folders and files permissions for SDKMAN tool on Ubuntu

I am Java developer trying to set up my local CI server using Linux Mint. One of the crucial tools I would like to use is SDKMAN - the tool that allowes easy installation and management of different ...
0
votes
0answers
71 views

get back sudo with Putty: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

apparently I messed up too much with my permissions and now I'm getting this while trying to use 'screen' again: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set If I try: chown root:...
0
votes
0answers
21 views

Allow all users full read/write access to CIFS share with automount/autofs

How can I configure autofs/automount so that every single user has full access to an auto-mounted CIFS share? More information This is what I currently have configured: /etc/auto.master /mnt /...
1
vote
1answer
69 views

Can't run file on Linux Mint because of permissions/ownership issues

I use VirtualBox 6.0.6 on Windows 10 to work in Linux Mint. I use a USB drive with a programming environment on it (Portacle). It contains an executable file (portacle.desktop). I found myself unable ...
0
votes
0answers
57 views

Permission denied opening pipe when i have all the permissions (redirecting input)

I have 2 users, user A and user B. The user B creates a named pipe with all permissions(rwxrwxrwx). USER B: execute ./test < input.txt (test is a program that writes from stdinput to the pipe). ...