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

Can't enable upload permission in vsftp with virtual users

I have virtual users working great in vsftp, each with their own directory. However, I can't figure out how to permit uploads (write) for a single user. My config is below. I have a feeling it has ...
0
votes
0answers
7 views

Cannot access automounted read-only nfs-shares

I am trying to set up automount to access folders on my NAS. I kind of got it working, except I can't access the shares that I have defined read-only permissions to on the NAS. So, for dsbackup, I ...
0
votes
0answers
23 views

Shared folder belongs to root in VirtualBox

I have a Kali Linux guest running on a Windows 10 20H2 host, and I have a shared folder on the guest which is only accessible by root, which I prefer not to use for everyday tasks. Most websites say ...
0
votes
0answers
13 views

How is it possible that processes in root-group can't both read/write to file in same group?

I am encountering a strange security issue on a Linux machine. I have 2 files (a.sh and b) that are trying to read and write to another file (c). -rwxr-xr-x 1 root root *** Nov 1 2020 /...
0
votes
0answers
33 views

ssh localhost: Permission denied (publickey) Ubuntu on WSL2

Previously asked this question on askubuntu.com but I thought this is rather a general linux question so I'm asking here again: I'm having trouble "sshing" to localhost and getting a ...
0
votes
1answer
11 views

Setting permissions on files and folder - is folder perms inheritance always implicit?

Objective: Creating a folder on the root, chown to group and add users to group - but users get too wide permissions! Consider the following: # as root # we need a user group groupadd team1 # we ...
1
vote
0answers
8 views

SSH Permissions Issue on AWS EC2 Linus Instance

When running trying to connect to github I get the following: $ ssh -T git@github.com Permission denied (publickey). Here are my permissions on the directory: $ ls -la ~/.ssh total 24 drwxr-xr-x 2 ...
1
vote
1answer
2k views

How to use NFS4_SETFACL to remove ONLY the GROUP@ ACL permission?

Currently, I have a file in NFS where it has the permissions, A::OWNER@:rwaDxtTcCy A::GROUP@:rwaDxtcy A::EVERYONE@:rwaDxtcy A:fdi:OWNER@:rwaDxtTcCy A:fdi:GROUP@:rxtcy A:fdi:EVERYONE@:tcy However, ...
0
votes
1answer
27 views

Dovecot Active:failed because of ssl_cert: can't open file /etc/dovecot/private/dovecot.pem: Permission denied. Why?

Hello I try to follow this Postfix/Dovecot tutorial series: https://www.youtube.com/watch?v=njiNRppQNJw&list=PLibQjquhfgjjosRrZxlDepXfehDXuQJu_&index=5 When I run dovecot: sudo service dovecot ...
1
vote
1answer
2k views

/tmp mounting options as tmpfs: Compatibility & Security

Having a SSD - it is recommended to mount /tmp as tmpfs. Examples: https://askubuntu.com/questions/550589/best-way-to-mount-tmp-in-fstab https://yktoo.com/en/blog/post/233 https://askubuntu.com/...
0
votes
0answers
18 views

vFAT flash drives insist on only being writable by root

All the usual advice on editing /etc/fstab doesn't work. My current fstab looks something like the following: /dev/disk/by-uuid/2D06-9C4C /media/pi/TWILIGHT vfat user,auto,uid=pi,gid=pi,umask=...
1
vote
0answers
15 views

tar / pack `a-r` “unreadable” files

If there are files unreadable even to the owner (chmod a-r), tar and other tools will throw errors when creating an archive. However, these files could be updated with chmod u+r before archiving, and ...
3
votes
2answers
8k views

Where are NFS v4 logs under systemd?

My error is: mount.nfs4: access denied by server while mounting fileserver:/export/path/one My question is: where would the detailed log information be on the server (under systemd)? More ...
0
votes
2answers
35 views

How to allow only a specific script to run as root, using a non-root user account, without sudo access to everything?

I have a bash file that the web developer would need to run once in a while, which contains commands to reset some file permissions. These commands have to be run under the root security context. I ...
-1
votes
1answer
32 views

Issue with packages permissions

I have an issue with some ownership and permissions unintentionally changed on files in /usr/bin and I want to know if there is a way to recover the default ones?
0
votes
2answers
216 views

