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.

learn more… | top users | synonyms (1)

185
votes
3answers
133k views

What's the best way of handling permissions for apache2's user www-data in /var/www?

Has anyone got a nice solution for handling files in /var/www? We're running Name Based Virtual Hosts and the apache2 user is www-data. We've got two regular users & root. So when messing with ...
6
votes
3answers
12k views

FTP and Apache permission issues

Im having issues as to which user should own my www directory - ftp or apache? When set to the ftp user, the user can add, remoe and easily modify files but php file system actions generate permission ...
27
votes
1answer
14k views

What Should be the Permissions of Apache SSL Directory, Certificate, and Key?

I have my cert.pem and cert.key files in /etc/apache2/ssl folders. What would be the most secure permissions and ownership of: /etc/apache2/ssl directory /etc/apache2/ssl/cert.pem file /etc/apache2/...
4
votes
4answers
1k views

How to add a line to the end of a file which I can access via sudo?

I have tried: sudo "some string" >> test.txt But I am getting permission denied warning. Can anyone help?
5
votes
1answer
12k views

Folder permissions, red x on user object

On shared folders on the file server, for the domain user name object under the security tab, the icon has a red x. There are no symptoms, the users have full access, there is just a red x on the ...
4
votes
4answers
15k views

Is it possible to grant rename permissions, but not delete, in NTFS?

We have a folder for employees to scan contracts to. After scanning, they're supposed to rename them according to our conventions so they can be processed further. In response to a recent incident, ...
19
votes
7answers
12k views

Copy permissions to identical tree on linux / unix

i have a tree of files with correct permission. then i have a (filewise) identical tree (with different file contents tough) with wrong permissions. how can i transfer the permissions layout from ...
13
votes
1answer
108k views

What is a S-X-X-XX-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXX-XXXX called in Windows security?

I copied two trees, a source and a destination, that I copied with robocopy like this: robocopy /MIR C:\Windows\System32\tasks\ C:\temp\robocopyTasks\out\ robocopy /E /Copy:S /IS /IT C:\Windows\...
7
votes
3answers
3k views

Copy a file's owner permissions to group permissions

How can I copy a file's user/owner permissions to it's group permissions? For example if the permissions are 755 I want them to become 775. Clarification: 755 -> 775 123 -> 113 abc -> aac Bonus if ...
5
votes
4answers
10k views

Permission issues with Samba and OS X

I'm having some serious permission issues with Mac client machines (OS X Snow Leopard) connected to a UNIX server (running CentOS) through Samba. No matter which permissions I set for a file on the ...
7
votes
2answers
1k 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 ...
5
votes
2answers
2k views

push commits to git (gitolite) repository messes up file permissions (no more trac access)

