All Questions

Tagged with
Filter by
Sorted by
Tagged with
6
votes
1answer
314 views

Why can't you move another user's directory when you can move their file?

Following on from another user's question I've bumped into a quirk of Linux filesystem permissions that I can't easily rationalize: sudo mkdir ~/foo ~/foo/bar sudo touch ~/baz mkdir ~/my_dir chown ...
0
votes
2answers
21 views

User for group able to delete file even though the user has only read access to the file through group

I have a directory with the below permissions: drwxrwsr-x 3 john ro 20K Jun 20 14:48 logs I logged in as john and touched a new file inside logs: -rw-r--r-- 1 john ro 0 Jun 20 14:48 d From my ...
1
vote
0answers
29 views

Folders and files permissions for SDKMAN tool on Ubuntu

I am Java developer trying to set up my local CI server using Linux Mint. One of the crucial tools I would like to use is SDKMAN - the tool that allowes easy installation and management of different ...
0
votes
0answers
27 views

What's causing folder to change ownership?

I have something funky going on with a few folders I'm hosting on a parallel filesystem. Every so often, the group ownership on the folders will revert to root:root Instead of an appropriate service ...
3
votes
1answer
216 views

Permission denied when cd to symlink'd dir in /tmp that is 700 and owned by regular user

Question: Why am I not able to cd into a symlinked directory with 700 permissions, owned by a regular user, as root, when I am able to change into the directory itself? Example: ttucker@plato:/tmp# ...
2
votes
0answers
34 views

Other has permissions with umask 007 on VM with mounted folder

