1
vote
1answer
67 views

Linux permission issues: “Permission denied”

I am provisioning a postgresql server on an TinyCore64 machine and there are some files and folders that cannot be accessed by the user postgres despite the fact that I have changed the permissions, ...
1
vote
1answer
56 views

Mounted HDD not having enough permissions from Apache/PHP

Piwigo gallery, on apache and php, CentOS 6. The root system is a RAID 128GB. /var/www/html is on the root file system. Mounted the 320GB hdd to /var/www/html/320 using defaults, it's an ext4 fs. ...
0
votes
1answer
32 views

How do I allow users to add/modify files in a directory but not change the directory - Linux

How can I modify a directory so that it is owned by a group and users in that group can add and delete files and create sub directories but are unable to change the permissions on the parent ...
0
votes
1answer
94 views

Capistrano fails to delete folders/files created by Apache

Problem Capistrano deploys a web application via SSH using deploy user. Apache/PHP runs under typical www-data user. Web server is creating cache files and folders at runtime inside the app path. ...
-1
votes
2answers
32 views

apt-get installation of nginx leaves files owned by root

This was originally posted on stackoverflow, but it was recommended that I post it here: http://stackoverflow.com/questions/23274818/apt-get-installation-of-nginx-leaves-files-owned-by-root/23346149 ...
2
votes
0answers
104 views

Linux NFS - set default user for new files on nfs share

I use CentOs as nfs server nad 2 Centos machines as clients. I have some problems with permisions/ownership for new files/directories created from clients on nfs share. My exports file: ...
1
vote
1answer
97 views

Owncloud data folder in /home

I've installed an owncloud server to share it with 7 others people. I have set a symbolic link from their data folder to their home (/var/www/owncloud/data/$USER -> /home/$USER/owncloud ). So every ...
2
votes
1answer
93 views

What is a secure set of permissions to give a set of files to be backed up?