already posted here so feel free to answer there. everytime i commit/push something to the git server the file permissions change (all added/edited files in the repository have no read and execute ...
5
votes
4answers
1k views

Effectively handling 2+ million files

I have a file based DB that has about 2M files stored in 3 levels of subdirectories. 2/2/6253 2/2/6252 ... File a vary from 30 bytes to 60 KB. Whole DB is Read Only. DB is about 125 Gigabytes big. ...
3
votes
1answer
2k views

Default permission for newly-created files/folders using ACLs not respected by commands like “unzip”

I am having trouble with setting up a system for multiple users accessing the same set of files. I've read tuts and docs around and played with ACLs but haven't succeeded yet. MY SCENARIO: Have ...
8
votes
1answer
9k views

What do you do to fix corrupted or blocked permissions on company file shares?

Lately I have been working with one of our storage guys on a project that has involved some scrutiny of big file shares that have been used by the company for years. Frequently, we run into ...
1
vote
5answers
2k views

User permissions for both apache and local user

I'm trying to allow permissions to files on the /home/user1/public_html/ folder for both user1 and for www-data (apache). I've been instructed to run these commands: sudo chown -R www-data:user1 /...
0
votes
2answers
2k views

correct file permissions for trac and git user to access gitolite server repos

sounds like a stupid questions (to me), but i couldn't find any info. on my server i host some git repositories via gitolite, and have a trac for every repository. i have a user called git to push/...
6
votes
3answers
2k views

How do I add permissions to group to match user permissions?

Some one messed up /usr/local/ permissions, so that nobody else can access it. Now I would like to duplicate user permissions to group permissions, since chmod g+rx -R /usr/local is unsafe. How should ...
3
votes
2answers
1k views

Set primary group of file or directory on Samba share from Windows

Short version: I have such situation on a Samba share: $ ls -lha total 12K drwxr-xr-x 3 hka Domain Users 4.0K Jan 11 17:07 . drwxrwxrwt 19 root root 4.0K Jan 11 17:06 .. drwxr-xr-x 2 hka ...
2
votes
1answer
8k views

403 Forbidden error on Mac OSX - Apache and nginx

There are a million questions like this on Google, but I haven't found a solution to my problem. The default Apache install on my Mac is giving 403 Forbidden errors for everything (default directory, ...
1
vote
2answers
2k views

List existing file server permission groups/users

So we took over a new client and their file server is frankly a mess. We have migrated their old file server from a 2k box to a 2k8 DFS cluster and now I'm looking at rebuilding both the folder ...
1
vote
2answers
1k views

linux timestamp permission error with winscp

I added a user to a group and set the file and dir content to 775. When i use winscp to modify a file it complains it cant set the timestamp bc of a permission error. But it is able to update the file ...
0
votes
2answers
9k views

How to set shared files permission across a network?

I am trying to set permissions to a shared folder. Let's say the shared folder is in computer A. I want computer B and C can only read the folder but computer D can delete the folder. I don't have a ...
0
votes
1answer
226 views

chmod -R 777 /. - RHEL 5.5

A shell script testing went bad and it issued chmod -R 777 /. to the system, instead of chmod -R 777 ./ and as expected it wiped the critical meta data. We have turned off the system and it ...
0
votes
3answers
4k views

Why is it necessary to chmod o+r parent directory to fix 403 access forbidden error with Nginx and Passenger?

This may be an Nginx wrinkle, or it may be because I don't understand Unix permissions. We're using Hudson CI to deploy our staging instance. So RAILS_ROOT is /var/lib/hudson/jobs/JOBNAME/workspace. ...
6
votes
1answer
511 views

Forward SFTP user to chroot subdirectory after authentication

I've set up a SFTP server using OpenSSH, everything works fine and the users I created can connect. After authentication, the users find themselves directly inside /chroot, a directory they are not ...
2
votes
2answers
3k views

nginx & file permissions

I'm running nginx on Debian Lenny. I have many people on the box and they all have "http" directories in their home folders, and I have nginx vhosts configured for those. The problem is: how do I ...
2
votes
1answer
96 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 ...
2
votes
1answer
440 views

Removing deny everyone permissions from GPO

As part of the workaround for CVE-2014-1776 I created a group policy object that applied Deny permissions to everyone on VGX.DLL. I am now trying to undo this group policy and having a lot of trouble....
2
votes
1answer
462 views

Preserving file rights when copying a folder on Windows Server

We have a shared network drive running Windows Server at work. One of the folders contains sensitive information that should only be visible to a small group of people. The problem is that if one of ...
2
votes
3answers
6k views

Re-give users ownership of their mapped home folders via powershell

I changed the user quota on a windows 2008 machine and after that some users reported that they were able to read but not write to their mapped home folders. If I re-enter the Home Folder path in the ...
2
votes
1answer
840 views

Samba Ignoring POSIX ACLs

I have an Ubuntu 10.04.4 LTS server running Samba, and joined to our Active Directory domain using PBIS (formerly likewise-open.) Samba is configured to do authentication using AD users/groups, and ...
1
vote
1answer
977 views

Permissions don't appear to be working correctly on a new Windows 2008 R2 server

I have a new server which is joined to our domain. When I try to save a text file in a folder I am getting access denied. I am logged in with a domain admin account I have checked that 'domain ...
1
vote
2answers
2k views

Regular user can not access NFS4 mounts (permission denied)

I have nfsserver and nfsclient machines. On nfsserver: # cat /etc/exports /export gss/krb5p(rw,sync,fsid=0,no_subtree_check,crossmnt) /export/home gss/krb5p(rw,sync,no_subtree_check) On ...
1
vote
3answers
568 views

assigning write permissions to /proc/sys/vm in ubuntu

I asked my sysadmin if he can do the following: echo 0 > /proc/sys/vm/zone_reclaim_mode He came back to me saying that he doesn't have the necessary permissions (as root) to create a file in that ...
1
vote
1answer
240 views

Git prime/hub website deployment: documentroot changes save fine but permission denied for subdirectories

Following the instructions in A web-focused Git workflow I set up a prime and hub repository on my web server and then cloned the hub to my machine at home. I started testing commits and pushes with ...
0
votes
1answer
56 views

lighttpd can't access same files and apache can't

I having a issue with lighttpd, It can't access any of my files in ../media/* but apache can. It's the very same files it have been running for a very long time, until for 4 -> 6 hours ago, where it ...
0
votes
1answer
72 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 ...
0
votes
1answer
531 views

umask is being ignored on Gentoo while creating new files

I have a server running Gentoo and hosting a drupal installation. Whenever a Drupal update is executed, the directory permissions of the updated module turn from 755 to 744 preventing the application ...
0
votes
3answers
1k views

Why cant a group member modify a file in a group he is part of?

-edit- i figured it out. I needed to use adduser username group instead. I added a user with the command useradd -G myapp_user newusername then i changed the group on the public folder that i ...
0
votes
1answer
125 views

Apache Server Joomla files in /var/www/

All right... I have my server set up and I have 4 Joomla! sites residing in /var/www/. Each site directory and the files underneath it are all root:www-pub according to this post: What's the best ...
0
votes
0answers
333 views

When does a computer cache file permissions?

I just had an issue where users were directly added to the ACL of a folder. I created a group, added them to the group, added the group to the ACL of the folder and then removed the users and pressed ...
0
votes
3answers
751 views

File permissions question

I just switched my site's server from Windows to Linux, and am finally able to control file permissions from my ftp. So, seeing that all permissions were 705 by default (and not wanting just anyone to ...
0
votes
1answer
260 views

Give SFTP users and Apache write permissions on same folders

I have a centos6 web server where developers also upload by connecting through SFTP. So, to give developer login write permissions, I have change /var/www user to that user. My current permissions are:...
-2
votes
4answers
434 views

How to make NGinx to ignore file permissions? [closed]

I use NGinx to serve static sites, and sometimes there are some files with 640 permissions instead of 644. For such sites NGinx says "403 Forbidden". Is there any way to tell NGinx to ignore file ...