A Unix tool for changing file permissions

learn more… | top users | synonyms

-1
votes
0answers
21 views

Fix Linux Log Directory Permission Denied

I just setup a fresh install of Amazon Linux on EC2 and I cannot access the following directory: -bash: cd: /var/log/httpd: Permission denied or -bash: cd: /usr/share/tomcat7/logs: ...
0
votes
1answer
24 views

Wordpress can't write on file [closed]

I've a problem with permissions/users on my new server. I moved my wordpress blog to a new CentOs server. In this server I've been provided with an ftp user. If I upload a file via FTP with this ...
0
votes
2answers
30 views

Apache2.4 and Php-cgi : which chmod for log file?

I'm using a Php lib (Monolog) to create my logs. When I delete my log file and access my website in order to generate logs, I see the file created into the good log directory: -rw-r--r-- 1 apache ...
0
votes
1answer
44 views

Correctly assigning permissions & groups

So my nginx is using www-data:www-data, and I want to deploy files to my server with Beanstalk through sftp properly. So I've created an user called beanstalk and added him to www-data group. $ id ...
-1
votes
2answers
36 views

/var/mail Folder Permission (Setup Mail Server with Dovecot) [closed]

I am following a guide to setup a mail server and accounts on a Debian 7 OS and they ask to set up a folder permissions to match this: drwxrwsr-x 3 root vmail 4096 Jan 24 21:23 /var/mail But my ...
0
votes
1answer
41 views

Automysqlbackup - dumped files have wrong permissions

This question has been askewd here. But it was not answered. I just got a 3rd server and on all 3 servers I use Automysqlbackup script to create MySQL backups. I do it with cronjob: 52 04 * * * ...
-1
votes
3answers
49 views

Issues with file rights in CentOS [closed]

May someone explain me how to manage rights correctly pls? I have a file with these rights: 8 -rw-r--r--+ 1 sntecard sntecard 4669 Sep 18 12:34 index.php I am accessing this folder by user ...
-1
votes
1answer
248 views

Connect to remote host from windows using SSH/pem [closed]

So I have a .pem and I need to connect to a remote machine using that. I have been told to do: ssh -i key.pem root@remote machine Before that I am supposed to chmod 600/400 on key.pem I am on ...
3
votes
2answers
1k views

Why would chmod give “No such file or directory” when running recursively?

I can change the permissions of the file directly: # chmod --changes --recursive ug+rwX /var/www/shared/tmp/cache/assets/BA0/280/sprockets%2F286302903364106648b609d708884f78 and I can also ...
0
votes
1answer
183 views

Permission samba shared www folder

I'm having trouble with permissions on a samba shared folder on ubuntu server 14.04. This is the www one. But actually, it's in /home/administrateur. As I want to preserve my www folder whatever ...
3
votes
3answers
262 views

Maintain setgid bit (after bower install or gulp build)

We run web servers where we have the following situation: The www-data user runs the web server and must have read+write access to the files The deploy user deploys all the code The bob and alice ...
0
votes
0answers
126 views

ISPConfig FTP permissions

I am using ISPConfig for a job that I am on and for some reason, one of the sites that is being hosted using ISPConfig does not have proper permissions and I don't know how I would even go about to ...
0
votes
1answer
311 views

Linux permissions in /var/www: What settings can I use for good security practice and still maintain accessibility?

I'm primarily trying to set permissions inside of /var/www . We are using a project format which has the following structure in common for each project: /var /www /runtime /shared /project.com ...
0
votes
1answer
276 views

How do I chmod ACLs to groups with spaces in the name on Mac OS X?

I'm trying to add an ACL for the group "Domain Users", but since it has spaces in the group name it isn't parsed correctly by chmod: $ chmod -R +a 'DOMAIN\Domain Users allow ...
1
vote
1answer
114 views

Different permissions for different groups on one folder in OpenBSD?

Is it possible to have filesystem permission ACL's (or similar) in OpenBSD? I'm trying to make a folder where one group has read-write access while a different group has read-only access. I don't want ...
0
votes
1answer
803 views

Permission denied on owned file

