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
4 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
16 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
12 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
18 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
11 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
19 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 After that suddenly I received /var/tmp/rpm-tmp.5WIuFR: line 9: /etc/init.d/xxx-driver: Permission denied What is this ...
2
votes
1answer
57 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
41 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
48 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
21 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
10 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
32 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
13 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
22 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
37 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
15 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
62 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
42 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). ...
0
votes
1answer
26 views

Shell - unzip file and set permission for all files

I have zip file created on windows and I want to extract it on Linux. For extracted files, I want to have permissions 644. However, extracting files end with 770. I have tried umask 644 unzip update....
3
votes
3answers
80 views

Who runs the interpreter for files that are execute-only?

If the current user only has execute (--x) permissions on a file, under which user does the interpreter (specified by #!/path/to/interpreter at the beginning of the file) run? It couldn't be the ...
0
votes
2answers
60 views

changing permission not permitted

I have this directory drwxrwxrwx 2 root root 4096 May 3 21:06 tmp I'm the user "jenkins", and I try: chmod -R a+rwx tmp/ But I get chmod: changing permissions of `tmp/': Operation not ...
0
votes
2answers
23 views

Access serial port of sshfs mounted filesystem

I'm trying to read /dev/ttyUSB0 of another computer mounted via sshfs, however commands such as cat /mnt/tmp1/dev/ttyUSB0 return "Permission denied" (I'm mounting the filesystem to /mnt/tmp1). I've ...
-2
votes
0answers
28 views

Is there a way to replace a file in /usr/local/bin without sudo access?

I'm creating an installation package that puts an bin file in /usr/local/bin (my choice, I could change that). The goal is to have the bin file in $PATH and executable by a standard user. Another ...
1
vote
0answers
23 views

How to add a program to a group

I have a program 'vboxmanage' that is owned by root and root ( means root user and root group I suppose ). My requirement is that the program vboxmanage should be accessible by another program '...
0
votes
1answer
34 views

Can I extract an overwriting tar archive, while retaining the ownership of the original destination file(s)?

I have a particular use case, where I want to extract a tar archive (as root) and intentionally overwrite some destination file(s) with the contents of the archive. This is all fine and easily ...
1
vote
2answers
62 views

All files or folders copied from an NTFS drive are with drwxrwxrwx rights. Can I correct this easily?

I went from Windows 7 to Debian 9, copying most of the files I'm using for my projects from an NTFS drive. I see that : all the folders I have copied are now with rights drwxrwxrwx instead of drwxr-...
0
votes
1answer
27 views

Cannot edit crontab from service

I'd like to schedule a daily autoshutdown via sudo service autoshutdown start or either abort it via sudo service autoshutdown stop. /etc/systemd/system/autoshutdown.service [Unit] Description=...
0
votes
0answers
26 views

Run a single process that can fork and clone as a non-root-user

I wish to run a docker container which runs a single os process, forks a clone of itself through invoking '/proc/self/exe'. This process will be launched by a user of the container, who may be a ...
0
votes
1answer
67 views

Allow a non-super-user run process to fork and clone itself (probably duplicate)

Question I would like to launch a Docker container which runs a process which may or may not clone itself. Is it possible to set up a user with normal + clone_newuts permission so that I do not have ...
0
votes
0answers
26 views

User with nearly all admin permissions but not allowed stop a single app or to delete its relevant files

