Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
33 views

Changing permissions in a Unix directory

I am not able to change permission on a directory I created on the Unix server. This is how the structure looks $ ls engany N832342 N854431 zabbix $ Now I want to change the permission in ...
2
votes
1answer
48 views

ID inheritance – Which IDs?

I'm learning UNIX file permissions / ID inheritance and would like to clarify something: I have this list of permissions, users, groups and files: -rwxr-xr-x userA A foo -rw-rwsr-x userB B bar ...
-1
votes
0answers
32 views

Smartcards, Amazon and Permissions [on hold]

Do smartcards and online shopping websites regularly make use of chmod 666 permissions? I ran across an "end-times" website claiming that online shopping and other electronic purchasing methods like ...
2
votes
2answers
62 views

Why is /etc/sudoers not world-readable?

I'm struggling to think what security risks there could be to knowing who is allowed to use sudo.
2
votes
0answers
33 views

Recovering from chown -R <user> /usr/bin [duplicate]

I ran chown -R <user> /usr/bin in arch thinking I could easily fix it if anything went wrong. Unfortunately, that has proven to be incorrect. As a result of this, startx won't run i3 ...
0
votes
0answers
39 views

Are permissions like “---r-xr-x” useful?

Would a file permission tuple of "---r-xr-x", or something else without owner usability yet still with group/other usability ever be useful in the real world? I would love to see some use cases! ...
4
votes
0answers
39 views

Deleting non-empty directory without w permission while having w permission in parent directory

Here's the situation: dir1/dir2/file.txt permissions: drwxrwxrwx 4 me group 4.0K Jan 11 17:53 dir1 drwxr-xr-x 4 other_guy group 4.0K Jan 11 17:48 dir2 -rw-r--r-- 1 other_guy group 158 Jan 11 17:...
1
vote
0answers
23 views

On CentOS 7 allow certain users Read & Write to mounted file systems of different types

I'm a relative linux noob and have a query around mounting file systems of differing types in such a way that a selection of users have r/w access to them. Here's the scenario. I've rebuilt a media ...
0
votes
1answer
44 views

Why can we kill another user's process while shutting the system down

If I try to kill root's process or another user's process it says you can't do this. But I can do that while shutting the system down. Isn't this a security problem?
0
votes
2answers
22 views

ReadWrite access to W10 partition in dual-boot

Installed LinuxMint 19.1 alongside W10. In Linux I cannot access files in ReadWrite mode on the Windows partition - this was possible all along up to Windows 7. I used to keep my data on the Windows ...
4
votes
4answers
398 views

why can't i have permission in that group which i already in?

I am already a member of the group "aid_sdcard_rw": android@localhost:~$ whoami android android@localhost:~$ groups android aid_radio ...... aid_sdcard_rw ...... you can see that i am already in ...
2
votes
0answers
29 views

Apache startup error with symlinked configuration file with 777 permissions

Ubuntu virtual machine with Apache 2.4.7 I'm getting these errors: apache2: Syntax error on line 216 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf-enabled/...
0
votes
0answers
31 views

Adding user to a group with correct permissions and access to directory still denied [duplicate]

I have a directory 'ad' with permissions: drwxrwx---, for devpro devpro I added devst to devpro group with: usermod -a -G devpro devst If I use id command for devst I get: devst If I use ...
0
votes
0answers
30 views

-bash error when trying to run bot [duplicate]

I have a bot installed on my Azure Linux VM running Ubuntu 18.04. I am running the command to start my bot, and it returns an error (see below). $ nohup python3 bot.py > nohup_bot.out -bash: ...
0
votes
0answers
16 views

apparent permission problem with USB devices

I've got problems with adding USB devices in virtualbox when it's started as user. Starting it as root seems to work fine but when I start it as user, I get: $ VBoxManage list usbhost Host USB ...
1
vote
0answers
74 views

Higher privilege level than root on macOS [closed]

MY version of the macOS is 10.13.6 What I want to do is get a privilege that is higher than the root privilege. The reason I want this is because I would like to create a completely undeletable file/...
0
votes
0answers
17 views

ACL permissions / group not getting permissions

I am trying to get ACL permissions to work the easy way by allowing groups specific access on files and folders. However my system is ignoring group permissions entirely. My setup: Debian 8 user ...
0
votes
0answers
24 views

Why SGID needs the file executable for group to be effective? (not the same as SUID)

