Linked Questions

2
votes
2answers
7k views

Automatically set group and permissions on files in a folder? [duplicate]

When I create new files and folders in a specific folder, I would like them to inherit the group and permissions of the parent folder. Is this possible ? For example mkdir -p example.com/public cd ...
0
votes
1answer
2k views

Inherit the permissions on to the subfolders [duplicate]

I want to create a directory, for instance testing-data on CentOS 6.5 Linux version, and have read,write,execute to all the sub-folders and sub-sub-folders and files within them to everyone(all users),...
0
votes
1answer
289 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 ...
11
votes
2answers
12k views

Is there a way to prevent git from changing permissions and ownership on pull?

Every time I do git pull or git reset, git resets changes to permissions and ownership I made. See for yourself: #!/usr/bin/env bash rm -rf 1 2 mkdir 1 cd 1 git init echo 1 > 1 && git add ...
3
votes
1answer
1k views

How to add a read only group permission to a folder that already has a default group, and have it inherited for all newly created files & folders?

In Windows this is easy. I never fully figured out Linux permissions, I have a directory such as this: /Photos The current ACL permissions are as follows: owner: root - full access group: photos -...
0
votes
2answers
244 views

Linux Permissions - Inheriting / free for all shared folder

I used to run Windows Server and file sharing off my NAS was a breeze. I’ve worked out most permissions to make it work how I need and primarily use Samba to serve out the files. The only task I’m ...
2
votes
1answer
71 views

Desktop app run by admin user (but not explicitly with sudo) takes file ownership of shared file

Similar to https://stackoverflow.com/questions/15143614/file-ownership-changes-to-root-after-saving-from-a-program-in-ubuntu but I can't use the answer since I'm not running a command-line app as sudo....
1
vote
1answer
55 views

How to manage permissions correctly when adding a new package to a reprepro repo

I've setup a local repo with reprepro, accessible via a local web server. Thus every file and dir in its file sub-tree owns to www-data:www-data. The problem is that every time I add a new package I ...
-1
votes
1answer
41 views

new files have different permissions [closed]

I have a folder I'm sharing with another user in a linux centos 7 box. even though I've set the permissions for the full folder to 777 it still locks new files created by the other user. the folder ...
0
votes
1answer
44 views

Files inside folder change their permissions

I am struggling with the following problem. I have read the following guide: Getting new files to inherit group permissions on Linux Yet, this has not helped me. (pgcluu is a postgresql cluster ...