A Unix tool for changing file permissions
Questions tagged [chmod]
248 questions
0
votes
1 answer
chown, chmod & bad settings on /home/user/.ssh directory in fresh install of CentOS 6
I just finished installing CentOS 6 last night (netinstall from georgia tech repository), and have been running into some weird SSH issues when I try to SSH from the CentOS box (behind my home network) to one of my public-facing web servers.
After…

David W
- 3,453
- 5
- 36
- 62
0
votes
2 answers
How can i protect my php files on a server (chmod ?)
I have a dedicated server, on this server i have two vhosts. and i will give the access of the server to two people. In my php file there's the database password and i don't want to share that with them.
So how can i protect the php file from…

Gordon
- 1
- 1
0
votes
3 answers
Apache Documentroot access forbidden
Running Arch Linux I am trying to get apache to use /www (not /var/www) as DocumentRoot. /www is a softlink to /home/user/www. However, I keep getting an "Access Forbidden" error. The / and /home folders are part of different partitions. Could this…
user60129
0
votes
2 answers
Wordpress: chmod 600 wp-config.php (or 640) and get white screen of death. What do?
I'm working with Wordpress for the first time and, as per the security guidelines in this guide, I'm chmodding wp-config.php to 600 (user can read/write, no one else can do anything). However, this gives me the white screen of death when I try to…

Dylan Knowles
- 147
- 1
- 3
- 9
0
votes
2 answers
Is there an alternative for this chmod command on Debian?
I'm trying to setup a chmod using this command
sudo chmod +a "www-data allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
apparently this does not work on debian.
Any clue on how to achieve the same thing ?

Paté
- 115
- 1
- 5
0
votes
1 answer
Home folder permission in Ubuntu for apache public_html
I read a lot about that here, but I guess I just can't get it. So here is what I got:
I have Ubuntu 10.04 installed and I just created vhost for a domain, let's call it example.com. I also created a user "example". So I want to host my domain in…

John Gold
- 3
- 1
0
votes
2 answers
User in group with r/w access does not actually get the read/write anything
I added my user to the www-data group.
I chmodded a certain directory to 774 (-R, recursively) so only the owner and the group can change something.
Yet my user can't even access it. What am I missing?
Here's my ls -alh output:
drwxrwxr-- 13…

Jelle De Loecker
- 1,094
- 6
- 17
- 30
0
votes
3 answers
Can't do Chmod on Apache error logs in Ubuntu
I am trying to clear the logs and I do not have permission since the file permissions on Apache error logs are like this:
-rw-r-----
When I tried to do something like
chmod 777 error.log
I got this error:
chmod: changing permissions of…

Genadinik
- 1,103
- 4
- 19
- 39
0
votes
1 answer
Writing directory: permission denied even though dir seems to be chmodded correctly
I am having some trouble creating files in directory on my Ubuntu machine:
I added myself to the www-data group in order for me to easily edit stuff in my /var/www dir on my development machine.
stat /var/www shows the following:
File: ‘/var/www’
…

Aron Rotteveel
- 8,449
- 17
- 53
- 64
0
votes
2 answers
Is it possible to get write/read permissions back after removing *all* read/write/execute permissions with chmod?
I accidentally removed all the permissions from a file. Now I don't have permission to chmod it. Is there any way of chmod(ing) the file back?
Thank you

nunocaldeira
- 1
- 1
0
votes
3 answers
chmod a+x to all directory and content
I am trying to install a library called libtool
i am getting "./configure: line 2668: libltdl/config/mkstamp: Permission denied" when i do ./configure
how can i chmod a+x all the libtool directory to prevent this error ?
thanks

Utku Dalmaz
- 1,329
- 2
- 13
- 18
0
votes
3 answers
chmod issue with particular user
I'm starting with chmod. I've set up a group and gave them permission (777) and every user inside the group is able to do whatever they want inside the directory /www/.
However, I need to change the permissions to anyone else. So I wrote down:
$…
Lenders
0
votes
2 answers
centos , linux , apache permission issue
I have a php file which executes a shell script
$ip_access = $_GET['ip_access'];
// run knock app
exec("/home/knock.sh ".$ip_access);
however when I access it I receive the following error in the logs "sh: /home/knock.sh: Permission denied"
I…

Michael
- 137
- 1
- 8
0
votes
2 answers
Linux - What s means in the permissions mask of a file?
If I run
ll /usr/bin/crontab
it gives me this output:
-rwsr-sr-x 1 root root 315432 Nov 10 2007 /usr/bin/crontab
What does 's' means in the permission mask?
Why do they need to use that?
Thanks,
Dan
Daniele
0
votes
3 answers
OSX: Undoing CHMOD
I've seen how to do this on linux, however is there a way to do it in OSX?
I've accidentally ran chmod -R 777 /
Looking for how to undo this.
Thank you

Petrogad
- 129
- 2
- 12