Why is permisson denied with n latest?

I tried n latest cp: cannot create directory '/usr/local/lib/node_modules': Permission denied cp: cannot create regular file '/usr/local/bin/node': Permission denied cp: cannot create symbolic link '/...
1
vote
1answer
27 views

Can move but cannot remove from shell script

I am glad I found this workaround, but maybe someone can explain this to me. I became so frustrated with it that I even explicitly spelled out the pathname each time. I cannot remove files with a ...
4
votes
1answer
2k views

Run git pull from a shell start-up script

I have Raspberry Pi that loads a shell script on start up. This script runs a python script, boot_camera.py, which is found in a repository. I Have a server which sends the Raspberry Pi a command ...
0
votes
1answer
18 views

Adding OpenVPN keys to Kali Linux without root

I've been trying to run OpenVPN on Kali Linux using the official openvpn guide and ran the first command: sudo apt update && apt -y install ca-certificates wget net-tools gnupg Alls been ...
3
votes
2answers
1k views

make ACL to work perfectly

I know there are plenty of questions and answers about ACL and permissions, but to be honest they are so weak to make any coherent understanding! it's just like a mix of unorganized information. Hope ...
0
votes
1answer
20 views

Group permissions not working properly

I have created a folder /home/public to share files amongst all my users in my computer. I also have created a group public. I've recursively changed the group owner to public and changed group ...
292
votes
4answers
500k views

How to set default file permissions for all folders/files in a directory?

I want to set a folder such that anything created within it (directories, files) inherit default permissions and group. Lets call the group "media". And also, the folders/files created within the ...
1
vote
1answer
36 views

How to limit user to their home directory?

I need to create a user that only has access to everything within their own home directory. For example, if their username is stash, then they would only have access within /home/stash. Running on ...
0
votes
1answer
49 views

Trying to Normalize my “D:” Partitation's state after replacing Windows 10 with Ubuntu 20.10

Good Morning, I'm trying to Normalize my "D:" Partitation's state after replacing Windows 10 with Ubuntu 20.10... it shows as Microsoft basic data and I can't touch any Folder or File in ...
5
votes
1answer
2k views

How to configure permissions to allow apache to securely have access to a file in a shared environment?

At my school we have a shared server environment with several users and several groups. Relavent Groups: students daemon (runs apache) I want to allow students to be able to have full ...
1
vote
2answers
1k views

SMB user is owner of directory but it is using group permission

Rewording: I have a directory with permission 755, shared using samba. I have a samba user abc:abc which is also the owner of that directory. Windows samba client was denied write to the directory. ...
0
votes
1answer
25 views

Why does Chromium segfault when uploading images?

When selecting an image for upload, I am able to see the preview in the browser. Once the actual upload process begins, Chromium segfaults. Seems like it's some sort of odd permission issue? The file ...
1
vote
2answers
1k views

Permission denied on sysfs files

I'm messing around with my raspberry pi, and currently I'm trying to change the color of one of the LEDs on the board executing a shell script and its arguments: pi@raspberrypi:~/morpheus/scripts $ ...
0
votes
2answers
1k views

File permissions of file when tranferring from Windows to Unix

When I am uploading a file from windows PC to Unix ,the permissions of file are --wxr----t on unix machine , whereas umask is 0022 .I am not able to understand from where is the file getting ...
3
votes
3answers
22k views

vsftpd - ftp user cannot create folders

CentOS - I have created an ftp user that can log in remotely over the internet to the vsftpd server. Now I can log in via ftp, see all the directory listings (not limited/jailed) to any directory, ...
26
votes
2answers
26k views

Why does root get Permission denied when accessing FUSE directory?

I use a FUSE filesystem with no problems as my own user, but root can't access my FUSE mounts. Instead, any command gives Permission denied. How can I give root the permission to read these mounts? ~...
7
votes
1answer
819 views

Setting umask of libvirt/virt-manager for proper permissions in a directory shared by host and guest

I'm attempting to create a directory that is fully available to both the host and guest systems of a virt-manager/libvirt/QEMU/KVM virtual machine, with read, write and execute permissions for non-...
3
votes
2answers
11k views

Filesystem suddenly read-only?

