1
vote
1answer
35 views

Changing default ownership for files created by a user

I gave user "jdoe" access to SCP files onto a Unix server hosting Wordpress. Files this user creates within the /var/www/Wordpress folder (and subfolders) need to be owned by www-data or at least the ...
3
votes
2answers
396 views

How to tell the difference between “No such file or directory” and “Permission Denied”

I'd rather not parse STDERR, but I can't think of another way to tell the difference, programmatically, between the two: $ ls /net/foo.example.com/bar/test /net/foo.example.com/bar/test: Permission ...
0
votes
1answer
48 views

Give user permission to create/delete particular file?

Is it possible to give a user permission to create/delete a file at a certain path, but not to modify other files in the same directory?. I'm using Ansible to provision a CentOS 6.4 box. I'd like to ...
0
votes
2answers
85 views

Using Jenkins to access mysql files on the same instance

I have a Jenkins installation and running mysql server on the same box. One of my jenkins jobs is supposed to tar up the /var/lib/mysql folder but I get the following error tar: ...
0
votes
2answers
137 views

How can I prevent a given user group accessing global files?

Apologies if this is the incorrect forum. I am looking for a solution to a problem as follows: We have protected information on our system with global read/execute access (555) owned by a user in ...
-2
votes
1answer
50 views

Read a file created by root user on unix system [closed]

I have a file created by root user on unix system and the file is assigned to a particular group.All I want to do is read that file by logging in as user which is not root and not a part that ...
0
votes
2answers
196 views

unix: overwriting a file written by another user in same group

OS: Ubuntu 12.04 I have a directory what has given write permission to group foo. Two users bar and baz are part of the group. Both can successfully write files to the directory. However, baz cannot ...
1
vote
1answer
175 views

Data loss through permissions change?

I seem to have deleted some files on my media drive, simply by changing the permissions. The Story I have many operating systems installed on my computer, and constantly switch between them. I ...
0
votes
3answers
119 views

apply unix permission scheme on directory structure

I like to fix permissions on our fileserver via cron. In general I like to set everything to umask 027 ignoring any changes a user did. For certain subfolders I like to apply umask 077. The question ...
6
votes
2answers
913 views

Why can the root user edit read-only files, but a regular user with sudo access can't?

If you try to append to a file with no write permissions (say, the /etc/sudoers file which is is owned by root and has 0440 permissions), if you're the actual root user, this works. However, if you're ...
2
votes
3answers
8k views

unix/setfacl: set directory default acl for correct permission inheritance

I have several svn repositories in /projects/svn which should be writeable by 2 users, mine (unix), and wwwrun (apache, for svn over http) newly created folders and file should be read/writeable by ...
0
votes
1answer
324 views

Determine group of unreadable unix/linux directory

dcoles1@shovel:/ $ cd /DriveXT dcoles1@shovel:/DriveXT $ ls . unreadable dcoles1@shovel:/DriveXT $ cd /DriveXT/MML/ dcoles1@shovel:/DriveXT/MML $ ls . unreadable dcoles1@shovel:/DriveXT/MML $ ...