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

How to make each SFTP user unable to see each other's files with ChrootDirectory, but still allow Apache to serve files?

Let's say I'm giving SFTP access to 3 friends on my server: /friends/alice /friends/bob /friends/eve I'd like to prevent each user to list see each other's files. So an easy solution, ...
1
vote
1answer
29 views

Permissions and owner when drive moved from one server to another

I'm pretty sure this question is distribution and hardware neutral. I have a USB drive formatted ext4 with a directory (plus subs) configured for minidlna, owned root:minidlna with permissions 775. It ...
0
votes
2answers
26 views

Debian 11 bullseye : how allow user to use wifi without admin password

In my high school, I installed Debian 11 on some laptops (with the gnome desktop env). When my students use one of theses laptops and want to connect to wifi with their smartphones, a prompt appears ...
0
votes
0answers
24 views

Debian 11 Server - vsftpd virtual users don't work, permission issue?

I have a Debian 11 VM with vsftpd enabled for my local user. I want to create a virtual, FTP only user (who should be rw limited to their home directory). I followed this https://help.ubuntu.com/...
3
votes
1answer
119 views

Permissions of all files and directories in /usr

Oh my.. I just did a terrible mistake: chown -R root:root /usr. Mea [maxima] culpa.. I fixed sudo and pkexec already, but I want to be sure, there is no "sleeping" issue waiting on me in the ...
0
votes
1answer
33 views

how to prevent 'tar extract' from changing the permssions for current directory?

While trying to make my tarballs reproducible, i followed this guide. As a side-effect I noticed that I can easily create a tar-file that, when unpacked will change the permissions of the current ...
0
votes
2answers
37 views

Linux File Permission Query

I want to set a permission for a file abcd.php in such a way so that it can be executed/run by the user/program but the file cannot be deleted or downloaded by user using SFTP or FTP. I tried a lot to ...
-6
votes
1answer
41 views

Permission Denied problem!

When I try the copy or move command, it shows this: cp: failed to access /root/Desktop/ : Permission denied How can I solve this? I'm using installed kali Linux in VM(windows).
0
votes
1answer
48 views

How do I use su to execute the rest of the bash script as that user?

I have a bash script my_script.sh created as a root user that has a part where it has to be switched to a sudo user. I have tried heredocs and it's working, but the issue with it is I can't use ...
10
votes
1answer
2k views

Can not execute "Hello, World!" C program with user other than 'root'

I have written a "Hello, World!" C file myCFile.c on an x86 embedded board on the Debian OS. #include <stdio.h> int main() { printf("hello\n") } I compile the program: gcc ...
-1
votes
0answers
43 views

Why can't I access this directory?

I am using Terminal on my Mac Laptop. I can check the contents of the home directory no problem: % cd % pwd /Users/saqib.ali % ls -altr | head -9 total 1650504 -rw-r--r--@ 1 saqib.ali 1669627094 ...
0
votes
0answers
18 views

Can't create a folder with right click in a mounted hard drive (works with command line)

I mounted an external drive on my computer (debian 11), and changed my permissions and ownership of the file where it is mounted (nehzio is my username) I can create files/folders and delete/modify ...
0
votes
1answer
44 views

How do I give myself permissions to access an external drive?

I'm running Pop!_OS 21.04. When setting up my computer, I created a second account without admin privileges to use as my main account for security reasons. However when I try to access an external ...
0
votes
0answers
39 views

rsync daemon, permission denied

I'm setting up an rsync daemon/client system, and I keep running into a "Permission denied (13)" error. Here's my server-side configuration file: log file = /tmp/rsync.log timeout = 300 #...
1
vote
1answer
51 views

Raspberry 4 stuck in initramfs

im new on this site so i hope im not making myself look super stupid (beside the fact that my english isnt that best) I got myself a Raspberry Pi 4B with an 64GB SDCard of Sandisk Ultra. Installed on ...
-4
votes
0answers
53 views

Changes to a tree

Have been using the following command, but is taking too long to camplete. Is there anyway to report what is going on tho cammand is running sudo find . -type d -exec chmod u=rwx,g-rwx,o-rwx {} + ...
2
votes
4answers
134 views

rm -rf : is there an all or nothing (atomic) approach?