I've been storing some files on a MicroSD formatted to ext4 that I connect via USB. I tried to move a directory in it to an external hard drive, and I got mv: error reading ‘/mnt/sd/Directory/xyz....
0
votes
1answer
28 views

Newbie Question on Permissions

I am really new to Linux and having just brought a Raspberry Pi I decided to run a simple apache server. I found a simple tutorial on how to install and setup the apache server which is what I have ...
0
votes
0answers
20 views

How do I query an HID device as a non-superuser in Linux?

With superuser privileges, I send instructions to the device as follows: $ sudo hid-query /dev/hidraw1 0x01 0x80 0x33 0x01 0x00 0x00 0x00 0x00 Device /dev/hidraw1 : 413d:2107 interface 1 : (null) (...
0
votes
1answer
5k views

Error permission denied through ssh

I have connected to bastion-staging (ftp server-name) through SSH from local machine. I have get root access through sudo bash. Now I am trying to SSH from bastion-staging (myserver-name) to ecash (...
4
votes
3answers
1k views

How do I change owner/permissions of auto mount on an embedded linaro based linux

I have an ARM based embedded system that when it auto mounts a USB drive it mounts it: drwx------ 6 linaro linaro 2048 Jan 1 1970 PENDRIVE I need to change the permissions and possibly thew owner of ...
0
votes
2answers
1k views

Cannot create New folder and Paste files on a drive - Ubuntu

My Files drive is not able to modify
0
votes
0answers
23 views

Can't create file as another user

This may be related to MongoDB, but I'm not really sure. While trying to run MongoDB on a mounted disk I found that its user (mongodb) has no permissions to the folder it's configured to (/media/dutzi/...
0
votes
0answers
15 views

Find files/dirs the user have access to

I need to find the files and directories that a user actually have access to. The user admin1 is a member of the group private. The user user1 is a member of the group shared. The current directory ...
15
votes
5answers
17k views

Why are files in a smbfs mounted share created with executable bit set?

I mounted a samba share using the smbmount command: $ sudo smbmount \\\\foo\\bar /mnt/bar -o user=tom When I create new files, they get created with the executable bit set for owner, group and ...
0
votes
0answers
18 views

Why do files created by rslsync user/service have a “r--” mask?

I'm using Resilio Sync to sync a directory between two computers running macOS and Arch Linux, respectively. On the Linux box, the Resilio Sync rslsync.service runs as the rslsync user, and the ...
0
votes
1answer
17 views

cannot rsync permission protected files

I've to use rsync to transfer folder to the backup periodically(basically want to automate this). Initially i've to enter password everytime but i got this working by adopting public/private key ...
79
votes
5answers
86k views

What's the difference between “s” and “S” in ls -la?

When I ls -la, it prints many attributes. Something like this: -rwSrwSr-- 1 www-data www-data 45 2012-01-04 05:17 README Shamefully, I have to confess I don't know the exact meaning of each ...
4
votes
1answer
5k views

rsync's “Read-only file system (30)” error

NB: This is a 2-part question: why does an error happen, and how to work around the error. (The two parts are related, inasmuch as the answer to the "why"-question may shed light on the "how"-...
1
vote
0answers
8 views

Linux access level permission why it is different for user and UPG [duplicate]

I have question related to permission in Linux, which set to user and its user primary group . When we set any permission on UPG and user is by default is member of UPG group, and here let us take i ...
1
vote
0answers
13 views

lcurl installation no root

I have been trying to install a software for a full day now. After installing htslib/bzip and all dependencies locally (as I don't have root permissions), I am stuck at this error: g++ -O3 -o angsd *....
0
votes
2answers
2k views

Exclude Android studio from needing root permissions

I had to install Android studio in /opt fedora 25. I don't want to run it using sudo for various reasons. Right now I'm not setting a root password because of that. I'm not sure if I should change /...
-1
votes
0answers
14 views

problem wirth new file in folder permissions

my API on ubuntu system create folder and file in. API User is www-data:www-data and folder is 755 and file in folder is www-data:www-data 644 how to delete this folder with cron when im user:www-data ...
1
vote
1answer
29 views

How to copy a file and change destination file permission in one step?

I am writing a shell script to do some complex task which is repetitive in nature. To simplify the problem statement, the last step in my complex task is to copy a file from a particular path (which ...

1
2 3 4 5
76