I'm having issues setting permissions for a specific user. I have a directory /srv/git/ in which I'm trying to create a sub-directory test containing one file testfile (owned by www:www-data). ...
1
vote
1answer
288 views

allowing php/apache to delete files in an ftp directory and subfolders

Basically, I am having an issue with a php script being able to move or delete files, and I know it has to do with permissions since that's what the php error from unlink() is telling me, but I'm not ...
2
votes
0answers
24 views

Specialized access control for directories in RedHat 6?

I have a requirement where I want to set permissions for a directory so that the directory owner (user/group) would be able to create files inside the directory and modify them, but won't be able to ...
3
votes
3answers
7k views

vsFTPd default uploaded file permissions on Ubuntu not working

I have a Server running Ubuntu 12.10 x64, and the last version of vsFTPd. My user example.com has its home folder set on /var/www/example.com, I created a public_html folder inside and gave 777 ...
-1
votes
1answer
274 views

which is better, setfacl or chmod +a? [closed]

I have been working with Ubuntu for a year or so. Just the other week I have started to learn the Symfony framework which works faster with the ACL. In the installation and configuration of Symfony ...
0
votes
2answers
130 views

Enable apache to create directory/files

I want to enable apache to automatically create files/directories. In some web hosts, for example, when I install wordpress, apache is able to automatically createwp-config.php file. But In my VPS, ...
1
vote
0answers
62 views

Weird permissions getting set on directories after rsync

I've got a drive on a Mac (OSX 10.7.5) that I'm sharing on the LAN. In the system preferences, the share is set so System Administrator has Read & Write access, System Group has Read Only, and ...
-2
votes
1answer
292 views

File base permissions are 666, why and is this a configurable value? [closed]

It is specified in various documentation on the net that linux/unix file base permissions are 666 with regards to how umask manipulates. This is also relevant with regards to the fact that default ...
-5
votes
1answer
161 views

Why I can't upload files without chmod 777? [closed]

I was not able to upload files on my site (cent OS 6 VPS). The path where web files should be uploaded is /var/www/html. The permissions of directories were 755 and of files were 644. But when I ...
-1
votes
1answer
99 views

Unable to change access permissions on external ntfs Harddrive [closed]

I am fairly new with Linux when it comes to mounting hard drives, so hopefully this is a simple question. I recently purchased a 3TB hard drive that would have read/write access with both Mac and ...
-1
votes
1answer
72 views

Trouble CHMODing a file (777) [closed]

In order to CHMOD 777 a file, am I using the command correctly? chmod 777 /var/www/html/core/database/connect.php I am trying to use it, but it isn't saying anything... like no error or not saying ...
-1
votes
1answer
503 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 ...
1
vote
1answer
69 views

How To Block FTP Users From Changing File Permissions

I have been tasked with trying to reproduce an issue one of our developers is running into. On certain FTP servers, the FTP library he is using (Starksoft/Biko) returns a "530: Not Logged In" error. ...
0
votes
0answers
99 views

Why does git remote repo only work as root?

I followed this description setting up a git remote git repo. This worked pretty well so far, but only when I use root@mygitserver.com:/gituserhomedir/someproject.git. When I switch to user git@... ...
0
votes
2answers
89 views

How to block access from users but not from http?

My web files are located in /var/www/html/example.com/web/ Permissions are: drwxr-xr-x 20 root root 4096 Aug 13 18:22 var ... same for www and html ... drwxr-xr-x 4 root root 4096 Aug 13 ...
1
vote
2answers
228 views

I'd like all files created in a specific directory to automatically get 755 permissions, is that possible?

The relevant folder is over-written every couple of days but I want it's content to retain the 755 permissions. I've tried chmod g+s dir but to no avail. Is that even possible?
2
votes
2answers
263 views

ls permission denied even with execute permissions

I chowned recusively /srv/site to www-data:www-data and chmodded it recursively with ug+rwx. I then added myself to group www-data. $ sudo usermod -a -G www-data cyrus $ sudo chgrp -R www-data ...
3
votes
1answer
54 views

How to run a recursive chmod that stop at FileSystem Boundaries

