chmod (short for change mode) is a Linux / Unix command used to change permissions of files and directories.

learn more… | top users | synonyms

1
vote
2answers
4k views

Git pulling without root access

On a Ubuntu Server 10.10 box, I seem to require root access to use git pull (in my /var/www directory). error: cannot open .git/FETCH_HEAD: Permission denied. I have tried chmodding 0777 /var/www and ...
1
vote
1answer
4k views

chmod 777 on local server not working

i have a ubuntu 10.10 box on my local network and sshing with my mac what i did is chmod 777 the www directory recursively so that i can use my fav ide to develop on it. i did this sudo chmod 777 ...
1
vote
1answer
138 views

Making files created by a cronjob readable by apache

A software package I installed on my Fedora box has an associated cronjob. This cronjob creates html files that need to be readable by apache. At the moment, the files are not readable because they ...
1
vote
1answer
2k views

chmod doesn't seem to work on Cygwin as expected

I tried creating a file myFile and then typing chmod 000 myFile just to see if I got access denied trying to cat it or open it with vi, but no, I could still do whatever I wanted with it. So what is ...
1
vote
2answers
3k views

Can't change permission for bash.bashrc file in Ubuntu

I'm trying to change the permission for my .bashrc file in Ubuntu but don't seem to have permission. I've tried following the example here: Open up publicity.html for reading and writing by anyone. ...
1
vote
1answer
33 views

chown all files of removed user (symlinks)

