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
1answer
339 views

Accidentally removed read permissions from folder. How do I get back in?

I wished to have a given folder and file and all descendants, write permissions. I wished that ALL files and folders could be recursively granted he following permissions: 777 So I tried: chmod -r ...
0
votes
1answer
435 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 ...
-4
votes
1answer
168 views

Chmod to change permissions for group [duplicate]

Possible Duplicate: Setting permissions for specific user and groups in Linux I have put some users into a group and would like to know how I use chmod to change the access permissions for ...
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: ...
0
votes
1answer
211 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 ...
2
votes
1answer
212 views

Unable to create files in a directory

I have created a directory in Virutalbox. Using VBoxManage, I am executing a script inside the Ubuntu VM directory I created above from Ubuntu host OS. But if the script in the VM contains commands ...
2
votes
2answers
2k views

Restore default permissions to “/var” to CentOS installation

So I accidentally ran chmod -R 0777 /var and I need to revert that (let alone allow chmod the correct ssh directory so I can log back into it). I'm feeling screwed, can anyone help? The sooner the ...
0
votes
1answer
241 views

Give the www user chmod permissions

Ive got a website (run on Ubuntu Server) that needs to modify and delete files, every now and again it comes across a file that it needs to run "chmod" on in order to perform it's operations. However ...
1
vote
1answer
970 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
183 views

Search for chmod 777 in terminal

I'm working with a system where a few files and maps seem to have permission 777. I want to change them to a more secure chmod, but I don't have a list of all the 777-files. I could do a terminal ...
2
votes
2answers
4k views

How to fix /etc/ folder on Mac OS X

I was following a tutorial which had this command to create a launchd.conf file in /etc/ sudo echo "some command" > /etc/launchd.conf But it wouldn't work, I got permission denied after entering ...
2
votes
1answer
234 views

Weird chmod parameter - “!$”

I found on an article a line that was saying: Now execute -> sudo chmod 700 !$ What does !$ in that case?
0
votes
1answer
642 views

allowing others access to specified subdirectories only

I have some folders with pictures and videos that I would like my other family members be able to view. I have added these folders to the family group, like this: chgrp -R family shared_pictures/ ...
0
votes
1answer
427 views

No permission for ls drwx--x--x

Is there any way to see a tree of directories with a chmod of drwx--x--x ? I know I can manually check by bash script with if [ -d dirname ]. However it is not the solution I am looking for. Cheers!
36
votes
1answer
10k views

Using Cygwin in Windows 8, chmod 600 does not work as expected?

I'm trying to change the the permissions to my key file key.pem in Cygwin 1.7.11. It has the permissions flags: -rw-rw---- chmod -c 600 key.pem Reports: mode of 'key.pem' changed from 0660 ...
0
votes
1answer
138 views

linux chmod causing crash

I needed to give write permission to file representing GPIO pins,out of curiosity i taught changing permissions of all files/folders,by mistake instead of doing chmod 755 * in the root I did chmod ...
0
votes
1answer
618 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
4k 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
1answer
535 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 ...
1
vote
1answer
275 views

Serving NTFS partition on linux through ftp

I'm using the default configuration for proftpd on Linux Mint with only the following directive changed: # Use this to jail all users in their homes DefaultRoot ~ I created a user userftp ...
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
1answer
2k views

Group permissions for apache

I've run into a problem with Joomla. . . it cant create new folders through the Admin UI. It's a standard permissions error. I've been told to chmod all of the folders in the site to 777. Is ...
1
vote
1answer
67 views

Are rights 7110 equivalent to --S--S--s?

Are rights 7110 equivalent to --S--S--s? I mean the rights for Unix' chmod command.
1
vote
3answers
3k views

Fixing/Correcting OS X home folder file permissions

Long story short, I managed to muck up the file permissions within my home directory in OS X (Lion). While I'm familiar enough with linux file permissions and more than comfortable changing them, I ...
3
votes
2answers
486 views

I accidentally chmodded the file system root - how can I revert this?

I am using Ubuntu 11.04. I mistyped and wrote sudo chmod 444 / instead of writing /home. Everything went blank and icons started disappearing, and now when I try to run Ubuntu, it hangs on the ...
0
votes
1answer
233 views

Server error 500 due to file permission

I just installed apache/php5 on ubuntu.When trying to access folders in localhost (via the browser) i got a permission denied page.I tryed to chmod for the files to 755 -R and now i got a 500 ...
13
votes
3answers
11k views

