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

Kdenlive installed with snap have permission problem

-Linux Mint 19.2- I installed kdenlive from snap with "sudo snap install kdenlive", that was my first time using snap to install something. Kdenlive got installed properly, can open it up from ...
0
votes
0answers
15 views

NTFS Logical Drives Permission Denied

I am unable to get into the second (NTFS) drive on my Ubuntu 18.04 machine. When I click on the drive icon, I get an error about not having enough permissions. This is what the FSTAB file looks like (...
0
votes
0answers
7 views

babel could not write cache to file /usr/share/kibana/optimize/.babel_register_cache.json

I am trying to install ELK stack on Centos7 server using this: https://www.elastic.co/guide/en/elastic-stack-get-started/current/get-started-elastic-stack.html I had older version of ELK on the same ...
0
votes
1answer
33 views

How to fix FTP permission issue?

Have set up an FTP server and user. but it seems I'm unable to upload or edit any file. Even though the user has filled 777 permission. I can't even upload files to the user's root folder. Server OS:...
0
votes
1answer
15 views

Permission command is not working

I am working on Linux Mint. I am not so expert in permission commands. My directory is /var/www/html/themeexplorer/destiniy/. After running sudo find . -type d -exec chmod 755 {} \; command I found ...
1
vote
1answer
27 views

hiding a file from sudo rm -rf * (or skipping)

I am trying to hide one new file from a script that contains 'sudo rm -rf *' - I am wondering if I can do this without redoing the script/ if this is possible or not. I have tried the following: $ ...
0
votes
0answers
25 views

Give different permissionson to folder and subfolder to different users

I am new to Unix and trying to deeply comprehend giving permission for folders for different users. I have three users Anton, Anna and John and they belong to the same group. Lets imagine, Anton has a ...
0
votes
2answers
40 views

Error while loading shared libraries: /tmp/zshgYCSAH: file too short

While trying to execute, in the zsh, the following command taken from here /lib64/ld-linux-x86-64.so.2 =(/bin/echo -e '#include <stdio.h>\nint main(){printf("c one liners\\n");}'\ | sudo gcc -...
1
vote
1answer
56 views

Is /usr/src a valid location for a custom kernel?

While learning how to build and install a custom kernel (for kernel hacking), I came across a contradictory statement. In this StackExchange answer, the author states: in the following ...
0
votes
1answer
26 views

How to fix my error when trying to update on vmware kali?

I have Vmware workstation player 15 installed Kali Linux 2020.1. When I try to update on vmware kali I'm getting this error: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission ...
0
votes
0answers
26 views

Error opening the wallet kdewallet

I did a fresh install of KDE neon a while ago and I cannot figure out how to solve this problem: When I start my laptop and try to connect to a wifi network, even the networks I connected to before, I ...
-1
votes
3answers
41 views

How do I use a file with a setuid binary bit to access root?

I have a file with setuid binary permissions. I need to access root and I'm not sure how to do it with just this file. This is merely for practice purposes only. Will anyone help me?
1
vote
0answers
25 views

File permissions while sending the file from one Linux host to another host

One of the source servers is sending the files to destination servers using lftp. The umask setting in the destination host is 007(in proftpd.conf file), so the files landing in the destination ...
0
votes
1answer
21 views

Using rsync to back up /home folder with same permissions, recursive

I would like to request information on using rsync. I tried reading the manuals, but the examples are few and confusing for me. I do not need advanced features or live sync or remote sources or ...
1
vote
2answers
39 views

Running a command with root priviliges without SUDO and not as root user

How can you run a command (e.g. iftop or similar) that requires root privileges from a non-root user and without using SUDO in front? Alternatively, how can you give root privileges to a user ...
0
votes
1answer
18 views

Is there a 'good' way to enable a user to use wg-quick without root access?

I've set up wireguard and I am very happy with it, I can't help but wonder two things though: How come wg-quick can only be used by root ? Can I give another user permission to do wg-quick <up/...
0
votes
1answer
19 views

How you know this file, this permission, this ower, this group?

I have some server where I completely messed up the permission with some chmod -R I'm looking for a better user permission management. I'm on windows, and I have to manage 4 different servers with ...
0
votes
1answer
12 views

Switching user inside tmux session: Cannot attach to other tmux server

I have this scenario on a server userA (uid 1000) logs in over SSH and starts a tmux server and some sessions userB (uid 1001) logs in over SSH and runs su userA to become userA inside of a tmux ...
1
vote
0answers
33 views

Apache2 on Debian with ISPConfig giving 403 after updates

I did an update on one of my servers and I am now getting a Forbidden 403 error on the website that is hosted here. The site is getting the error 403. Forbidden You don't have permission to access ...
-1
votes
0answers
23 views

package locating problem and Permission denial problem in sources.list in Kali

Whenever I try to install some package in Kali Linux through sudo apt-get install package_name, it gives me following message [sudo] password for bilal: Reading package lists... Done Building ...
0
votes
0answers
15 views

No exec permission kn files created by deluge

I have deluge in a docker (linuxserver) and every time it downloads a file I get rw-rw-rw- permissions, no execute permission. I tried changing the umask to 0, but still getting the same problem, and ...
0
votes
1answer
19 views

Can't delete file - only permissions change - why?

I am trying to delete a file and while it works fine through the shell, when I call my script from another program, instead of deleting the file, it merely changes the permissions to something odd: $ ...
0
votes
1answer
27 views

What is the full list of rules that defines permissions on a newly created file in a directory?

I have a directory that has rwxrwxr-x and -s- permission settings, if I create files in this folder from user A these files gets permission rw-rw-r--, and with user B it gets rw-r--r--. I'm really ...
0
votes
0answers
43 views

Run a script as root with SUID [duplicate]

I created a simple script on Ubuntu Server 18.04: #!/bin/bash apt update apt upgrade then I changed the owner to root # chown root update.sh then I added SUID bit and execution bits for user and ...
-3
votes
1answer
28 views

mkdir permissions needed for script called by systemctl start service

How can I give mkdir permissions to a script that is called by sudo systemctl start <service-name> ?? Here is the error being thrown in the results of sudo journalctl -u jekyll -f when I type ...
0
votes
0answers
13 views

Can't open socket im systemd service

I have a software written in C language which opens a UDP socket to my server through internet. I use a systemd service approach to run the code at startup. It works fine. But in some cases which I ...
0
votes
0answers
52 views

Linux doesn't boot: I changed the location of usr/sbin

This is a follow up to my previous question but I will explain it better here, since I now know exactly the problem. EDIT: The command that screw everything up: /usr sudo mv sbin local I ...
0
votes
0answers
28 views

How to make everything run with password

Is there a way to make all commands and all apps run after requesting a password of root so that will increase security Against hackers because no command run without root password?
0
votes
1answer
28 views

Solution for sudo chmod 700 /bin && sudo chmod 700 /bin

I accidentally run sudo chmod 700 /bin && sudo chmod 700 /bin Then I couldn't run sudo or any commands again please is there a solution?
1
vote
0answers
15 views

Restricting microphone access to certain apps

I would like to prevent some apps from accessing the microphone while still granting permission to other apps. Is this possible to do this from a settings-like environment (it doesn't have to be a GUI)...
0
votes
4answers
92 views

Effective ACL permissions changing permissions

From a bash shell script, I am creating a folder and storing the mysqldump there. I am sure that there is no command related to permissions in my script. To allow an other user to access these files, ...
1
vote
0answers
26 views

Why do files become 'invisible' when execution permissions are revoked? [duplicate]

This is somewhat related to my, now resolved, question here here. When I ran chmod 666 on group of files they stopped showing up in the GUI (thunar) but I could see them when I ran ls. When I found ...
0
votes
0answers
33 views

How to create a “View” user in Ubuntu? or live custom image?

@Edited Hello everybody, I'm trying to build a small remote access solution using a computer with Ubuntu 18.04 installed and the objective is to create a solution plug-and-play, to access remote ...
0
votes
0answers
9 views

Openldap:: insufficient access (50) while users bind

I created a user tom as follows dn: uid=tom,ou=People,dc=example,dc=com objectClass: inetOrgPerson cn: Tom sn: Novembre uid: tom Then added password for this user Finally I'm trying to test the ...
0
votes
1answer
30 views

How to execute a program with sudo rights but without the root context?

I want to start my IntelliJ IDEA with privileged rights. That is because when starting my Application within the IDE it starts a SFTP server. This is only working if I have the permission to do so. ...
1
vote
1answer
76 views

Why does firefox-nightly not produce sound when speaker-test works fine? | Permission errors | Pulseaudio | Arch Linux

I am on Arch Linux install with i3-gaps. I have tried speaker-test -t wav -c 2, and both headphones and speakers work. Sound occasionally starts working when I play around with sudo -u user pulseaudio ...
3
votes
2answers
24 views

How to have files extracted from archive inherit permission from parent folder

I'm using a Centos 8 Linux with multiple user belonging to the same group accessing a number ff folder/subfolder and files in the same FS (xfs). I want all files and folders have write permission for ...
0
votes
3answers
35 views

Can I list a directory with `-wx` permissions by brute force?

As I understand it, denying a user the reading permission on a directory should prevent them from listing its content. Giving them the execute permission allows them to access its content, but only if ...
9
votes
2answers
919 views

Is it possible to forbid a specific user from executing files on /usr/bin without changing all files permission to 750?

I understand the concept of managing permissions on Linux with chmod using the first digit as the user, the second as the group and the third as other users as described on this answer in ...
3
votes
4answers
384 views

Permissions on folders vs files?

if I have a folder that's restricted with say 600, thus no access for group or everyone, but the folder contains files with 777, would this be safe? Are there any work-arounds to access the 777 file ...
0
votes
1answer
27 views

Sorry, user nagios is not allowed to execute 'SCRIPT.sh' as root on <HOST>

user1@<HOSTNAME>:~$ sudo -H -u nagios bash -c "sudo /usr/localcw/bin/check_disk.sh -w 10% -c 80% -p /boot" Sorry, user nagios is not allowed to execute '/usr/localcw/bin/check_disk.sh -w 10% -c ...
0
votes
0answers
5 views

Is it possible to define different permission for different service by FreeIPA?

Now using Red Hat Identity Management as IPA solution. Will serve some products such as Jenkins, Github, Artifactory, etc. Now want to create different permission to different users for different ...
1
vote
1answer
81 views

Disable su and sudo access for users

I have created a couple of users who use their SSH Keys to log in on a server. I don't want any user to have root access, i.e, no user should be able to do sudo su or su - another user. When I check ...
2
votes
3answers
115 views

facl, setfacl, directory share, why does cp put the original file permissions into facl mask? Shouldn't that be cp -p behavior?

The users on this system are careful and have their umasks set to the very private 0077. However, the users would like to have group specific directories, where files may be copied so as to ...
0
votes
2answers
171 views

Asked for sudo password only sometimes

This is more of a curiousity, trying to learn more about linux permissions. So I don't understand why I am able to sudo certain commands and not be prompted for a password but not others. I know that /...
3
votes
2answers
242 views

Recursive chmod to 644 where current permission equals 755

I copied a project directory to a portable hard disk, wiped my laptop and copied the project back, but now git reports loads of changes due to files that previously had 644 permission changing to 755. ...
3
votes
1answer
103 views

Linux File Permissions lying to me

So I am the user david and according to ls -la the file permissions are 700 and the owner is david. I can not understand why I am not allowed to write to the file. The stat command returns something ...
0
votes
2answers
39 views

How to change permissions on a file on SD card

Changed the permissions on a file, bsj: /media/cwh/BA70-05FE/swdev$ ls -al ~/work/sw/swdev/ total 12 drwxrwxr-x 2 cwh cwh 4096 Feb 28 22:21 . drwxrwxr-x 4 cwh cwh 4096 Feb 28 22:21 .. -rw-r--r-- 1 ...
0
votes
0answers
19 views

How to change default postfix email permissions?

I need to configure Postfix so that it sets chmod of emails automatically to 0704, in order that a flaskapp run by apache2 could access them and show them to running user. I need flask to be able to ...
0
votes
0answers
40 views

Samba 4 permission problem, force user/group

Samba is configured to use user 'torrent' and group 'users' for guest access. I am not able to alter directory and its contents without them having g+w permissions. I'd like to have this directory ...

1
2 3 4 5
71