I migrated my OSX System from one machine to another. Everything works fine, but when I check the files under /usr/local, they now belong to a user 502, not my newly created user (which has the ...
1
vote
1answer
3k views

Recursive write permissions on files and folders: Prestashop installation

I am trying to install Prestashop in my Linux machine. But it says Recursive write permissions on files and folders: ~/config/ ~/cache/ ~/log/ ~/img/ ~/mails/ ~/modules/ ~/themes/default/lang/ ...
1
vote
1answer
71 views

how to join paths to {} inside an -exec option of a find command?

//// SOLVED //// I'm trying to copy several files scattered in a directory structure to another one where such files already exist but without write permission allowed. So I used a find command with ...
1
vote
2answers
312 views

Debian: Removing read permissions to a single user

i'm trying to set permissions with chmod in Debian Squeeze. Its there any way to remove read permission to a single specified user? chmod u-r file That seems to deny permissions from the user ...
1
vote
1answer
56 views

Copy permissions from owner

How can I copy the all file permissions of a folder from owner to users? Imagine that I have: -rw-r----- 1 124982 5000 201 2012-06-24 06:45 documentation.html I want to change to: -rw-r--r-- ...
1
vote
1answer
177 views

How to give user read/write access to folders?

I'm running a certain script that is using a non-root user to do the following... mkdir: cannot create directory `/srv/www/example.com/releases' *** [err :: 12.23.45.789] : Permission denied How ...
1
vote
2answers
2k views

Why doesn't chmod work in this case?

I'm trying to set a small webserver for personal use. I have a fodler /srv/http/cgi-bin/ which I want to edit as user and not superuser. I tried to chmod it as mentioned here. Here is the result: ...
1
vote
1answer
1k views

Why am I unable to change read permissions with chmod?

If I type this in the terminal chmod -R g+r "/media/truecrypt1/My folder/"* and then check the result wiht ls -l I still get -rwx------ 1 user user 127860 2012-03-16 15:45 sample.pdf What's ...
1
vote
1answer
58 views

Linux permissions, mv is denied

I have the following structure (property is in the form user:group, user A belongs to both groups A and B, user B is just in the B group) : + dir1 rwxrwxr-x A:A + dir2 ...
1
vote
1answer
246 views

Permission denied altough chmod 777

I am running following commands: $ ls total 12K drwxrwxrwx 3 szr szr 2.0K Nov 14 12:08 . drwxrwxrwx 12 szr szr 2.0K Nov 14 11:23 .. -rwxrwxrwx 1 szr szr 1.6K Nov 14 12:08 config.xml -rwxrwxrwx 1 ...
1
vote
1answer
229 views

Unable to change access permissions on external ntfs Harddrive

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
vote
1answer
82 views

Why in Midnight Commander the chmod has 5 digits and what for?

In the file menu if I go to chmod, it returnes the chmod value for the folder / file. I understand the last 3 digits, the second is setuid/setgid/sticky bit (have read the docs on it but its use is ...
1
vote
1answer
134 views

Changing access rights of the specific folder for specifeid user

what is the exact analog of the following two commands in linux # chmod -R +a "www-data allow read,delete,write,append,file_inherit,directory_inherit" /path/to/moodledata $ sudo chmod -R ...
1
vote
2answers
719 views

Previous version of CGAL with Macports: “Error: Unable to execute port: Could not open file”

I'm trying to install a previous port of cgal with macports. I'm following this How-to: http://trac.macports.org/wiki/howto/InstallingOlderPort I already read this answer but it didn't solve for me. ...
1
vote
1answer
417 views

On Linux allow a file to be read/write but not deleted

Is there a way in Linux on a ext4 file system that I can make a file readable and writeable but not deletable? The directory that the file resides in still needs to be writeable by the owner of the ...
1
vote
0answers
809 views

Permanently changing permission of device

My question is related to a Saving permission changes for device question except it is for Ubuntu 10.10: Maverick. I just setup a FireWire audio interface. Everything works fine, except for I need ...
0
votes
2answers
2k views

chmod: removing “x” permission recursively totally borks the permissions

I have a folder with some contents (three files and a folder) that look like this: -rwxr-xr-x 1 max max 14504 2011-05-31 16:55 main.css -rwxr-xr-x 1 max max 2504 2011-05-31 16:55 reset.css ...
0
votes
2answers
2k views

Making a directory on unix readable,writeable,executable by me and no one else?

What is the proper way to make a directory that I created and all of its contents readable/writeable/executable only by me, and no one else? Is this sufficient: chmod g-rx mydir/ this should make ...
0
votes
2answers
1k views

chmod problem in ubuntu

I want to change user permissions of lots of files but I can not! I use this code: administrator@unknown:~$ sudo chmod 700 * -R or administrator@unknown:~$ sudo chmod 700 myfile -R I want to ...
0
votes
1answer
662 views

How to make a local user be able to edit files created by _www user and group on OS X?

I'm using OS X Snow Leopard. I have a web application hosted locally in the web server folder with _www user and _www group. I'm unable to edit those files with my local user, who is part of the ...
0
votes
1answer
5k views

Creating files and directories with a certain owner (user/group) while sudoing

I need to wget something (results in a compressed file in cwd), then I have to extract it, then do some copy/move/modification stuff and perhaps finally execute an script (from the downloaded ...
0
votes
3answers
168 views

Add read permissions to all the directories of a path

I want to add (not modify other file permissions) for all the directories in the path written bellow. Something like chmod -R xx4 /home/mDB/admin/KNUCKLES/dbs/ The path /home/mDB/admin/KNUCKLES/dbs/ ...
0
votes
1answer
88 views

What will * in bash do?

My question is quite simple, if I am to enter these two line in OS X Terminal, what should happen? xupengjunde-iMac:Shane Shane$ cd /Volumes/External xupengjunde-iMac:External Shane$ sudo chmod -RN * ...
0
votes
1answer
570 views

Unable to edit files in _www group on OS X

I am using my MacBook as a local dev environment. In order to make the files publishable I had to give my web folder user and group of _www:_www using chown. I'm using another account to log into my ...
0
votes
1answer
96 views

after trying to modify permissions I can no longer access localhost

I was getting sick of having to sudo every command in my web development folder (/var/www) so I tried to change the permissions to 777. The function seemingly worked (that is, gave no error), although ...
0
votes
1answer
315 views

How to use chmod to change a file's permission?

I used ls -l to find file permissions in a shell and found this: File 1: -rw-r--r-- 1 root root 451 Mar 9 15:25 file.class.php File 2: -rw-rw-r-- 1 andy dev 872 Mar 9 15:43 file.class.php I want ...
0
votes
1answer
463 views

Changed the mode of /var on debian

I ran chmod 777 recursively on /var/ and could no longer connect via SSH. I read that chmod 600 would fix it. I was able to connect after doing it but this was a bad idea. Is there anyway I can find ...
0
votes
2answers
246 views

Chmod, Groups, and Users

So I've tried looking this up but I've not found similar examples (please feel free to refer to them if your Google skills are better than mine). What I'm trying to do is as follows: I am hosting a ...
0
votes
2answers
2k views

Ubuntu Cannot change permissions on files I own and have RW to

I have a harddrive full of backups which for me is mounted at /media/chronus_ I have been trying to give another user rw permission to this drive. The problem is that I cannot change any permissions ...
0
votes
1answer
19 views

Granting full rights on all files (owned by su) within certain directory

I got some trouble with a server situation, where i keep some configuration files in a sub-directory of a web project. Using my superuser account, i make changes to these files, which NetBeans commits ...
0
votes
2answers
167 views

CentOS $chmod a+w /etc/sudoers command not found

I am very new to CentOS and I am trying to edit my sudoers file. First I am told to run the following: $chmod a+w /etc/sudoers and right away I hit an error: bash: a+w: command not found What ...
0
votes
1answer
69 views

Permissions of files/directories in Unix

It appears that each file/directory has a given set of permissions shown by the 10 characters to the far left of each listing if one were to type into the terminal ls -l Considering that you can ...
0
votes
2answers
2k views

cannot create directory. permission denied. but i have permission

i'm fairly new to linux, and ran ubuntu the other day. it is running dual boot with windwos 8. now, the problem is, even though i log in as root and give a specific folder ALL PERMISSIONS (#chmod 777 ...
0
votes
2answers
90 views

changing the ownership of a file in linux

I have a file "test" on an Ubuntu system owned by the root. The ls -l option is shown below. $ ls -l test -r--r----- 1 root abacus 373 Nov 12 19:19 test I know that only the owner of a file can ...
0
votes
3answers
149 views

Shared hosting, stop user deleting .html 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
2answers
297 views

What do these chmod parameters mean?

What changes are being applied by u+s,o-rwx in the below? chmod u+s,o-rwx myUserGroup myFile
0
votes
2answers
963 views

Chmod 644 on /etc/ any way to fix?

I tried to tab complete something and I guess it wasnt there. I know you are not supposed to set the permissions to /etc/ like that, but my permissions seem to be all messed up. whoami prints out ...
0
votes
1answer
323 views

Why is group write permission ignored in Ubuntu?

I want my user to have full access to the local Apache root folder, and I also want the Apache user to have full access to the same folder. What I did was create a new group called DevGroup and I ...
0
votes
1answer
220 views

what do these permissions mean?

I did chmod on some files in Mac 10.7.3 and I accidentally entered the code 7744 instead of 744. The resulting permissions were: -rwsr-Sr-T After seeing this I reran chmod and fixed the ...
0
votes
1answer
189 views

How do I give an admin user full rights to all home folders?

What is a good permission scheme for this scenario? user administrator (from administrator group) has full access (read/write/execute) to /home folder any other user (from users group, example: ...
0
votes
2answers
702 views

chmod on /System/Library/ in Mac Snow Leopard - Now Cannot Open Terminal

I was trying to run a command to fix a different issue, but when I cut and pasted the string there was a space in it and this is what was run: sudo chmod 000 /System/Library/ Now when I try to open ...
0
votes
1answer
468 views

CentOS chmod overiding set-group-ID?

I'm used to setting up SGID on a directory chmod -R g+s example and then chmdo -R 750 example And have the directory and all sub-directories preserve the set-group-ID. On CentOS SGID gets ...
0
votes
1answer
99 views

changed directory permissions of

So, I was changing some file permissions using gFTP, and somehow I managed to set the permissions of .. (idk how, last time I use gFTP) The problem is I was working in the highest directory I could ...
0
votes
1answer
25 views

Under what circumstances can I not make a file world readble on linux

I'm trying to set some files world readable sudo chmod 664 *.ogg however the files still have permission -rw-rw---- after the operation. These are phone calls recorded from Asterisk - if that ...
0
votes
1answer
21 views

OpenVPN CA Certificate creation error

When doing ./build-ca I'm getting a weird error and I cant find any information about it, been stuck with this error for hours. I'm doing it as SU and SUDO and neither work. This is the error I'm ...