How can I create a user on macos who has nearly all permissions of admin user, but is not able to stop a binary whitelisting/blacklisting system (https://github.com/google/santa) from execution nor is ...
0
votes
0answers
40 views

Mounting squashfs with correct permissions

I frequently use mksquashfs to make backups of folders on various systems. Sometimes this results in files which cannot be read by any users upon mounting. If I do a sudo mount file.squashfs /to/...
0
votes
1answer
14 views

Permission Error with Fill Path Only

I have a script on a RHEL 7.x machine written in Python3. In testing this script I created a function which will append to a text file in the same directory. If I execute the script from the local ...
0
votes
0answers
27 views

What's causing folder to change ownership?

I have something funky going on with a few folders I'm hosting on a parallel filesystem. Every so often, the group ownership on the folders will revert to root:root Instead of an appropriate service ...
1
vote
0answers
20 views

unexpected behavior of 'rpm --setperms sudo'

rpm --setperms sudo on a fedora 29 fresh installation sets /usr/bin/sudo's permissions to 0777; i confirmed it by reinstalling sudo using dnf, which will correctly set the permissions to 4111 and then ...
1
vote
1answer
39 views

Can still cat/tail/head/etc. a file without the read permission

So as root, when I try to cat a file without the read permission, I can still see what's in it, which seems kind of strange, because as root I cannot write to a file without the w permission (it opens ...
0
votes
0answers
29 views

How can I edit sudoers file if I have lost permissions despite providing root password?

While working on ubuntu, I have edited sudoers file and allowed myself to run only mkdir, cd command. Now I am unable to execute, install any command. Even visudo is not working despite providing root ...
0
votes
1answer
88 views

sed Shell Script not working correctly

I have this shell script that is supposed to go through a file and replace its primitive types with other specific text (it's for an assignment). The script is below: #!/bin/bash #Goes through an ...
2
votes
1answer
59 views

How do operator/wheel groups work on FreeBSD?

On FreeBSD 12.0-RELEASE-p3 ls -l /dev/ada1 gives me: crw-r----- 1 root operator [skipped] /dev/ada1 If I use the command gpart recover /dev/ada1 from a non-root user account, who is in the group ...
0
votes
0answers
109 views

Permission denied inside docker container

I have ssh'd into a CentOS 7 docker container as root. I am trying to create a directory (mkdir mydir/test) but I am getting a permission denied error. I tested to make sure I was root with whoami ...
3
votes
0answers
39 views

restrict access to the webcam to certain user/software on Ubuntu 16

I would like to restrict the access to the webcam only to certain programs/users. I use Ubuntu 16.04. If I am right my webcam is linked with /dev/video0 (just as an example), which is owned by root ...
0
votes
1answer
41 views

How to handle Nginx and PHP ownership of log files?

I currently am running a Nginx reverse proxy in front of an Apache PHP server on Ubuntu. I have a file, log.txt, in the same directory that I serve PHP files out of for my site. PHP writes to this log ...
1
vote
1answer
53 views

Why does Unix ask for password when I try to pull a file with permission 777 using scp?

Let us consider that I have a file /home/base/alpha.txt with permission 777 i.e. -rwxrwxrwx in user@host. Now, from system host1 as user1 i.e. user1@host1, I try to pull the file mentioned above using ...
1
vote
1answer
32 views

stop force save on a file with read only permission

I have a script file that is currently in sudoers, and for security I want this file to be read only... so I issued the following chmod: chmod 555 test.sh Now the permissions on this file are -r-xr-...
6
votes
1answer
247 views

Huge performance difference of the command find with and without using %M option to show permissions

On my CentOS 7.6, I have created a folder (called many_files) with 3,000,000 files, by running: for i in {1..3000000}; do echo $i>$i; done; I am using the command find to write the information ...
-1
votes
1answer
47 views

Not able to switch to root user via command line [duplicate]

On my centos 7 vps server, to secure my server I disabled root login via ssh. I created a new user called erdem and login with that user via ssh. After I login via ssh with user erdem, I would like to ...
0
votes
1answer
31 views

How to setup htdocs permissions for development VM?

I downloaded Bitnami's Magento VM (OVA, using it in vmware on windows). It is a Debian 9 (Debian GNU/Linux 9.8 (stretch)) with Apache/2.4.39 (Unix), PHP 7.1.27. By default, it is configured to serve ...
0
votes
1answer
63 views

Website cannot write to files or create directories

I've been trying to install TeemIP for about 6+ months now and I've never been able to figure out this issue on Centos7. The error I get is the following: The directory '/var/www/teemip/public_html/...