A Unix tool for changing file permissions

learn more… | top users | synonyms

-1
votes
1answer
39 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
361 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
69 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
223 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
58 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
100 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
92 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
78 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
211 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
188 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
21 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 ...
1
vote
3answers
2k 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
194 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
95 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
50 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
180 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
116 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
66 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
68 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
232 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
0answers
80 views

How to inherit File Permissions for mails in Postfix Maildir

I need to set the Email files in a specific maildir accessible to all users of the server (chmod 0777). How can I achieve this.. I have tried stickey bit, but the ACL do not inherit to mail files in ...
1
vote
1answer
58 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
85 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
83 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
173 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
181 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
45 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
271 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
211 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
193 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 ...
3
votes
1answer
295 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
62 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
297 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
2k 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
247 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
680 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
153 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
155 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
252 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
162 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
155 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
196 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
104 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
816 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?
-4
votes
1answer
218 views

Chmod all files and directories recursively to 666 under /usr [duplicate]

I want to make an chmod command that's recursively will apply the privilegies to all directoris under that. Example: chmod 666 /usr I want that every directory under "/usr" turn into permissions to ...
0
votes
1answer
57 views

Shared hosting, stop user deleting .htm file?

Hi guys I have set up a small shared hosting set up for friends. I have set the file chmod permissions to chmod 711 /home chmod 711 /home/testuser chmod 755 /home/testuser/public_html chmod o+r ...
0
votes
1answer
191 views

Why is kjournald extremely active on a mostly quiescent filesystem?

Note: This is a "documenting my process" question that I'll be writing an answer to. Happily, serverfault already helped me solve this, because writing up my situation so others would be able to ...
0
votes
1answer
107 views

/dev/* permission

I accidentally sudo chmod 666 /dev/*. And now many devices in my computer messed up. I have fixed some of them like /dev/shm, /dev/snd but I am not sure about the rest. What's the correct permission ...
1
vote
1answer
111 views

sftp limitation: disable chmod +x

Do I have an option to forbid a user group or a sftpuser to set chmod +x? The user shall be allowed to upload media files, but no php scripts to run for example.
0
votes
1answer
126 views

File readable by only PHP?

I'd like to make a file on my server be readable by PHP, but not directly accessible with a browser. Say my Apache installation's root is /apache. I'd like PHP to be able to get the text of ...