Let's say I have the following structure : $ mkdir d1 $ mkdir d1/d2 $ touch d1/f1 $ touch d1/d2/f2 $ chmod u-w d1/d2 If I try to remove d1, I can't because I don't have write permissions on d1/d2. ...
0
votes
1answer
40 views

Directory permission showing d?

I downloaded some files and saved them in a folder on an external hard drive. Later when I am trying to search for the folder I couldn't find it. So I try searching using the terminal. I listed all ...
1
vote
1answer
41 views

How do I decrypt files with gpg / gnupg without loosing the original file permissions?

I am currently trying to automate the encryption and decryption of a collection of files. For the encryption I currently use: gpg --batch --recipient [RECIPIENT] --encrypt-files [FILES] For the ...
0
votes
1answer
29 views

can't get cron to work on FreeBSD 10.2 for root

This is regarding the FreeBSD: # uname -a FreeBSD gw-mail 10.2-RELEASE FreeBSD 10.2-RELEASE #0 r286666: Wed Aug 12 19:31:38 UTC 2015 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386 ...
0
votes
0answers
31 views

mounting an NFS folder as non-root in linux

I have an NFS server and client setup, both running Linux, and I'd like to be able to mount the shared folder from the client as a non-root user. It's possible do this with the user option in /etc/...
-4
votes
0answers
45 views

UPDATED LINUX WITH FIXED PROBLEM

I installed Ubuntu 16.04 desktop.but when tried the terminal ,it will not let me use "sudo", basically I am new to linux and have seen the page of how to fix a broken sudo, but as an ...
0
votes
1answer
32 views

Can not change file permissions even as root in USB/Pen-drive [duplicate]

I am unable to change the file permission of a file located on my NTFS style partition USB neither as Owner/user nor as root Running ll command Running sudo chmod 774 -v insertion.cpp Again running ...
1
vote
0answers
15 views

service mysql reload results 'Access denied', but service mysql start works

Using Debian 10.10. I have a MySQL problem. service mysql reload results 'Access denied' service mysql start executes correctly. All databases are working correctly after starting mysql. Strange, ...
0
votes
0answers
40 views

rm not working even the user is in the group

I have a file owned by ec2-user. ll -rw-rw-r-- 1 ec2-user ec2-user 6 Aug 25 10:52 testing_file2 I have added an user called user1 into the ec2-user group. usermod -aG ec2-user user1 Then I ...
-1
votes
0answers
16 views

sudo change access permission of other sudos file

I have two Accounts on my Linux machine. Both are sudos, sudo1 created some directories inside their home. I don't have access to the sudo1 account. when I go in as sudo2, I can read the files in ...
0
votes
0answers
17 views

How to back-up directory metadata in the case of a mistake. Is 'getfacl' enough?

