Questions tagged [file-permissions]

Most current file systems have methods of administering permissions or access rights for specific users and groups of users. These systems control the ability of the users to view or modify the contents of the filesystem.

Filter by
Sorted by
Tagged with
0 votes
1 answer
125 views

How to set the minimum acl permissions for an user who is included in two or more user groups with different permissions in linux?

Say, I have two groups G1 and G2 with user1 as member to both. G1 has rwx permission on a file file1 and G2 has only read permission on the same file. Setting G2 as the primary group for user1 does ...
Mimi's user avatar
  • 3
3 votes
1 answer
736 views

Broken ACLs when "zfs send"ing a snapshot from a Linux machine to Solaris

I'm running ZFS on a Ubuntu machine that hosts our home directories. The pool has the following ACL setting: # zfs get all homes | grep acl homes aclinherit restricted default ...
Pavel's user avatar
  • 1,058
0 votes
0 answers
389 views

Wrong permission when accessing ZFS snapshot over NFS (Solaris server, Ubuntu client)

TL;DR: I don't understand why I can access one file but not an other (in the same directory), although they appear to have identical permissions. I have an NFS server running Solaris 10 10/08 and a ...
Pavel's user avatar
  • 1,058
-1 votes
1 answer
368 views

Changing file permissions and adding owner from CMD

I am unable to change permissions of certain files in a directory even though I have logged into a server using an Administrator account. Is there a way to force the permissions of these files via ...
oshirowanen's user avatar
12 votes
1 answer
57k views

Nginx doesn't have permission to access files with the same ownership

i've just installed nginx on an Archlinux box and encounter this problem: Nginx is configured to run as "nginx", a new user/group that I added, in /etc/nginx/nginx.conf: user nginx nginx; For ...
Lamnk's user avatar
  • 1,105
0 votes
1 answer
32 views

How to work on local VM Load Balanced Web Sites

So, I've got my LB all set squared away and running well (all ubuntu servers, sitting on a ubuntu host machine). Everything works... syncing files, loading the sites, backups, etc... They are a ...
Kevin's user avatar
  • 133
0 votes
0 answers
159 views

Unmask permissions on Linux RHEL (AWS EC2)?

I've installed a AWS Linux EC2 instance. I have multiple users who should be able to edit each others files, including new ones that are uploaded. The Linux default is RHEL. I understand that I can ...
Tania Rascia's user avatar
0 votes
1 answer
3k views

How can I serve a binary file with executable permission via nginx?

I'm serving a Go binary located in /var/www/bin/binary: location ~ (binary) { root /var/www/bin; } However, when I download it with wget http://example.com/binary, I can't run it right away, ...
Alex's user avatar
  • 139
4 votes
1 answer
27k views

Server 2012 R2. Add permissions to all folders and subfolders when inheritence is disabled

I need to add full permissions for a specific group of users to all folders/files and subfolders on our file server without changing other permissions. Few years ago someone removed "Administrators" ...
Binarylab's user avatar
-3 votes
2 answers
606 views

php file permission 600 gives me a blank page in localhost

When I set the file permission to 644 for php files, it works. But if I give them 600 then they give me blank pages. And it happens only in localhost, in remote host 600 file permission for php files ...
Jahid's user avatar
  • 95
0 votes
2 answers
358 views

Unable to get permissions even after changing permissions on a mounted directory in ubuntu 14.01

This is an ext4 fs and I am unable to gain permissions over the directory with the postgres user: mud@mud-i7-32gb:~$ sudo mount /dev/sdc1 /media/mud/ssd128 mud@mud-i7-32gb:~$ ls -l /media/mud/ssd128/ ...
Avia's user avatar
  • 121
3 votes
1 answer
547 views

My event log has corrupted DACL 'Write Attributes' in 4656 file audit events

I have been scripting a procedure in powershell to pull security event logs from my windows 2012r2 server. Investigating a bug in my procedure to parse the event into xml I discovered a very strange ...
EPJK1337's user avatar
1 vote
0 answers
251 views

openssh sftp server file permissions not being set by umask (but folder perms are)

I am running the openssh sftp server like so: Subsystem sftp /usr/libexec/openssh/sftp-server -u 002 And the folders I upload via sftp get these permissions: drwxrwxr-x 12 developer staff ...
Christof's user avatar
  • 121
7 votes
2 answers
16k views

how can I mount a windows share with rw access?

The question is in the title. Here is what I tried but the folder is read only. sudo mount -t cifs -o username=maazza,domain=MYDOMAIN //192.168.123.2/company-files /mnt/test I am on debian jessie. ...
maazza's user avatar
  • 254
1 vote
1 answer
2k views

Read permission denied to user with ACL group permission to read

Introduction A common scenario for a web application that it has two general folders. One filled with code which is executed by the application server, for example uwsgi, and one with static content ...
Rovanion's user avatar
  • 639
-2 votes
1 answer
1k views

Grep is not working without having read permissions [closed]

