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
2
votes
1answer
15 views

File/foler permissions & plex

I have SFF Intel NUC running Kubuntu & Plex, headless. I used various guidance for to set thi up. Normal log in to NUC server is is 'exharris' The Plex media folders are all on an old NTFS Ext HD ...
0
votes
0answers
21 views

How to allow SSH availability checks but restrict login from specific IP? [duplicate]

I need the possibility of monitoring host to check availability of monitored host's SSH port availability via telnet, but at the same time I want to prevent SSH logins from monitoring host. Is there ...
0
votes
1answer
29 views

Locked out of sudoers file [OSX] (“<user> is not in the sudoers file. This incident will be reported.”)

I accidentally messed up my sudoers file earlier and started getting the following error: >>> /etc/sudoers: syntax error near line 1 <<< sudo: parse error in /etc/sudoers near line ...
0
votes
0answers
30 views

Create an NTFS read-only file on Windows which would also be read-only on Linux

I have a user who wants to distribute read-only word documents created on Windows across the team. This does not seem to work with the user who runs Linux as it seems to ignore the standard NTFS "read-...
0
votes
0answers
35 views

Allow non root user to execute a binary file owned by root

I am performing the following (as root) in order to allow my non root user joe to run tcpdump: groupadd tcpdump addgroup joe tcpdump chown root.tcpdump /usr/sbin/tcpdump chmod 0750 /usr/sbin/...
0
votes
0answers
26 views

Forcing permissions for new files/folders in a subdirectory

Here's the situation. Suppose you are Bob and you create a public directory with world readable/writable permissions: /home/bob/public And you do something like #Bob -> % chmod ugo+rwxs /home/...
0
votes
1answer
29 views

How To Find Files Based On their Permissions In Linux

I have more then 50 files and I need to find the ones that have: No r permission for group No w permission for group No x permission for group w or r permission for others I tried the command find ...
0
votes
0answers
23 views

How to lock or hide a configuration file?

I am using dxcli to get and put files to dropbox. I do not sync files regularly so I want to be logged out most of the time. To login requires a web browser to complete oauth which is not very cli ...
0
votes
1answer
43 views

How Do I Transfer Ownership of Files Between Distros?

I currently have Ubuntu installed on one partition and my personal files (Pictures, Documents, etc.) on a second partition. I would like to install KDE Neon in the partition containing Ubuntu, while ...
-2
votes
1answer
45 views

User cannot see a directory in /var/www, thought the directory is there

I'd like to create a repository folder that can be accessed by cpanel user. Let say I create a directory in /var/www/webassets, and set the access to 777. I can see the folder using ll command as ...
2
votes
1answer
25 views

Unable to execute file with superuser priviliges

I am trying to install the VMware client on my work computer, which is running CentOS 7 and on which I have superuser privileges. When I run the command sudo ./VMware-Horizon-Client-5.2.0-14604769....
0
votes
0answers
16 views

Skype Linux Mint: no device found when running as user

I have a problem with Skype on my PC with Linux Mint 19. When I run Skype, it doesn't recognize any of my devices anymore whereas it was working perfectly before. I tried to launch Skype as root ...
4
votes
2answers
158 views

Unable to run DNS queries when response is bigger than 512 Bytes and truncated

Situation: Linux machine running in Azure looking for a public domain that returns 112 results the packet response size is 1905 bytes Case 1: interrogating google DNS 8.8.8.8 - it returns un-...
1
vote
3answers
86 views

How to list all files under /etc and write it to a file in /home?

ls -a > /home/etc.txt -bash: /home/etc.txt: Permission denied I'm in /etc trying to list all the things under it and write it all into a text file in /home... but I'm getting permission denied. I ...
0
votes
0answers
25 views

