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
1 answer
12 views

How do I run a sudo command from kde shortcuts command?

In KDE setting you can assign a shortcut to execute your arbitrary command. To assign a command to shortcut in KDE, you can do the following. In System Settings -> Shortcuts -> Custom Shortcuts, ...
user avatar
  • 382
0 votes
1 answer
31 views

/var/log/httpd permissions reset from 705 to 700 after reboot

After a reboot /var/log/httpd permissions reset from 705 to 700. Could this be a SELinux issue? OS is RHEL 8.
user avatar
0 votes
0 answers
8 views

Granting Jenkins permission to access another users home directory on AWS

I have an AWS server set up I want Jenkins to be able to read/write files on. At the moment, I have set up a python virtual environment in /home/ubuntu/venv3_7 I want Jenkins to use to run scripts but ...
user avatar
0 votes
1 answer
18 views

Run root script from www-data user

I have a problem to run a command that requires root privileges via php on the apache server I added a command to sudoers so that it does not require a password for the user visudo: # # This file ...
user avatar
1 vote
0 answers
29 views

How to create a shared folder between Linux and Windows?

How to create a shared folder between Linux and Windows? If possible, do not use additional applications. If it's not possible, please tell me the app that can be used. These are my previous steps: ...
user avatar
0 votes
0 answers
7 views

Nautilus only show directories with access

We are running a multi-user environment. Also, we have a few shared folders in /home where different groups of people have access to. Now that we have quite a few users, the /home directory is quite ...
user avatar
1 vote
1 answer
25 views

RaspberryPI cannot change permission of mounted hdd due to rpi-first-boot-wizard user

I mounted an external hdd into /mnt/edisk on my raspberry pi. If I check ownership, strangely I see this: drwxr-xr-x 19 rpi-first-boot-wizard rpi-first-boot-wizard 128K May 10 17:44 edisk I can write ...
user avatar
  • 111
0 votes
0 answers
11 views

SFTP jailed user access limited to an Apache webserver directory

I would like to create an SFTP jail for a user, jailed to an Apache webserver directory. User should access only /var/www/html/sftpaccess/ directory. Currently the /var/www/html/sftpaccess/ ...
user avatar
  • 394
0 votes
1 answer
23 views

run tomcat daemon with user other that root

im try create a container docker secure with alpine (rootfs) which allows me run web aplications java contained into tomcat8. In particular, what user should run the tomcat daemon as? i'm reading the ...
user avatar
  • 1
2 votes
1 answer
71 views

binaries not executable by user (Permission denied) after cmake install / make install to /usr/local/bin

After I install any project on my Debian (Buster) machine with sudo cmake install or sudo make install command, the binary gets placed inside /usr/local/bin but although the PATH variable is set ...
user avatar
  • 83
3 votes
0 answers
61 views

Alternative to "gksu" in "su" mode for non-root users

On an Oracle Linux 8 installation, I am trying to implement a desktop launcher for the GNOME shell where the (graphical) program is to be run as a different (non-root) user. However, I want to enforce ...
user avatar
  • 18.4k
0 votes
1 answer
40 views

Mount root filesystem with user permission using sshfs

