The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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

Configuring Samba permissions

I wonder if it's possible to make files creatable, but not writable or removable. So that every file is created with r--r--r-- permissions. My current smb.conf: [global] workgroup = WORKGROUP server ...
1
vote
2answers
24 views

Can file permission values be called octets?

I've talked today about the file permissions and used the word octet to describe the rwx unit. Then I wondered if this is a valid name. An internet search shows that it's used here and there. But I ...
0
votes
2answers
957 views

Home directory file permissions screwed up, how do I “start over”?

I backed up my entire home directory using rsync and moved the backup to a new installation of Linux. Somehow my file permissions got completely screwed up (all files were owned by user "999" and file ...
0
votes
0answers
19 views

How do I use rsync to reliably transfer permissions & ACLs when copying from NTFS internal C: to NTFS External disk?

What options of Rsync can I reliably use/ how/ combine to either: RELIABLY TRANSFER "working" even if "limited set" of Permissions/ ACLs reliably & without conflict between the Gray area of ...
0
votes
0answers
13 views

Ownership of .gnupg folder causing permission denied

there are some workerNodes in which different users wants to encrpyt or decrypt certain files. for that to happen they import the required keys that they themselves are passing to. (Hadoop project in ...
9
votes
6answers
70k views

Why do I get permission denied when using mv although directory rights are correct?

I get permission denied when trying to move folder Music via mv although directory owner is set to my user and user permissions are set to 7. What's going on? (I know that I could use sudo but I want ...
2
votes
1answer
18 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 ...
65
votes
9answers
55k views

Can a script be executable but not readable?

Is it possible to execute a script if there is no permission to read it? In root mode, I made a script and I want the other user to execute this script but not read it. I did chmod to forbid read and ...
1
vote
1answer
1k 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, ...
4
votes
5answers
23k views

Create a file as a different user and group

I have a bash script that has to write a lot of files locally, and then needs to set the owner to apache, and the group to a particular user group (that apache is not a member of). Is there a way to ...
0
votes
1answer
1k views

ntfs issue with rsync: read errors mapping permission denied (13)

I have an issue when I want to rsync folders from my external backup hard disk to my NAS. I get this error : read errors mapping permission denied (13) I have root rights; if I want to change the ...
2
votes
3answers
15k 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, ...
7
votes
4answers
10k views

NFS partition mounted as read only

(Disclaimer: I've read "NFS sharing is read only" and I think it's not the same problem) I have just setup NFS on my raspberry (Raspbian) and I'm trying to access it from OSX. So far so good, I can ...
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
30 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
31 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/...
2
votes
2answers
971 views

Mount cifs with group permissions

I want to mount windows network share with different permissions based on group owners should have read/write permissions, others, only read permissions I am adding the following line in /etc/fstab ...
0
votes
0answers
27 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
30 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
24 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 ...
2
votes
2answers
617 views

How come I, as a normal user, am able to change ownership of a file?

I have a partition that's NFS-mounted from a Netapp SAN. I can create files in that partition, and I can chown those files to another user, any user, even root. How am I able to do so? I thought the ...
4
votes
2answers
159 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-...
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 ...
1
vote
3answers
87 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
1answer
392 views

inotify_add_watch(/etc/fstab) failed: (Permission denied)

With the latest update of KDE, I am seeing these errors: Sep 26 23:07:30 desktop sddm-greeter[709]: inotify_add_watch(/etc/fstab) failed: (Permission denied) Sep 26 23:08:18 desktop kdeinit5[819]: ...
-2
votes
1answer
46 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
26 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 ...
9
votes
3answers
299 views

Permissions on Files:

I would like to give 755 permissions to a directory, so I use: # chmod -R 755 /my/folder/ It works for all files inside my folder, but the problem is that I use scripts that create new files in this ...
1
vote
1answer
994 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
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
38 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, ...
7
votes
1answer
1k views

suexec with chrooted environment

I'm trying to get a chrooted Apache environment working running mod_fcgid with suexec. Looking at suexec log inside jail, the wrapper scripts are being executed with no problems, however, when I look ...
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 ...
0
votes
1answer
2k views

FTP Permissions in Linux (vsftpd)

Let's suppose I have a user called user1 and his home directory is on: /home/user1. All files on that directory need to be 750 (chmod -R 750 /home/user1). I installed vsftpd so I can manage my files ...
-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
29 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 ...
0
votes
1answer
2k views

Puppet Recursive File Permissions

When using a Puppet file resource with recurse=>true is it possible to have directories and files get different permissions? That is we generally want to remove read/execute permissions from group ...
10
votes
1answer
670 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 ...
125
votes
6answers
103k views

Clone ownership and permissions from another file?

Is there a command or flag to clone the user/group ownership and permissions on a file from another file? To make the perms and ownership exactly those of another file?
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. ...
0
votes
1answer
2k views

Apache Server setup issue

I have installed and configured apache on RedHat 7 Image on AWS. But I have issues with permissions/ownership while uploading files by ssh using filezilla. I Setup a ssh user and added its home dir ...
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 ...
4
votes
3answers
147 views

Who runs the interpreter for files that are execute-only?

If the current user only has execute (--x) permissions on a file, under which user does the interpreter (specified by #!/path/to/interpreter at the beginning of the file) run? It couldn't be the ...
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
41 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
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
2answers
12k views

How can I execute any command as a normal user without sudo?

Is it possible to assign the sticky bit to sudo in order to execute any command as a normal user? Let's suppose that we have the user test and then: test@test$ apt-get update But I don't want to ...