I am in a folder where I do not have read permission in contents. ls -l List all files sucessfully. I want to count files that have some attributes in their name with: ls -l | grep file????.tar.gz ...
Mini Fridge's user avatar
1 vote
3 answers
2k views

Permissions for rsync process to access files it doesn't own withtout running it as root

I want to use rsync to take automated backups from a remote webserver over ssh. The webserver is configured with suphp, so different sites have files with different users and groups. Unfortunately a ...
Dom's user avatar
  • 488
0 votes
2 answers
491 views

htaccess protection of directory does not work any longer?

unfortunately the protection of my wp-login.php does not work any longer: <Files wp-login.php> AuthName "Forbidden access" Require ip 1xx.xxx.xx.x/24 </Files> This is apache's ...
MyFault's user avatar
  • 913
0 votes
1 answer
35 views

the actual link permissions aren't used for anything - What about Ownership?

After months of intermittent attempts to discover what was causing these Forbidden errors I've discovered evidence that strongly suggests Apache2 uses the actual link's ownership and group. I have a ...
Jesse the Wind Wanderer's user avatar
1 vote
0 answers
30 views

New server block returns a 403 error [duplicate]

I recently switched my CentOS 7 machine from Apache to nginx, and I am running into some issues getting my machine properly functioning. I recently installed a new server block into the system with ...
J.W.F.'s user avatar
  • 348
0 votes
1 answer
1k views

Member of the nginx group but unable to edit files in the web root

I recently switched the web server on my CentOS 7 machine from Apache to nginx. Originally, I had added my user account to the apache group and then did a recursive chown to make all files in the ...
J.W.F.'s user avatar
  • 348
1 vote
1 answer
2k views

What are the correct Linux permissions inside chroot jail with userspec

I am trying to setup a chroot jail, then I did: which binary ldd /bin/binary Then I did: cp /lib64/{libs} $jail/lib64 cp /usr/lib64/{libs} $jail/usr/lib64 PS: During this setup, I discovered that /...
Weber K.'s user avatar
  • 131
0 votes
1 answer
1k views

Not able to access a folder with read and write permission for group

I can't access a directory that has both r permissions for the group my current user belongs to, in the others column, it has rw- [ec2-user@host]$ ls -la drwxrw-rw- 8 apache apache 4096 Nov 4 ...
Arnold Roa's user avatar
0 votes
0 answers
132 views

Using SubInACL to access Offline Files

I'm trying to use SubInACL to access a remote computer's offline files share. This is a networked computer on our local domain. I can see the files/folders by exploring \\compname\c$\windows\csc but ...
turbonerd's user avatar
3 votes
1 answer
900 views

What kind of file and folder permissions are necessary for ODBC?

In our network, we are using an application that connects to an *.mdb access database through ODBC (User DSN). The mdb is based on a subfolder of a share that is locally mapped to W: What kind of ...
vic's user avatar
  • 973
0 votes
0 answers
527 views

Windows file permission blanked or corrupt

I have a file that was brought to my attention. The user was complaining they weren't able to delete the file. Upon further investigation it appears the permissions on the files are completely ...
bourne's user avatar
  • 314
0 votes
1 answer
3k views

How to share files/folders between users on same linux machine?

We have 2500+ users using linux thin clients with their home directory on a common NFS. We want Windows like file/folder sharing functionality between users. The users are not linked to any ...
Vij Vijay's user avatar
6 votes
6 answers
17k views

File permissions issue on OS X El Capitan and SMB share

Since we upgraded to OSX El Capitan we experienced some strange file permissions errors with our SMB server. We have a ubuntu server machine hosting our working files over a SMB shared folder to each ...
Ambroise Maupate's user avatar
0 votes
1 answer
85 views

Ineffective permissions in Linux containers

When setting up and running a Docker instance, upon boot nginx gives a 403 Forbidden upon accessing static files. In the Dockerfile, I use the COPY command to move all the files to /var/www/app, then ...
spble's user avatar
  • 1
-3 votes
1 answer
3k views

Change existing file type from standard file "-" to directory "d" as shown with Unix ls -l

In summary, if I use ls -l it yields something for a directory like... drwxr-xr-x and the reported error for a directory with files in it, is it shows as a standard file and ls -l yields... -rwxr-...
Chris_top_he_r's user avatar
1 vote
1 answer
337 views

How to apply different directory and file permissions recursively by one command

Let's assume that I have this folder structure: |-Home |-Subdir |-Subsubdir |-Subdir Each directory includes a bunch of files. Now I want to apply the following permissions: All ...
luqo33's user avatar
  • 357
-1 votes
1 answer
108 views

Assigning correct permissions on a shared web server [duplicate]

I have created a centos instance on digital ocean hosting multiple websites by setting up virtual host, all is working fine, however assigning correct directory permission for each website is bugging ...
Ibrahim Azhar Armar's user avatar
1 vote
0 answers
1k views

IIS server: directory not writable via symbolic link compared to directory junction (for only the first user)

We have the following setup for a webserver: Windows Server 2008 R2 Standard, IIS 7.5.7600.16385, PHP 5.3.28, the HMVC framework we use is Kohana. Kohana needs a cache directory to be writable in D:\...
Daan's user avatar
  • 113