apt install ./*.deb from fuse mounted drive permission denied for sudo / root [duplicate]

I encounter that issue often. The command sudo apt install ./*.deb run in folder from fuse mounted drives gives permission denied for all deb files in a folder. I know of workaround - it works if ...
0
votes
0answers
37 views

Linux groups lose write permission on new directories (NFS)

I have an NFS server with many individual users, and each user has exclusive write access to their personal directory. Some users want to have spaces where their teams can write in directories, ...
0
votes
1answer
28 views

How can “which” find commands inside directories where I have no read permissions?

On my work PC, I noticed that the which command seems to be able to find executables in directories, that I have no read permissions for. $ export PATH=/usr/sbin:$PATH $ ls /usr/sbin ls: cannot open ...
0
votes
0answers
21 views

How to allow an unprivileged deployer user to run a certain command with sudo in a specific path?

I created a "deployer" user # Create user deployer sudo adduser deployer # Give the read-write-execute permissions to deployer user for directory /var/www sudo setfacl -R -m u:deployer:rwx /var/www ...
-1
votes
0answers
18 views

Permissions in lunx for ftp

So I'm having a little issue with permissions I have linux server with ssh key configured I have a sudo user myuserx myuserx is a member of group www-data my web directory /var/www/domains.com/...
1
vote
1answer
28 views

Nixos unable to modify or chmod nix config - '/etc/nix/nix.conf'

[root@nixos:/etc/nix]# sudo chmod 777 /etc/nix/nix.conf chmod: changing permissions of '/etc/nix/nix.conf': Read-only file system I remember this is some filesystem / Linux kernel utility to change ...
10
votes
1answer
665 views

“cd” into /sys/kernel/debug/tracing causes permission change

I've faced a really strange issue today, and am totally helpless about it. Some of the servers I manage are monitored with Nagios. Recently I saw a disk usage probe failing with this error: DISK ...
1
vote
1answer
20 views

Permissions problem with remote mount

I am having a simple permissions issue that the solution, or proper setup is eluding me. I have two servers sitting side by side on the same network. .80 is the web server and .40 is a file server. ...
1
vote
3answers
38 views

How to ship files as executable? (no git)

I see there is a question similar to this but the answer linked to relates to Git, which I am not using here. I often make small scripts that I send to others with very limited command line skills ...
0
votes
1answer
39 views

Can a user without u-permissions, read, change permission and the delete the file and why? [duplicate]

So I made a file and gave it the following permissions. chmod u-rwx, g=rw, o=rx file The user can't read the file now, because he doesn't have any read permissions, right? I could remove the file, ...
0
votes
1answer
33 views

Cannot cat .pem file inline as -i option to ssh

I am getting this error: Warning: Identity file /dev/fd/63 not accessible: Bad file descriptor. when running this command: ssh -Y 'root@ec2-54-xxx-94-xxx.us-west-2.compute.amazonaws.com' -i <(...
0
votes
1answer
76 views

File permissions not working

A file on my CentOS does not have write permission and can not be edited using vim. But using echo it can be written, why? [root@srv chap2]# cat raj.txt Hello World [root@srv chap2]# ls -l raj....
0
votes
0answers
10 views

Setting correct permissions allowing logging

I followed How to run Java Jar Application with Systemd on Linux to set up a Java jar service. However, I'm not sure how do set the permission to have log file written. I followed the above-...
1
vote
1answer
45 views

How to implement setuid bit? [duplicate]

I created a small script as the root user... #!/bin/bash cat /etc/shadow and set the setuid bit and placed it within the guest folder. When I ran the script as guest, it showed permission denied. ...
0
votes
1answer
37 views

Give file permissions based on the IP of the windows machine logged in to Linux

We connect to the Linux server from windows using putty and we all share the common user and password. I'm creating a file and I want to give read only permission to others but if I login (from my ...
0
votes
0answers
25 views

Permission denied to NFS directory 0770

In my workplace we have a shared NFS storage mounted on a computing cluster. The working group's parent directory and each user's directory in it have 0770 permissions so we should be able to have ...
0
votes
1answer
28 views

Files downloaded from FileZilla have “-????????? ? ? ? ?” permissions and I can't chown them with root

I download some files through FileZilla and all of the files in subdirectories have this "???" owner/group permision: -????????? ? ? ? ? ? file_a.txt -????????? ? ? ? ? ? file_b....
0
votes
0answers
22 views

Different permission for different group

I create a folder using sudo mkdir main perssion of this folder is drwxrwxr-- it belongs to a group execute now i have also one more group read. I created 2 users first user1 and second is user2 now i ...
0
votes
1answer
30 views

Correct umask value to automate the creation of file with the SSH private key content

I'm trying to find a way to shorten these lines (CI_PRIVATE_SSH_KEY is already set): mkdir -p "${HOME}/.ssh/" chmod 700 "${HOME}/.ssh/" echo "${CI_PRIVATE_SSH_KEY}" > "${HOME}/.ssh/id_rsa" chmod ...
-1
votes
1answer
29 views

How do I prevent users from adding secondary groups to themselves?

Or put differently, how do I a stop users from modifying their group membership? A user who belongs to the [x-admin] group which is a sudo-er was able to add himself to the wheel group. How can I ...
1
vote
1answer
32 views

How Does SSH Chroot Works

When I setup chroot directory for SSH user, I set root as owner of this directory and set permissions to 755. Why must these directories be owned by root and have 755 permissions? Why can't the ...
-3
votes
1answer
40 views

Permission denied as root [closed]

new clean Debian 10 install. Software manager does not work. Have to add where to look for updates. update does not work because the wrong repository was entered during installation. Right-click does ...
0
votes
0answers
19 views

SSH ERROR: Unable to write random seed: open(“/home/user/.putty/randomseed”) returned 'Permission denied'

I'm trying to use plink to establish a connection to a remote server and remove an entry in SIP user list using the following command: plink root@<ip> -pw pwd serctl ul rm bob which then asks ...
0
votes
0answers
14 views

How to setup an SELinux policy to allow only a specific context permission to 'execheap'

I want to enable the dynamic core in DOSBox but this is incompatible with SELinux as unconfined_t by default is not allowed to execute from the heap. The SELinux troubleshooter suggests: You must ...
-2
votes
1answer
22 views

Sudoers permissions to new user that only allow “useradd and usermod”

I want to create a new user and I want this user to be allowed to only run "useradd" and "usermod" Will I need to configure the sudoers file? Not sure how to go about this.
0
votes
1answer
34 views

Interpreting cron output

==================================================== ==================================================== CHECK_BEGIN: DO_CRON ==================================================== =====================...
1
vote
2answers
35 views

Can a user access files if he does not have access to the parent directory?

If I have a folder with e.g. the following permissions (0700): drwx------ 2 patrick patrick 4096 Sep 12 00:00 test If I understand it correctly, this means only the folders owner can: read: ...
0
votes
1answer
21 views

GoogleAuthenticator PAM Module Permissions Issue — VPN with MFA in AWS EC2 running CentOS

Full Disclosure: I am writing this question to then answer it myself. I searched the internet for a full day at work and was not able to find a solution that worked for me. I even compiled my own ...
0
votes
1answer
40 views

chmod: changing permissions of 'datenbank': Operation not supported [duplicate]

I have a USB drive sitting in my raspberry pi and I'm trying to sshfs into the drive. I already changed the permission of most files and directories on that drive but when I try to chmod 777 ...
0
votes
1answer
57 views

Create cron job programmatically from php script

I have Raspberry Pi with Raspbian installed on it. I need a cron job that needs to have a variable time period (every 10, 20, 30, 40, 50 or 60 minutes). I found out the easiest way to create new cron ...
0
votes
0answers
29 views

Mint: “Error Splicing File: Permission Denied” as Superuser

I am trying to copy files from an NTFS drive in Mint that have been encrypted on an inaccessible Windows system. I have been unable to copy them using either the cp command or using Nemo. I have tried ...
1
vote
0answers
22 views

How to allow only one user in a group in sshd_config

I've just changed the /etc/ssh/sshd_config file on a server, where I want to deny all users except for one in a specific group. This is because I am in the disallowed group myself, but as the server's ...
0
votes
3answers
222 views

Can't `chmod` mount folder of read-only filesystem

I have a directory (mnt) that has world read access, but when I mount a filesystem into it as readonly (as root) it subsequently shows no world permissions, and if I try to chmod it I get a readonly ...
-2
votes
1answer
43 views

chown failed: Operation not permitted (permission related)

It is my first day at Ubuntu, so I beg your pardon if I am asking a very basic question. I have installed Ubuntu in a VirtualBox. I am trying to run a basic command and follow instructions from here....
0
votes
1answer
30 views

How to group users to give similar file permissions to each user in the group

I have 2 users user1 and user2 in my Ubuntu PC. user1 was the one I created during installation. I created user2 to execute a python program. Now, this program is present in the path /home/user1/...
1
vote
2answers
51 views

Allow rsync to be run remotely as root, but only to read files. A read-only root user?

I would like to use rsync-over-ssh to pull backups from many remote traget machines to a central backup. I could do this as the root user, but that would allow me to accidentally run a bad rsync ...