I am learning about permissions in Linux recently and countered a confused problem about SUID and SGID. As far as I know, when the SUID is set in the owner permissions, and the file is executable, ...
2
votes
1answer
69 views

Does Linux kernel check file permissions on inode or open file description?

I wrote this testing code, and find that this program can always read the file successfully even after I canceled the read permission when running getchar(). #include <stdio.h> #include <...
1
vote
1answer
259 views

Man page for file permission numbers

Is there a man page for the file permission numbers? I'm specifically talking about r = 4 w = 2 x = 1 I can never remember them and I have to google it every time I need to set permissions besides ...
0
votes
1answer
17 views

Nginx requires identical permissions for a whole path up to a directory “assets” of my app to be able to read and serve assets

I have a web app in the folder: /home/main_user/dir1/dir2/my_web_app/ In there I have an executable file and the folder assets. Nginx is setup this way - to serve assets only: location ~ ^/...
0
votes
2answers
53 views

Folder group ownership permissions and problems

I have created a folder called /home/projects, to do this I had to use sudo mkdir /home/projects because it's inside the home folder. Initially the folder had these permissions: drwxr-xr-x 4 root ...
0
votes
0answers
23 views

Access to USB device denied

I have a ColorHug ALS ambient light sensor that I use together with the DDC/CI interface of my display to automatically set the brightness of my displays just like every smartphone does. It is ...
10
votes
1answer
133 views

Why did FreeBSD lose the w mask but Debian retained it?

I am trying to understand the difference in behaviour between FreeBSD ACLs and Linux ACLs. In particular, the inheritance mechanism for the default ACLs. I used the following on both Debian 9.6 and ...
1
vote
1answer
73 views

Why are my new files not getting the group writeable permission?

I would like to set up a directory such that all new files are group writeable, regardless of the umask setting of the individual user. I've created a stor group and added all users to it. Then, I ...
1
vote
1answer
34 views

Under what circumstances would a user/superuser change the permission of a file for its owner? [closed]

What I understand is, you could change the permission of a file for its owner by, say chmod u=0 file.txt In this case, we removed r, w and x permission for the owner of this file. But under what ...
0
votes
0answers
17 views

Executing bash script through PHP to connect to AWS fails