0 votes
0 answers
3k views

Share Permissions: Why can a group access a share, but not members of that group (Windows Server Environment)?

This is a Windows Server 2012 environment. Several 2012 DCs with just one 08. I have one primary share for everyone. Through "Advanced Sharing", the groups have full permission, including ...
Dylan Madigan's user avatar
1 vote
1 answer
1k views

Configure NFSv4 to allow different users read-write access

I have an NFSv4 server (CentOS). I want to export a particular directory to two different machines (one CentOS and one Ubuntu), where users of the same uid and gid need read-write access to the ...
Bruce Becker's user avatar
1 vote
2 answers
884 views

Best practice for WordPress, direct auto updates and SFTP access for users

I'm trying to set up a secure WordPress site on a Debian 8 system with the following requirements: automatic core updates (FS_method "direct") chrooted SFTP access to /wp-content (for a single user) ...
flight's user avatar
  • 394
0 votes
0 answers
106 views

My folder permissions are not working

I am configuring a 2008 R2 server for learning experience. The problem I'm having is the following: Current situation: I created 5 Users, put the users in a global group and made the global group ...
Pepito's user avatar
  • 11
3 votes
1 answer
2k views

Ansible lineinfile and Permissions of Parent Directory

I'm using lineinfile to update a configuration file. The file exists and the ansible_ssh_user owns it and has write permission, but the containing directory is owned by root. When my task runs I the ...
Ben Batschelet's user avatar
1 vote
0 answers
51 views

ProFTPd: Files and Directories of users group readable?

I have set proftpd users in mysql database using "proftpd administrator". Users home directories follow the rule /backup/agency_name/user1, /backup/agency_name/user2, ..., /backup/agency_name/userN. ...
BoCyrill's user avatar
  • 111
-2 votes
1 answer
862 views

Windows Server delete files in folder but no permision to delete folder itself

We have a problem, with permissions on shared folder for out employees. We have folder lets say Main, with multiple projects (files and folder inside), constantly added and removed. The problem is ...
user3040956's user avatar
5 votes
3 answers
47k views

Linux mysql server will not start, or restart

Intro Im running MariaDB and Apache on my linux machine and today I ran into some problems. I connect to the server via SSH and here are some of the issues Im facing. I have absolutely no idea what ...
Oldenborg's user avatar
  • 153
2 votes
1 answer
1k views

named running as root cannot read named.conf

Tried running named as my own user on an Ubuntu box, and it couldn't read the named.conf file: named -d 9 -c named.conf -g 19-Aug-2015 11:33:10.698 starting BIND 9.9.5-3ubuntu0.4-Ubuntu -d 9 -c named....
Don Branson's user avatar
-1 votes
1 answer
578 views

Unable to run logstash config file (permission denied) [closed]

my config file is stored in /etc/logstash/ and I ran the command $ /etc/logstash -f /etc/logstash/logstash.conf as root. However, they told me that permission denied when I tried to do that. ...
John Smith's user avatar
1 vote
2 answers
577 views

Different Permissions for different files / folders with bindfs

I'm following this guide: link on how to use bindfs. I have a question however. The guide only mentions broadsweep permissions for all files, however if I want seperate permissions (644 for files, and ...
Horizon's user avatar
  • 111
3 votes
1 answer
2k views

Write permission to a specific file without changing ownership

As I understand it, to give a write permission to a user I can either change the owner of the file to that user and give it "user write permission" (which I don't want to do), or keep the same owner ...
black's user avatar
  • 133
0 votes
1 answer
2k views

Permissions On Folder Give Me Access Denied. Why?

I have a user (dAdmin) and that user is a member of the domain admin's group and is also a member of the local server's (serverA) Administrators group. On the folder (fShare) I set it up as a share ...
Arvo Bowen's user avatar
1 vote
3 answers
2k views

Allow access in home directory for apache but not other users?

I build a website that automatically manages a dedicated server. It does all sorts of things like creating users and apache settings to point to their home directory. The home directories host game ...
Aron's user avatar
  • 13
1 vote
1 answer
510 views

How to achieve privilege separation between multiple services (e.g. uwsgi) proxied by nginx?

One website I maintain is composed of multiple local applications, all proxied by the same nginx instance. Each application is running under its own user and exposing a unix socket writable by the web ...
anx's user avatar
  • 9,738
0 votes
1 answer
566 views

AWS write permissions, httpd 2.4

Amazon Web Services, Server version: Apache/2.4.6 (Red Hat Enterprise Linux) The apache log reports: [Fri Aug 07 13:53:40.793562 2015] [:error] [pid 10730] [client 149.88.114.40:40800] PHP Warning: ...
rlib's user avatar
  • 195
1 vote
4 answers
12k views

NGINX - Failing to restart

After installing an SSL through Laravel Forge, my site does not load at all. When trying to restart NGINX, it fails. If I run sudo nginx -t, I get the following: nginx: the configuration file /etc/...
Zach's user avatar
  • 113

1
6 7
8
9 10
20