A Unix tool for changing file permissions

learn more… | top users | synonyms

1
vote
0answers
10 views

chown or chgrp NFSv4 with idmapd error: Invalid argument

I only found 1 or 2 other posting on this, without any solution, so I am creating a new, more specific question for my case. System set up: NFS server running NFSv4. NFS client running RedHat 6, ...
-4
votes
1answer
63 views

SSH broken due to chmod -R /* [duplicate]

I made a total mistake here. Anyway I ran chmod -R 777 /* and immediately regretted my decision. I had to boot into single user mode to and ran chmod -R 755 /etc/* in order to login to the server. ...
0
votes
2answers
79 views

why can't I ssh into my aws ec2 instance? Permission denied (publickey)

I created two ec2 instances, and was able to ssh into the first two fine. After creating the third, I get this error upon trying to ssh into any of them. This is what I'm running: ssh -v -i ...
-1
votes
0answers
14 views

Prevent other user read my files [migrated]

Hello i have 2 users Joe is root and Gary (normal user) but if gary enter 'cat /home/joe/function.php' gary can view all code with mysql password into this file. What is the solution for disable all ...
0
votes
1answer
67 views

Prevent changing ownership of a file

I have file with 777 permission. How can I prevent changing ownership of that file by others? ie I need to prevent chown x:y myfile myfile is a log file written from web. it's ownership is www-data.
-1
votes
1answer
55 views

SSH and many other programs are not working after chmod -r 755 /etc [duplicate]

I have a new web-admin and he mistakenly ran chmod -r 755 /etc to try and disallow our shell users from reading any other files. As a result, SSH on our server does not work. How can we fix this?
0
votes
0answers
75 views

Protect web directories from other SSH users but allow apache access?

So my linux box has 2 users : root (which I use) dev (the user that my developer uses) I have a few directories on my web server which I need to restrict access from the "dev" user. So, for ...
0
votes
1answer
42 views

550 error after setting permissions on folder [closed]

I'm running a Centos6 VPS with Plesk 11. I am unable to access a folder using FTP after changing the permissions to 666 using chmod. I can create the folder using SSH and can then enter the folder by ...
0
votes
2answers
202 views

CHMOD to make directory writable by group not working

I'm trying to make the node_modules directory writable by www-group, but chmod isn't working. vagrant (user) is part of the www-data group as seen with the groups command. Why can't I permit ...
0
votes
1answer
34 views

Local “incoming” dir

I need to create a directory on a Linux server where users can "submit" files, similar to the incoming directory on an ftp server. (Where they would not be viewable after submission.) Specifically, ...
0
votes
2answers
171 views

Stop file being deleted on NFS mount

I have files stored on an NFS mount which I want to prevent being deleted. The use case is I have a demo version of a web application which uses the same images on every demo - when someone deletes a ...
0
votes
1answer
62 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
48 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
118 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
152 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
156 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
143 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
1k 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 ...
4
votes
2answers
2k 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
258 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
345 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
1answer
549 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
633 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
169 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 ...
1
vote
1answer
2k 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
420 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 ...
6
votes
4answers
16k 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
416 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
413 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
87 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
461 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
291 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
137 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
76 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
654 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
106 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
120 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
97 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
314 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
427 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
118 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
1k 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
439 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
361 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
469 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
69 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
469 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
5k 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
1k 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
2k 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. ...