How to chmod and chown hidden files in Linux?

How do I recursively execute chmod or chown for hidden files? sudo chmod -R 775 * does not work on hidden files. The same thing goes for sudo chown -R user:group.
0
votes
1answer
185 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: ...
1
vote
2answers
3k 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 ...
2
votes
1answer
338 views

How can I mirror a Linux directory and back up all metadata?

I need to backup my home folder (and a few other folders) on an organizational Linux NFS system where my account will be expiring soon, onto a personal hard drive (which is not using a Linux ...
2
votes
1answer
180 views

Always create files/folders but only write to those the user owns

I need 2 Linux users to share a folder. Within this folder, users should always be able to create files and sub-folders and write into any sub-folder (whether they own it or not). However, they should ...
2
votes
1answer
427 views

What is the equivalent of umask in Finder?

It is not entirely a problem with Finder. It happens system-wise. Whenever I create a file in osx, the permission is always set to owner read/write and the rest read only -rw-r--r-- 1 me mygroup ...
2
votes
0answers
139 views

Windows equivalent of the Linux command “chmod”? [duplicate]

Possible Duplicate: Program to change file permissions in windows What can I use to set/change permissions on a Windows folder than not the Windows-based solution? There is an equivalent ...
0
votes
2answers
658 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 ...
2
votes
3answers
517 views

In GNU/Linux, how to restrict deletion of files and directories owned by a user to a super user only?

In GNU/Linux, how can directories be set such that the owner can only add/read files/directories to/from them but only a super user can do any deletion in that structure? Consider this scenario: You ...
3
votes
4answers
6k views

Ubuntu: default access mode (permissions) for users home dir (/home/user)

What is a default access mode (e.g. 0755) for users home dirs in Ubuntu (e.g. what is output of ls -ld /home/*)? In other major linux distribs (Debian, RedHat, Gentoo, Arch)? How can I change this ...
1
vote
1answer
159 views

CHMOD Folder and Files recursively but with different values

Is there a way to recursively change the access rights of a specific folder to 755 and files to 644 Without using the find function and having sub-directories in that folder (don't want to change ...
8
votes
5answers
10k views

sudo chmod -R 777 /

sudo chmod -R 777 / I did this. It was a mistake. Is there any way to undo it? Basically it's messed up more things than I can list. I don't have time-machine enabled on my mac.
2
votes
4answers
2k views

File still unwriteable in /var/www/html after the chmod command

I've got some trouble while trying to install some applications on my linux system. It is said that the files in my /var/www/html/xxx directory, where I put them, is not writeable. The command chmod ...
0
votes
1answer
438 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 ...
16
votes
5answers
22k views

What is the meaning of “chmod 666”?

I am using Linux. What is the meaning of chmod 666?
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
78 views

How to do an ls as if you were in the group 'other'?

In a linux system, I've done a chmod o+r -R mydir/ and I want to check that users in the 'o' group are able to read the contents of mydir. How can I do an 'ls mydir' as if I were a user in the other ...
0
votes
0answers
382 views

chmod / chown hfs+ Volume

I have just saved some data from a crashed PC to my external HD, which is a HFS+ Volume using Ubuntu live (regular copy no dd). Now I am lost: I don't have any privileges in the Folder i copied on my ...
1
vote
1answer
15k views

Setting chmod 777 on folder using Mac Terminal

I am trying to set the upload permissions on a local folder in my test website. I'm using Terminal on a Mac and the following command: chmod 777 thumbs but I get the following error chmod: thumbs: ...
0
votes
2answers
732 views

Allowing multiple users to create directories over SFTP so the new directories keep the same permissions

I want to make a webserver with multiple users allowed to login through SFTP to a specific folder, www. Multiple users are added, lets say user1 and user2, and all of them belonging to the www-data ...
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 ...
2
votes
1answer
103 views

UNIX: Just been hacked.. any steps to securing files and directories?

I used command to delete all files modified within last day. But is there a command that can go through all PHP files and all directories and modify them back to standard permissions that's safe for ...
0
votes
0answers
208 views

cancel last chmod?

Today is a great day for me - anyone can suggest other restore method than from tape with regard to my last glorious command sudo chmod -R o=rw / Btw I am on HFS+
0
votes
1answer
381 views

a graphic utility in windows to change folder/file permissions like chmod in linux

i want to make a folder available for upload to users. i have to make this folder as 777 file permissions Is there any graphic based software to accomplish this task ?