2
votes
2answers
30 views

Maintaining Linux file owner and group info in a multi-user system

I have a web application running on Linux (using CentOS 6) using a generic non-root user name, say app1. I've associated all the files under the folder /home/app1 with that user/group (using chown -R ...
0
votes
0answers
18 views

set group ownership after git deploy

I'm running Centos7 and have a git reset --hard + git pull running as user A. The git reset --hard is triggered on the server by logging into the server through SSH as user A and issuing the git ...
1
vote
3answers
85 views

How do I detect what is changing file ownership on Linux?

I have inherited a bunch of Linux (Ubuntu Precise) servers and am currently having problems with the ownership of a folder changing to "root" fairly often. We run puppet, which changes the ownership ...
3
votes
1answer
41 views

Read only permissions still allows to save

I have a weird permissions situation that I can not explain. Let me explain my users and group and then show you the folder permissions. drwxrwsr-x. 2 jenkinsuser applog 4096 Jul 15 09:56 . ...
20
votes
8answers
2k views

Restrict a Linux user to the files he owns

Imagine a server setup of a shared webhosting company where multiple (~100) customers have shell access to a single server. A lot of web "software" recommends to chmod files 0777. I'm nervous about ...
1
vote
1answer
181 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
115 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
70 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
243 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
46 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
1answer
305 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
256 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
98 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
103 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
84 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 ...
1
vote
2answers
87 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
121 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
337 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
38 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
184 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
153 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 ...
3
votes
2answers
105 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
4answers
122 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
109 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
148 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
58 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
316 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
242 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
135 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
9k 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
184 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
414 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
162 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
925 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
364 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
249 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
217 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
448 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
3k 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
3k 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
573 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
222 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
404 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
82 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
396 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
3k 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
255 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
142 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 ...