I am trying to initiate an AWS instance through a bash script. This bash script is invoked by a PHP script. My example php script: <?php exec("sh /var/www/html/pushDatToAWS.sh >> $...
1
vote
2answers
202 views

ls -I myExecutable is listing the rest of the dir files instead of showing info about the file

Working on Raspian, after compiling using make, I do a ls -I myFile in order to see the permissions of the file and if it is marked as executable as it should and instead of getting something like ...
4
votes
1answer
110 views

Trying to understand the difference between “modernNeo ALL=(ALL:ALL) ALL” and “modernNeo ALL=(ALL) ALL” in the sudoers file

In the sudoers file, you can have either of the following lines modernNeo ALL=(ALL:ALL) ALL modernNeo ALL=(ALL) ALL I looked at the following answers on here to understand this https://askubuntu....
0
votes
2answers
88 views

How do I make a file in a user's home directory uneditable to that user but leave the home directory editable?

I've tried a LOT of stuff with chmod and chown, and combinations thereof. I still want the files in the home directory of this user to be readable to the user, just not writable or executable. ...
0
votes
1answer
52 views

Risk about world writable file

I know having world writable file can be dangerous and many people recommend to not have world writable file on your system. In order to "protect" my Linux, I searched for every world writable file ...
0
votes
1answer
22 views

Shared sub-directory between multiple users [duplicate]

I have two users with home directories: /home/user1/ /home/user2/ I would like to share a folder between the two users: /home/user1/some/path/to/folder but would only like user2 to have access to /...
0
votes
0answers
26 views

Systemd service for fetching data from the web at startup

I would like to fetch a random picture from unsplash in /usr/share/wallpapers each time I reboot my laptop. I wrote this service as a first try: [Unit] Description=Fetch random picture from unsplash ...
2
votes
3answers
43 views

Block git user from login, but allow the user to still function as a git repo?

I have setup a git server, by creating a user "git" and then creating a local repository in the git user's directory. The git server works great, I can pull, push, etc. I allowed users to interact ...
0
votes
0answers
17 views

NFS R/W mount and permission

sudo mount -t nfs 192.168.0.49:/mnt/HD_a2 /mnt/nas sudo chmod -R 777 /mnt/nas/Family/Photos/iphone_08-2014 chmod: changing permissions of '/mnt/nas/Family/Photos/iphone_08-2014/._IMG_0602.JPG': Read-...
0
votes
1answer
51 views

NFS Share Permissions - on Debian

server: machine-1 client: machine-2 or any machine in the allowed-subnet. I have created NFSv4 server on machine-1: How can I ensure that: in the NFS folder all newly directories from machine-2 to ...
0
votes
2answers
38 views

Adding execute for specific users and groups on folders and remove it from files

I'm trying to execute this command but it does not get the expected results chmod -R u-x+Xrw,g-x+Xrw,o-x+Xr * I want all my directories to be executable, and all my files to NOT be, this is for a ...
-1
votes
1answer
69 views

How to organize /home/ such that users don't see each other's content?

Up to know, I used a sandbox server for myself only, and websites were in subdirectories of /home/www/: drwxr-xr-x 5 root root 4096 Nov 30 14:45 www |--- drwxr-xr-x 3 www-data www-data 4096 Oct 14 ...
0
votes
2answers
48 views

Setting up special permission for a directory

I have a directory (i.e data) on a Linux machine, and it is owned by an user (i.e userone) and a group (i.e groupone) and holds a permission of 775 with setgid. Now whenever the userone creates a new ...
0
votes
0answers
44 views

Granting a nonroot-owned systemd service sufficient 'usage' permissions on letsencrypt's SSL key/cert pair

Unrealircd is not allowed access to ssl key/cert pair, ircd-owned systemd service unit fails miserably. The files are managed by lets-encrypt's certbot and root-owned: -rw-r--r-- 1 root root 3.5K Dec ...
1
vote
1answer
57 views

Gain Root Access to remote Server with sudo, su, and pkexec not working

I'm running CentOS7 on an old dell box that I repurposed as a home server. I also ssh into it from a remote location to make sure everything is running smoothly, and to do things like rsync my laptop. ...
1
vote
1answer
87 views

-w flag in bash if statement not working

I have a simple script that checks if a file has write permission on it or No. If yes, then it allows the user to append some text data to end of file. If No, it kicks user back out. I am following a ...
0
votes
1answer
34 views

Who have previously accessed a shared file?

I just discovered a mistake in the permissions setting of our system. It's kind of serious because it allows normal users to access something they shouldn't see. Currently the mistake has been fixed, ...
0
votes
1answer
33 views

What happens if we, recursively, change folder permissions after changing files in it?

What will these below commands actually do? chmod 777 /yoda/htdocs/cups/logs/* chmod -R -f 777 /yoda/htdocs/cups/logs/ When I check the file permissions in ..../logs folder, they are showing as -...
0
votes
1answer
50 views

Run docker-compose after reboot on RHEL 7

After installing Docker CE and Docker Compose on RHEL 7, I get an error trying to use it: $ docker-compose --version docker-compose: error while loading shared libraries: libz.so.1: failed to map ...
10
votes
1answer
768 views

Debian: cannot remove symlink in /sys/: operation not permitted

I ran some commands without completely understanding them while trying to get screen brightness working and now I'm stuck with a nasty symlink in '/sys/class/backlight/asus_laptop' that I am trying to ...
2
votes
0answers
17 views

Cannot execute file with root priviledges using SUID [duplicate]

So from what I understand, SUID makes so that when you execute a file, you're basically executing it under root, right? Now I made this file, and whenever I try to run it, I get a permission denied ...
-4
votes
1answer
54 views

Read permission denied even when using sudo and all permissions are granted [closed]

I have this virus that came from an npm package and I want to read the code. My problem is that I cannot read the contents of the file. Trying to make it readable, I took the drastic step of allowing ...
-2
votes
1answer
38 views

Linux giving permission to an user to the log file

Using SFTP I want to copy the log directory from var. By default my user have permission denied without sudo. Root is blocked for login, besides I don't want to use it in sftp. I want to give my ...
0
votes
2answers
47 views

Problem with permissions when trying to sync two external hard drives with rsync

I'm trying to sync an external hardrive with the one containing my photo archive. I wanted to begin with the basics, so I run: rsync -aHm --delete /Volumes/archivo_1a/ /Volumes/archivo_1c/ In the ...