On our server we have a number of users (i.e. clients) who need their code to be backed up. Their file permissions are usually 650 with user and group being user:user (where user is the actual user ...
1
vote
1answer
54 views

MongoDB starting gets terminating

I am installing the mongodb with the default configurations, and that gets started normally, but when I changed the dbpath value to point to different position it started giving me the exceptions, can ...
1
vote
0answers
63 views

How to secure tmp directory from hard link attacks when host doesn't allow partitioning

I'm a new sysadmin in the making, have learned that I need to have /tmp and /home directories on separate partitions in order to prevent possibilities of privilege escalation through hard links based ...
0
votes
0answers
77 views

Can I Set /var/www/ to 755 File Permissions and Assign Owner to www-data and Stay Secure? [duplicate]

So I am pretty new to managing my own permissions, and am looking for the cross between ease of use and security. What I have found as the easiest way to manage multiple domains on a VPS (Ubuntu ...
1
vote
2answers
75 views

Puppet - 2.7.x - Set SGID

Im trying to puppetize a module which will ensure I have the same path on servers for storing local log files for custom web applications. As such I would like to set the SGID to ensure that even if ...
3
votes
2answers
117 views

How to copy the permissions of a file to another?

Say I have two files: -rw-rw-r-- 1 webapp webapp 215 Jun 21 2012 index.php -rw-rw-rw- 1 root root 58 Dec 17 11:02 patch.log I would like to give patch.log the same permissions as ...
-1
votes
1answer
182 views

File Permission on /var/www/html [closed]

I changed the file permission. Now I am not able to access the website. nginx + php-fpm previously, chown -R user1:user1 /var/www/site.com I read in internet, and then i changed the file ...
0
votes
1answer
36 views

Manipulating root files in images without being root?

In our environment we have linux developer PCs and several embedded boards. The embedded boards are booted from an image. Those image files should be created/modified on the developer PCs. Mounting is ...
0
votes
1answer
155 views

Wordpress Permalinks Settings Page unable to update .htaccess

Thanks so much for taking the time to help me with this issue: I had a Wordpress blog hosted on a shared Bluehost hosting account. I'm currently in the process of migrating it manually over to an AWS ...
0
votes
2answers
115 views

assigning write permission to /proc/sys/vm

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 ...
2
votes
2answers
100 views

How to set permissions to use 'ls'

I have a folder (which is owned by another user but the same group) and I want to view it's contents, but I always get the following error message: "ls: cannot open directory .: Permission denied" ...
0
votes
0answers
52 views

Setfacl Defaults (non explicit) Not Applying

hopefully this is a quick one.... Am running CentOS 6.3 and 6.4 I am applying default permissions on a shared folder and am using setfacl adn setgid and to ensure that anything created takes the ...
0
votes
4answers
106 views

Should all files in /etc/mysql be owned by root or can mysql own them?

In the standard mysql setup on debian squeeze all files in /etc/mysql are owned by root. Can it be changed, so that mysql is the new owner or does it have a reason why they should stay by root?
-4
votes
1answer
53 views

how can I change /var permissions back? [duplicate]

I gave a 0777 permissions to /var (I didn't know back then that it's a really bad thing to do) I did this while in /var : chmod -R 0777 * after I did this postgresql fails to restart everytime. my ...
0
votes
2answers
97 views

Using rsync to copy files from one server to another, pertaining users and permissions

I'm backing up user uploaded files from my primary server to my failover server using rsync. If I use rsync -a to mirror an /uploads directory from server A to server B, can I expect programs using ...
0
votes
2answers
57 views

File permissions for multi-user process

I want to give a bunch of users (U1, U2,...,Un) on the same Linux server each a directory where they can read and write (D1, D2,..., Dn). So Ui should be able to read/write to directory Di, but Ui ...
1
vote
1answer
192 views

Change USB device owner

I have a USB printer that when I connect to the computer it's owned by the user root and the group lp, and it's file permission is rw-rw----, so I have to print via apache/php script. To solve this ...
2
votes
1answer
213 views

Using auditd to watch a directory non-recursively?

I'm working on a Cent 6 Cpanel machine, and some mystery script is changing the permissions of home directories (!) to 777. I've ruled out all the easy fixes, so I just need to set up a watch on the ...
4
votes
3answers
132 views

How to maintain file/folder ownserhip and permissions over time?

We have folders on a number of our (debian) servers that require various users (both real and system) to be able to read and/or write. We've come up with a particular file permissioning and ownership ...
0
votes
1answer
7k views

What is the t in drwxrwxrwt or the value of t? [duplicate]

ls -al / shows a folder: drwxrwxrwt 2 root root 4096 Feb 26 09:00 tmp What does the last character t mean in drwxrwxrwt?
1
vote
1answer
173 views

Set default file permissions: Creating files on Linux with group write permission

I am running openSUSE 11.0 on a server which is copying (and processing) a lot of files. The new folders, which were received by some service running, have the default permissions drwxr-sr-x and the ...
0
votes
1answer
344 views

Group permission inheritance and umask

Edit: in my case virtual_use_local_privs=TRUE did the trick. i'm trying to force newly created files and directories inside foo/ directory to be owned by nginx user and to set the right permissions ...
2
votes
1answer
139 views

How do I see if a file is readable by a specific user on Linux?

I have a complicated file hierarchy and I don't want to check the permissions on each directory. Is there any way to find out immediately if one file is readable by a given user? (outside of logging ...
1
vote
1answer
479 views

mysql doesn't start after relocating data dir

I have a web-server where the default installation of mysql places all its database files in /var/lib/mysql. The partition where /var is mounted has only 2GB of space, so after running in space ...
1
vote
1answer
319 views

Rsync to windows FTP over curlftpfs fails to set permissions

I'm transferring some large files (1.5Gb) to a windows FTP server in a cronjob. It's going over a 2Mbit ADSL line, with 512Kbit upstream. So it takes forever, and can be prone to dropping to line. I ...
2
votes
1answer
226 views

Restrict file access to append only

I have a directory with log files and I'm putting logs from script launched by users into them. Logging with syslog isn't possible in this case. I want the users to have only write permissions on ...
0
votes
2answers
206 views

How do I make it so that files created in a directory have a certain group ownership?

In a modern Linux distro, I want the files created under /path/to/files to have a default group of mygroup. It seems on some distributions this can be done by grpid, which doesn't exists on Ubuntu. ...
1
vote
2answers
364 views

nginx and php-fpm - Cannot write PHP error log

I am using Nginx and PHP-FPM on Linux. I am not sure whether the issue is that PHP is not writing to the location specified in the PHP.ini, or if it just isn't working at all. Some of the logs ...
3
votes
2answers
2k views

Setting umask for all users

I'm trying to set the default umask to 002 for all users including root on my CentOS box. According to this and other answers, this can be achieved by editing /etc/profile. However the comments at ...
0
votes
1answer
42 views

User permissions on web server [duplicate]

Possible Duplicate: What are the best linux permissions to use for my website? I have allot of users which install joomla, wordpress, drupal and other CMS things on their websites ( linux ...
1
vote
4answers
2k views

How to configure PHP CLI on linux ubuntu to run as www-data?

I have a symfony2 application on my ubuntu. Symfony has a plenty of useful console commands (like php app/console cache:clear or php app/console assets:install web). The problem is If I run them as ...
2
votes
1answer
437 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 ...
0
votes
2answers
174 views

How to keep groups when pulling with git

I have a staging site that is a working directory of a git repository. How to set up git to let a developer pull out a branch or release without changing the group of the modified files? An example. ...
1
vote
2answers
351 views

All my files uploaded have unusable permissions

I've just moved to a new server and have come across some strange permissions issues. Every file I upload has permissions of 600, owned by the user account and is also in the same group. With this ...
0
votes
1answer
79 views

lamp server permissions on development server [closed]

I run a LAMP server on a ubuntu laptop I use only for development. I am not greatly concerned with security, since the server is never accessible outside the local network, and it's turned off when ...
10
votes
2answers
371 views

How are r— directory permissions supposed to work on Linux?

I have created directory a created has these permissions - the other user has drwxr--r-- 5 user user 4096 2012-09-15 19:30 sites When do an ls -l on the directory as another user ls -l ...
5
votes
3answers
2k views

wget starts downloading then stops “cannot write to”

I'm using wget to mirror some files across from one server to another. I'm using the following command: wget -x -N -i http://domain.com/filelist.txt -x = Because I want to keep the directory ...
1
vote
1answer
218 views

Why can't a user in my group write to this file?

I have a file on server that can be written by a group. The group is called "deploy" and the user is "mima." I have verified "mima" is in "deploy" with: $ id mima uid=1001(mima) gid=1002(mima) ...
1
vote
3answers
129 views

Linux / CentOS - Need to set R/W only permissions for future directories

I have very little background in Linux of any type, so I'm completely firing off the hip to begin with. I have been asked by the boss to set up an FTP server based on CentOS. So far, things have ...
2
votes
2answers
67 views

similar files has the same permission & owner but some of them give forbidden error

I moved a file from another server to my server. in directory listing Apache doesn't show it and I cant download it from browser (forbidden) but I created a new file and chmod + chown both of them to ...
0
votes
1answer
89 views

Proper linux permissions for images that are uploaded to allow deletion and re-uploading

What permissions should I set, and how, to allow apache to overwrite uploaded images, deleting them and re-uploading them, as well as allowing the permissions on the underlying folders to be passed to ...
0
votes
1answer
65 views

File permissions: parent folder has 100% control of all children, children can't do anything

Here's my current structure: script.py apps/ |-generated-folder-1/ |- [files] |- generated-folder-2/ |- [files] |- generated-folder-3/ |- [files] How do I set up permissions so that script.py ...
0
votes
3answers
190 views

Apache Server files in /var/www/

All right... I have my server set up and I have 4 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 way of ...