There are some wonderful discussions on restoring permissions after an accidental chown -R 777 /, both here and here. However, what I would like to do is make a backup of permissions (plus things like ...
0
votes
0answers
26 views

Can't execute scripts even with required attributes [duplicate]

Originally I was looking for automatic mount of NTFS partition for 2 users with rwx permissions for them. Now I have these options in fstab /dev/sda7 /media/shared ntfs-3g auto,exec,rw,user,...
0
votes
1answer
67 views

What permissions should the /boot directory have?

I have been reading a linux security paper that says we should only give root access to /boot directory. What does mean, in terms of permissions, 'only root access to /boot directory'? If I set up my /...
1
vote
0answers
15 views

How to create nested directory with a specified permission bit for each of the parents directory created?

The following isn't working as expected, and I am trying to understand if this is a bug or is there a hidden configuration in my linux machine that prevented it to create the folder with the correct ...
0
votes
3answers
53 views

Enable a generic user to start X

I have Debian, Sid if it matters, and I'd like to start X from the console, rather than using a display manager, but when i type startx <RET> I receive the following message xinit: connection to ...
-1
votes
1answer
32 views

Linux Folder Group Permissions

I have a question about the permissions on a folder. I have the following Users and Groups: User: home204 User: home370 Groups: testgroup This are the folders i'm trying to change the permissions on:...
0
votes
0answers
11 views

How to create a system user on WSO2 with readonly access to the LDAP server?

I have two systems that include the identity server and application server. My application server needs to read the LDAP information from the identity server. I can create a new super admin on the ...
0
votes
1answer
51 views

unable to create directory '/run/user/7093511/dconf': Permission denied. dconf will not work properly

I'm getting following error message running an aplication: (process:53978): dconf-CRITICAL **: 12:30:48.383: unable to create directory '/run/user/7093511/dconf': Permission denied. dconf will not ...
0
votes
1answer
22 views

rsync: chgrp "/backup/sql_backup/.backup-20210817mysql.tar.gz.nWPkhd" (in my-app) failed: Operation not permitted (1)

User:- Root /usr/bin/rsync -hprltaq --include '*/' --include '*.gz' --exclude '*' "/var/cache/backup/backup-20210817mysql.tar.gz" <storage_IP>::my-app/backup/sql_backup/ error:--> ...
0
votes
1answer
40 views

Correct permissions and ownership, still get "operation not permitted" with chmod

I'm getting "operation not permitted" even though I am in the group that owns the folder (and parent folder). [acoder@box documents]$ chmod 770 customer123/ chmod: changing permissions of '...
0
votes
1answer
26 views

mkstemp failing with RHEL 8 OS non-root user

I have small script which creates a tmp files using mkstemp. My script was created using root user , but if I logged in as someother user other than root then my scripts runs but msktemp fails and ...
0
votes
0answers
43 views

read with sudo: why still permission denied [duplicate]

I use sudo su to become root and run a (borg) backup on a filesystem mounted at /mnt. Some of the directories and files have permissions 0600 and I receive permission denied when trying to read a file....
1
vote
1answer
34 views

Reading/Accessing a file owned by user account which is under a directory that is owned by root

I have a ssh only user account called pgbackrest with disabled password . I have created a directory /etc/pgbackrest/ as root (sudo mkdir -p /etc/pgbackrest). Then I create a config file under the ...
0
votes
0answers
15 views

Unable to access GCP VM after change in permissions

I was able to access my GCP VM instance until today morning. I had to share VM access to my colleague and I executed chmod -R 777 filename Since then I am unable to ssh into my VM instance. Now as I ...
1
vote
1answer
42 views

Time-delay file editing

In pharmacies, certain drugs are in put in a time-delay safe, which means there is a fixed lag between the retrieval request and the time the safe is able to open (say maybe 15 minutes). I'm wondering ...
0
votes
0answers
21 views

Network Share mounting as root

I have three computers on the network. I am using one as a file server(Debian) and two are mounting a folder on the file server(Ubuntu and Xubuntu 20.04). Both have the same exact line in the /etc/...
0
votes
0answers
30 views

Is there a way to allow a directory only to contain symbolic links?

I was wondering if there was a way to allow a directory only to contain symbolic links, but no standard files or directories. I want to get permission denied if a file is not a symbolic link. Maybe ...
1
vote
1answer
30 views

Managing website with a git server

I have a website up and running with nginx, and I have some content in my website that I want to manage with git so that others can collaborate. Let us say that have a user named alice and that the ...
1
vote
1answer
22 views

It's possible to restrict access with PAM based on groups?

I was wondering if it's possible to create a rule in /etc/security/time.conf in which you restrict users to log in not just by username but instead by the group they belong to.
0
votes
1answer
35 views

chmod 070 allows all but owner of file to wrx

Directory permissions: d---rwx--- 2 root wheel - 512 Aug 5 15:43 Test/ File permsisions: ----rwx--- 1 chambi wheel - 33 Aug 5 15:42 loop.py* Both the directory and file only ...
0
votes
1answer
17 views

Restore default permissions on /dev/pts

Hey guys I tried to activate multiuser for some screens so I used screen -A -m -d -S test screen -S stest -X multiuser on screen -S test -X acladd testuser But I got chmod /dev/pts/17: Permission ...
3
votes
0answers
45 views

can not delete file with root in /etc/pam.d directory

can not delete file in /etc/pam.d directory with root user on centos7.7 system,please help work out this problem. #rm -f /etc/pam.d/2.txt rm: cannot remove ‘/etc/pam.d/2.txt’: Permission denied ...
0
votes
0answers
15 views

autofs nfs share served and mounted on same PC reporting permission denied when writing

I am using nfs between multiple Debian 10 machines in my local network, with the same basic setting across the board, and they are all working as expected. I am using autofs as root to mount and ...
-3
votes
1answer
69 views

command to change directory into system file

all files in directory became locked as system files. no user even root can change - so chmod does not work. What command changes directories and recursive files to system files ? this behavior only ...

1
2 3 4 5
80