I have a directory with lots of files and inside a mounted directory. var/ log/ nfs/ (a NFS remote directory) www/ How can I chmod/chown everyfiles inside that directory without changing ...
-1
votes
1answer
731 views

FTP user not able to see or access anything?

I am trying to make an FTP account for a user, and it is not working. The user wants to be able to ftp to his sites home directory, and change stuff. I created a user(MEvans) and set the home ...
1
vote
1answer
281 views

/var/run/saslauthd changing permissions on restart

On saslsauthd restart I keep getting following permissions on /var/run/saslauthd dir: drwx--x--- This makes e.g. Exim unable to talk to saslauthd. If I change permissions like this: chmod o+x ...
0
votes
1answer
237 views

AWS EC2 - How can I recover files now that I'm no longer able to SSH into my server instance? [duplicate]

(I'm very inexperienced with servers) After getting frustrated with some permission issues on my AWS EC2 instance I decided I would do the command: chmod -R 777 / I thought that would change the ...
4
votes
1answer
349 views

Still confused by Permissions - linux, nginx, php-fpm

I have read the canonical answer at What are the best linux permissions to use for my website? However I'm still stuck. My setup is: A developer user 'ade' who owns the directories and files that ...
-4
votes
1answer
64 views

What are the proper chown settings for images? [duplicate]

I am testing a piece of software that is working except for some SVG images that are not showing. When I preview them using Firebug in Firefox, it says "Failed to load the given URL," however, when I ...
4
votes
4answers
356 views

Make recursive chmod faster

I have an installation script that unzips a directory, then recursively chmods its contents. I'm surprised it takes almost 10 times the time it takes to unzip, to run the following two commands: ...
0
votes
1answer
3k views

How to set permissions for a CIFS mount with autofs?

I've set up a CIFS mount on my CentOS 6.4 server with autofs : File /etc/auto.mnt : Photos ...
0
votes
2answers
675 views

linux: grant write access to a folder for a single user

let's say we have dir1 with mode 755 root root and I want user1 to be able to write to the directory, but I don't want to add him to the root group or change the user or group ownership of the ...
0
votes
2answers
1k views

Best way to recover mysql from a “chmod -R 777 /” with databases intact

Question: What is the best way to recover mysql (or worst case: migrate away) from a "chmod -R 777 /" with databases intact? System: Ubuntu 12.04 LTS MySQL 5.5.24 64 bit Amazon EC2 cloud server. ...
1
vote
1answer
182 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 ...
4
votes
1answer
190 views

chmod -R 777 on PXE server - why

So I am following a guide to set up a PXE server, for reference here are the links: Actual PXE setup NFS PXE setup Live-cd PXE setup: Now throughout these guides he keeps running the chmod -R 777 ...
1
vote
0answers
294 views

CHMOD permission denied on SMB share

I'm mounting an SMB/CIFS share on my CentOS 6.4 server using /etc/fstab as follows: Mount windows share to /mnt/mywebsite //10.1.1.4/mywebsite /mnt/mywebsite cifs ...
0
votes
1answer
200 views

CHMOD 0777, but Wordpress still not able to write files/folders

The day before yesterday I ordered my own VPS. But now I have problems with Wordpress, Wordpress is not able to create a .htaccess by itself, not able to write to it and plugins aren't able to create ...
0
votes
1answer
271 views

How to add write permissions to php/apache? [duplicate]

I've got the following scenario: There's a folder named "uploads". It's owned by "root" and it's group is "webmasters". Permissions are set to 755. drwxrwsr-x 2 root webmasters 4096 Mar 20 22:49 ...
0
votes
1answer
263 views

Chmod operation not permitted?

I'm trying to deploy a rails app and i've done it before, but this time i'm having a weird issue. Why can i not run this chmod command? I'm currently logged in as user: csmsched -bash-3.2$ pwd ...
1
vote
2answers
105 views

List all folders that have permissions of 777

Is there any way to list all the folders that have permissions of 777?
2
votes
1answer
1k views

chmod 1777 or 3777 on /tmp

Is there an ideal chmod for /tmp (with /var/tmp symlinked to /tmp)? I've seen people mention it both ways just curious as to the difference. Is it a security difference?