One thing that's odd to me right now is I am playing around with permissions. The way umask works to my knowledge is it basically tells what permissions u g o don't have using octal representation (...
0
votes
0answers
30 views

if the member of any group has only the execute permission will the be able to enter into the directory belongs to that group?

# mkdir -p /test/music # created this dir as a root # chmod g=x,o= /test # rwx--x--- # gpasswd -a x1 root # adding x1 user into the root group # su - x1 # login as x1 $ cd /test ...
0
votes
1answer
27 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
112 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. ...
-1
votes
1answer
259 views

Permission needed to create/remove file in a directory with sticky bit set

I understand that creating/removing a file from a directory with sticky bit set requires one of the followings you are root you are the owner of the file you are the owner of the directory and you ...
7
votes
1answer
471 views

Why ls without -l return 1 when permission to directory is r--

I have read this and this, and found that my problem is different and more specific. I understand the following points. +x on the directory grants access to files inodes through this specific ...
0
votes
2answers
31 views

Permissions from file and sub directory for all users inherit permanet

Hi I have a directory /home/nvs-upload/media/ImageFtp/ and the directory ImageFTP have many sub directory. The issue than I have is than a job run and add new sub directory it add to the new directory ...
2
votes
1answer
153 views

Is pCloudDrive really inaccessible to root?

pCloud is a cloud storage service that allows Linux users to mount their cloud storage inside of their home directory, appearing as: /home/username/pCloudDrive/ As far as I can tell, the pCloudDrive ...
1
vote
1answer
53 views

Mystery undeletable directory

The directory won't delete. gentooserver ~ # rmdir /ceph rmdir: failed to remove '/ceph': Operation not permitted I am root. gentooserver ~ # whoami root The directory is owned by root and I have ...
2
votes
1answer
105 views

How to check if there are “other” permissions in home directories

Right now, I have a script that runs daily that chmod's the home directories, removing all "other" permissions from the directories and the "group" write permission. See below. #Removing all other ...
-2
votes
1answer
34 views

Setting directory permission to 0570 [closed]

There was an answer to "Execute vs Read bit. How do directory permissions in Linux work?" regarding setting a directory permission to 5 (-R-X) value. It was said it "5: Allow reading / writing, but ...
12
votes
1answer
8k views

gpg: WARNING: unsafe ownership on homedir '/home/user/.gnupg'

System: I am testing Linux Mint 19 Beta based on Ubuntu 18.04. I got this warning while installing an unrelated package: gpg: WARNING: unsafe ownership on homedir '/home/vlastimil/.gnupg' This is ...
1
vote
2answers
44 views

Can someone delete my non-empty directory from a write-all directory without having write permissions on it?

I know that deleting a file depends on the permissions I have on the enclosing directory, and not on the file itself, see e.g. here But what about a non-empty directory? Using rm -rf NON_EMPTY_DIR ...
0
votes
1answer
30 views

Providing read only access to users from another group to a folder belonging to the home directory of a user from different group

So I have got two groups fruits and vegetables. mango is a user belonging to fruits group. There's a folder named insecticide in the home directory of mango. I want to provide read-only access to the ...
-2
votes
2answers
938 views

Why does Linux not allow deletion of read only directory? [closed]

I am new to Linux. When I make a file as read only I am still able to delete that file. I read on the net that deleting a file depends upon the permissions of the folder in which it lies. To make ...
0
votes
0answers
19 views

Change permissions for a group that is not the owner of the file

I am part of a group called friends and we have a directory titled secrets. I have a rwx permissions, friends have rx permissions and others have w permissions. I want to explicitly ban members of a ...
1
vote
1answer
2k views

Allow non root user to change file permissions

We're developing an application that makes it possible to change the file permissions of some files that users have created. So e.g. the user "Bob" creates a file in /srv/share/ then bob is the ...
1
vote
0answers
514 views

chmod g+w+s on the directory without changing umask (Linux)?

I'd like to make new files, created in a directory, writable by others in the same Posix group without using ACLs. Not sure this is possible. The way I've accomplished this in the past was to change ...
1
vote
2answers
3k views

Change ownership of directory owned by root

As a non-privileged user, owning a directory on an EXT4 filesystem where I have all the necessary rights (rwx) gives me the possibility to change content and ownership of files (e.g. vim file and :w!) ...
0
votes
2answers
70 views

File and directory permissions

I am learning umask command , and I get few questions. So: 1.For files and directories default permissions is 666 and 777 how can I config the default permission, specifically where is configuration ...
8
votes
4answers
4k views

Linux local directory permissions as question-marks for non-root

Okay, that's a new one. I've seen cases like that with faulty storage devices, with faults in remote storage (SAN, NAS), I think I've even seen something similar caused by mount permissions. But it's ...
1
vote
0answers
648 views

Permissions of subdirectories on Samba

On a CentOS7 system I installed samba to create a share for windows clients using the following steps: mkdir /samba/myShare Then I definded /samba/myShare as my shared folder via the smb.conf file. ...
0
votes
1answer
51 views

Adding dir name to the list of files

I want to get the list of file names with permission along with dir names. ls -ltrR <folder name>| egrep -v '\.:|total'| sed '/^$d' command to the get the list. But I'm getting the output as: ...
2
votes
1answer
418 views

Owner of shared directory

The directory /path/to/dir is meant to be used by any member of the group examplegroup. All the members of this group should be able to modify the content of the directory without limitations (read/...
-1
votes
1answer
796 views

How to set the owner of tar files and its contents to current user

I need to set the owner of tar files and its contents to be set as current user. I will receive files from user FOO in the folder config_files/billing/xml/incommingBills i want to set owner as ...
3
votes
1answer
204 views

provide read, write, execute permission but can't be deleted by others

Is it possible for a user to create a folder with read, write, execute permission for all users in the system, but the other users can't delete the folder?
3
votes
0answers
25 views

Removing a directory (that contains subdirectories) from a directory that has sticky bit [duplicate]

This is my setup [root@ ~]# mkdir /sticky01 [root@ ~]# chown user01:user01 /sticky01 [root@ ~]# chmod a+rwx /sticky01 [root@ ~]# chmod +t /sticky01 [root@ ~]# ls -ld /sticky01 drwxrwxrwt. 3 user01 ...
-5
votes
1answer
46 views

SEt file permission in linux from home

I am in my home directory. I want to set file permission for my file named "Secret" so that no others can read or write this file. I want to do this by the symbolic method.
1
vote
1answer
2k views

Linux /srv directory permissions revert on reboot

I have a problem that the access permissions for group and world access on the /srv directory get reverted on reboot. Whenever I grant the world write access using sudo chmod a+rwx /srv then all is ...
0
votes
1answer
51 views

why does changing the group of my /home folder affects what happens in a subdirectory [duplicate]

There is a fundamental aspect of the way permissions work in linux directories I think I have not understood. I have this folder I was trying to access from my local apache server : sudo chmod 777 /...
1
vote
3answers
84 views

Can I extend the power of sudo to the distination directorys/files on bash shell?

I have 2 Ubuntu servers: 12.04.5 LTS and 16.04.1 LTS, in a local network, where I'm a administrator of the both servers and can be the super users on them. Let's say each server is A and B, and I log ...
0
votes
1answer
75 views

Special directory permissions for new user

I need to add special permission for new shell user. After using adduser command new, the user can read all directories into shell account. Command adduser user1 brings us new user which has own ...
2
votes
0answers
47 views

Is there a way to give different permissions to different processes that are called from the same user?

I want to be able to have a r,w,x type permission given to specific processes and not to users. Any document I find shows that processes get the same permissions as the user calling it, but I want ...
0
votes
1answer
47 views

why user is able to cd in to directory

I'm doing a LAB from a RHCSA book and would like to ask for some help. The task is: Log on to host1 as root and create directory /shared_dir1. Create a group called shared_grp and assign user1000 ...
1
vote
1answer
40 views

How to change permission only inside the directory?

I think this is a weird question, I don't know if it is possible, but here I go: I have a shared directory in a server, so people can use it from their computers, so let's say I have a directory call ...
2
votes
2answers
7k views

Why can't I access a directory even though I'm in the owner group? [duplicate]

So there's a user rtorrent:torrent which is in group media-agent. Here is the command I'm trying to get working: rtorrent@seedbox:/shared/storage$ cd books bash: cd: books: Permission denied Even ...
1
vote
1answer
133 views

write permission to a folder

I have the following folder: $ ls -ahl /mnt/smrtanalysis/ total 16K drwxr-xr-x 4 smrtanalysis smrtanalysis 4.0K Jul 25 01:52 . drwxr-xr-x 6 root root 4.0K Jul 25 01:46 .. lrwxrwxrwx ...
0
votes
1answer
276 views

Centos, uploaded files from application have different owner and group [duplicate]

I have an application that uploads a file via SFTP using sftpuser. Once the file is uploaded the owner and group is user1:user1. The owner of the parent directory is apache:apache. I can not figure ...
1
vote
0answers
178 views

How to set folder permission with + at the end?

I'm trying to mount a network shared device in a linux box. I get permission issue but it was mounted properly in another linux server. The only difference on the server it works has a + permission at ...
1
vote
1answer
1k views

Can I replace a directory with a symlink without write permissions in parent?

I would like to replace a directory with a symlink. For the directory itself I have full permissions (rwx), but for the parent directory I don't have write permissions (r-x). Is this possible? The ...
2
votes
1answer
7k views

Can directories and file inherit same permissions as parent directory?

I want all directories and files to inherit same permissions as parent directory.
1
vote
1answer
57 views

Limited access to a directory's contents

There is a file in a directory that me and the other users want to be able to read. I want the other users not to be able to see the other files in the directory. They should be able to read a ...
1
vote
1answer
69 views

Moving non-writeable files vs moving non-writeable directories

I'm a bit puzzled about the following behavior (Linux, Debian 8.3, ext2 filesystem) test@linux:~$ ls -ld directory/ file drwxr-xr-x 2 root root 4096 Mar 10 18:51 directory/ -rw-r--r-- 1 root root ...
0
votes
1answer
1k views

How do permissions on a directory affect files in it?

I just learned something that shocked me, because I did not have a clue it was a fact. If I have a directory with the following permissions: user@host:~$ ls -la testdir total 8 drwxrwxrwx 2 user ...
0
votes
5answers
595 views

File permission issues

Is it possible to change the permissions of a particular directory containing some files from 640, with which it gets generated in that folder and change it to 644 once the files are generated for ...