I want to use sshfs to mount filesystem folder on my machine (let's say ~/home). I would like to be able to edit files inside the / folder that got mounted using any editor (for example, edit /etc/...
user avatar
0 votes
1 answer
39 views

How to share a folder in KDE Dolphin?

I want to be able to share a folder in Dolphin. Right click on a folder, then go to Share tab. Unfortunately I see a message there: "You appear to not have sufficient permissions to manage Samba ...
user avatar
  • 382
0 votes
1 answer
38 views

Permission issue with rsyncd between Linux box and NAS

I have set up a small 1TB NAS appliance, now running on OpenWRT, to back-up files from a small 500Gb drive inside my Devuan Linux box holding all my Timeshift and BackInTime snapshots. The NAS's specs ...
user avatar
  • 31
2 votes
0 answers
27 views

SFTP user permission denied

I have created a new sftpuser with below format. sudo adduser --shell /bin/false sftpuser sudo passwd sftpuser sudo mkdir -p /var/sftp/files sudo chown sftpuser:sftpuser /var/sftp/files sudo chown ...
user avatar
  • 41
0 votes
0 answers
7 views

Directadmin - lmtp/dovecot bad permissions?

Hello I've got one server configured with Directadmin+exim+dovecot. For one week for one domain there is problem with local delivery which is queuing for long time. I found in logs /var/log/dovecot-...
user avatar
  • 16
0 votes
1 answer
28 views

Why would I give the execute permission for txt file (non-script) file

In this article we see x permission is added to myfile.txt: mode of `myfile.txt' changed to 0751 (rwxr-x--x) What is execute permission in the context of non-script file? When would I need ...
user avatar
-2 votes
0 answers
41 views

Encrypt SVN user directory

Could anyone give me advice on the best way to encrypt the SVN version control system! I want to Encrypt the SVN User group(devs), but unable to figure out which one would be best fit OpenSSH or GNOME ...
user avatar
1 vote
0 answers
26 views

If one can read a file, can't they also execute it in practice by copying the content and pasting into a new file? [duplicate]

I understand what the difference between read and execute permissions in linux. However, isn't, in practice, having a read permission effectively having execute permission? After all, if I can read ...
user avatar
  • 187
2 votes
0 answers
25 views

What do the permissions mean in /proc/<pid>/fd/?

I'm looking at the result of running ls -l on /proc/<pid>/fd/: lr-x------ 1 root root 64 Apr 22 23:13 0 -> /dev/null lrwx------ 1 root root 64 Apr 22 23:13 1 -> 'socket:[19700]' lrwx------ ...
user avatar
0 votes
0 answers
33 views

Running `ncdu .` yields: "Error: could not open /var/lib/snapd/void". Why?

Running: sudo snap remove ncdu sudo snap install ncdu sudo chmod -R 777 * sudo ncdu . gives the error lqqqError!qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x ...
user avatar
1 vote
0 answers
21 views

Specific domain computer login when integrating with Windows domain

I'm trying to let a user named "linuxuser" can only login to a specific domain computer. My test environment description: Windows Server 2016 with Active Directory Service Ubuntu Server 20....
user avatar
19 votes
4 answers
3k views

What is the reason for having or restricting file owner's permissions?

As discussed in Understanding UNIX permissions and file types, each file has permission settings ("file mode") for: the owner / user ("u"), the owner's group ("g"), and ...
user avatar
1 vote
0 answers
11 views

How to force Group for new folders IN new folders with SFTP Ubuntu

I'm running into this issue where I use g+s and a chgrp to set the group, but when I create a new file or folder in a new directory, it doesn't inherit the group. For example: /dir1 has g+s and a ...
user avatar
0 votes
1 answer
33 views

Why must I provide authentication to mount SATA HDDs? Why are they in read-only mode?

I am running Fedora 35 dual booted on a Dell G5-5000, and have two or three HDDs connected via SATA (including the drive that Fedora on). When I attempt to access the drives in Nautilus for the first ...
user avatar
  • 103
0 votes
1 answer
20 views

Restricting access on parent directories but enabling read-write access for subdirectories

I want to know if it's possible to recursively restrict read and write access to a folder with subfolders and files but enable it for only one subdirectory? Example directory structure: dir/ -- ...
user avatar
0 votes
1 answer
65 views

Why the "Other" permission is excluding the owner and the group?

It may be rare to do so, but if one created a file and revoke the permissions, the owner (as well as the group users) can no longer access the file. midnite@gentoo_bazic /home/midnite % touch file ...
user avatar
  • 233
0 votes
0 answers
26 views

How can I allow multiple users or groups the w+x access to a certain directory? [duplicate]

I'm aware of how to change the owner or group of a directory. However, I want to know that how I can allow multiple groups or users to have w+x access to a certain directory without chaning the actual ...
user avatar
  • 1
0 votes
0 answers
9 views

umask ACLs and socket permissions

I looked at the answer here How to set default file permissions for all folders/files in a directory? And set the acls using setfacl getfacl: Removing leading '/' from absolute path names # file: run/...
user avatar
0 votes
0 answers
9 views

Permission problem when running "apt-get update" [duplicate]

can someone help me out on this; I'm trying to update Wine on my ubuntu 16.04 LTS using: apt-get update but the result shows this: Reading package lists... Done W: chmod 0700 of directory /var/lib/...
user avatar
0 votes
2 answers
44 views

A directory that is owned by some non-superuser, but can't be deleted by them

Is it possible to create a directory that its owner can't delete? Let's say I have directory bar owned by user foo, and I'd like to create a subdirectory bar/baz, also owned by foo, such that: foo ...
user avatar
  • 715
0 votes
0 answers
51 views

How can I access a flash drive without having to be root?

I was wondering how I could access a flash drive without having to be root? I am accessing it on NixOS below (and will have to access it on a printer, which may have the permission problem). $ lsblk ...
user avatar
  • 89.7k
1 vote
1 answer
28 views

Make newly created files in a directory automatically inherit the user and group id of the directory

In Linux, if I have a directory belonging to a user user and a group group, how is it possible to make it so that each time I create or move a file in the directory, this file automatically acquires ...
user avatar
  • 11
0 votes
1 answer
14 views

Using allow_utime with exfat

Considering the fact that exfat does not store ownership information of files, is it possible to mount an exfat partition in Linux with an allow_utime option that is also available for vfat? If not, ...
user avatar
  • 153
0 votes
0 answers
16 views

cd into directory throws "permission error". Which directory needs execute permission? [duplicate]

Note: I have read and think I understand what's written in Execute vs Read bit. How do directory permissions in Linux work? But I may be missing where in the hierarchy that execute directory ...
user avatar
  • 101
0 votes
0 answers
85 views

Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) (running as sudo)

I am trying to install Veeam Agent on a fresh Lubuntu 20.04 installation. I've downloaded the latest Veeam package, but get this when I try to install: ~/Downloads$ sudo dpkg -i ./veeam-release* &...
user avatar
3 votes
1 answer
672 views

Linux Bible 10th Edition: why -exec cp can't copy files even with super user privileges?

I read "Linux Bible 10th Edition" at 130 page. Exercise №7: Create a /tmp/FILES directory. Find all files under the /usr/share directory that are more than 5MB and less than 10MB and copy ...
user avatar
  • 135
1 vote
1 answer
31 views

How to list directories I have access to?

I don't know how to describe very well the situation. I don't have access to a directory, but I do have access to some stuff within that directory. For example: In /path [me@pc path]$ ls ls: cannot ...
user avatar
-2 votes
2 answers
54 views

What is the difference between SUID file permission and ACL?

What is the difference between SUID and ACL file permission? Also, when should I use either?
user avatar
1 vote
0 answers
24 views

systemctl --user enable won't create directories, errors as a result

Whenever I run systemctl --user enable <some-unit>, it complains: /xdg/config/home/systemd/user/<install-section.wants-or-requires>/<some-unit>.service does not exist to which my ...
user avatar
  • 1,588
0 votes
1 answer
31 views

How to run a process with read-only permissions?

I am running a bunch of python3 scripts containing programming assignments. I'd like to run them on a machine such that they are unable to modify (add/remove/write-to) the file system. Is there a way ...
user avatar
  • 123
0 votes
1 answer
35 views

" sudo su - " is switching the user but files are getting created with parent id

We have one bash command with one user "useradm" which runs a command as sudo su - platfrmapi; sh script.sh sudo su - platfrmapi; cp script.sh script_2.sh The user-switching is happening ...
user avatar
  • 339
0 votes
1 answer
65 views

How does Linux keep track of file permissions?

This might be a dumb question, however I was wondering how does Linux keep track of the file permissions? We know if we do a "ls -l" we can see the file permissions but when I change the ...
user avatar
0 votes
0 answers
38 views

Why do i get a forbidden error when i change the symbolic-link for typo3?

I am currently using Typo3 8.7.32 and would like to update to the ELTS version 8.7.45. I have tried to install the new version manually via the Plesk web interface. When I change the sym-link in the ...
user avatar
  • 1
1 vote
0 answers
322 views

SSH to Ubuntu Permission Denied

I freshly installed Ubuntu 20.04.04 on a laptop and performed all necessary steps to enable SSH on it: sudo apt-get update sudo apt-get install openssh-server I am fully aware and verified the IP, ...
user avatar
  • 11
0 votes
2 answers
27 views

How to make a directory only accessible by local user not remote root user?

I have a CentOS 7.9 machine, logging in as my normal user account and access a directory that has my forms and SSN in it. Other users in the network who has the root account can ssh to my box and ...
user avatar
  • 1
0 votes
1 answer
55 views

How can i get permission to copy files from one folder to another?

So i was trying to copy some files from one folder to another using the cp command, but when tried it gave me this error: debian@OCR-1:/mnt/rootfs/boot$ ls MLO omap3-overo-storm-arbor43c....
user avatar
6 votes
1 answer
196 views

Can I take away permission from a specific user in the command setfacL?

I know that this setfacl is to give permission: setfacl -m u:user:rwx myfolder But is there one to take permissions such as: setfacl -m u:user:-rwx myfolder
user avatar
  • 75
0 votes
2 answers
53 views

OpenSSH permissions, and locked out questions

When attempting to SSH from my laptop to an EC2 instance in Amazon, the ssh command failed telling me the permissions to my .pem file were too open. I used chmod to set the permissions on the file to ...
user avatar
0 votes
0 answers
32 views

give access to /home/$USER/targetfolder only to me and a partner

I'm working on a server where current users (group=domainusers gid=1002) can read, write and run ONLY our own files. Because of my kind of permissions I'm not able to run apt | adduser | addgroup | ...
user avatar
  • 48

1
2 3 4 5
83