A Unix tool for changing file permissions
Questions tagged [chmod]
248 questions
0
votes
1 answer
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 beanstalk
uid=1000(beanstalk) gid=1000(beanstalk)…

pyronaur
- 97
- 1
- 2
- 11
0
votes
1 answer
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 * * * /home/backups/backup.sh >/dev/null 2>&1
Dumped and…

tfegc
- 221
- 1
- 5
- 10
0
votes
1 answer
Connect to remote host from windows using SSH/pem
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 windows. When I type ssh or chmod it says unrecognized…

open_sourse
- 141
- 2
- 8
0
votes
1 answer
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 happens, I put it in my /home/administrateur folder.…

Neovea
- 113
- 4
0
votes
1 answer
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…

That Realtor Programmer Guy
- 233
- 2
- 8
0
votes
1 answer
which is better, setfacl or chmod +a?
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 (…

John
- 887
- 4
- 15
- 25
0
votes
1 answer
File Permission on /var/www/html
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 permission.
groupadd web-content
usermod -G web-content…

Mahesh
- 247
- 1
- 4
- 16
0
votes
2 answers
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 18:22 example.com
drwxr-xr-x 10 apache root 4096 Aug…

andrewtweber
- 449
- 1
- 10
- 18
0
votes
1 answer
AWS EC2 - How can I recover files now that I'm no longer able to SSH into my server instance?
(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 permissions of the folder I was in, but it seems to…

Kevin Beal
- 103
- 5
0
votes
1 answer
Windows File Permissions - Comparing to chmod
I am using an SAP specific tool (like Winzip) called SAPCAR to compress and decompress files into archives.
I have a file from SAP called KA71007.SAR
When I view the contents of this archive it displays:
SAPCAR -tvf /KA71007.SAR
-rw------- …

Techboy
- 1,550
- 7
- 31
- 49
0
votes
1 answer
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 files/folders.
Support hadn't the time for me, so…

Erik van de Ven
- 103
- 2
0
votes
1 answer
How to add write permissions to php/apache?
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 upgrade
With this setup I'm not able to create files…

netblognet
- 103
- 5
0
votes
1 answer
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 /home/testuser/public_html/index.htm
How do I stop…

Kal
- 141
- 7
0
votes
1 answer
/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 for file and folder in /dev/* ? Can I restore it…

iKid
- 165
- 5
0
votes
1 answer
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 /apache/1.txt, but not allow the user to go to…

tkbx
- 201
- 1
- 2
- 6