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

learn more… | top users | synonyms

3
votes
4answers
8k 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
168 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
12k 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
3k 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
496 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 ...
18
votes
5answers
29k views

What is the meaning of “chmod 666”?

I am using Linux. What is the meaning of chmod 666?
0
votes
2answers
3k 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
79 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
404 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
20k 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
880 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
107 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
250 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
406 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 ?
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 ...
2
votes
1answer
878 views

chmod does not change file permissions

I am trying to create an executable "Hello World" ruby file and I copied an existing, working executable "Hello World" ruby file and renamed it, but the new file does not have any executable ...
0
votes
2answers
611 views

OS X smbfs Mount Shows Incorrect Permission, Won't Take chmod

I'm doing development on OS X while my actual code lives on a remote CentOS box that I have mounted as a local share (smbfs). Some of my files are not marked as writable and need to be toggled when I ...
0
votes
1answer
3k views

vsftpd chmod upload permissions

I have vsftpd 2.3.2-3. After user uploaded a file it has -rw-------(0600) permissions. Of course user can change permissions manually to anything he likes. But how to set for example 0700 by ...
0
votes
1answer
25 views

Homedir inside homedir restricted access

On my VPS i've installed debian, apache+php. I have 2 users: foo and bar. Apache is configured to execute php files from /home/foo/htdocs. I created dir: /home/foo/htdocs/bar/ and made it home ...
0
votes
2answers
250 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 ...
4
votes
1answer
417 views

Can I, as a user, change the default chmod settings for my account?

I work in a shared computing environment and the default setting is r-x for group and others; it's upto the users to change this. I can chmod and change the permissions for all the files. However any ...
3
votes
1answer
5k views

Chmod 755 and 751

Doing chomod 755 on a directory gives me drwxr-xr-x. Should it not give me drwxr-xr-xr since 5 is read,execute? And Doing chmod 751 on a directory give me drwxr-x--x. Should that not give me ...
7
votes
3answers
7k views

How to set default permissions for files moved or copied to a directory?

My question is similar to How to set the default file permissions on ALL newly created files in linux - but differs in important ways: I want all files created in (or copied to or moved to) a certain ...
3
votes
1answer
2k views

Permanently changing permission of FireWire device

I just setup a FireWire audio interface. Everything works fine, except for I need rw-rw-rw- permissions on /dev/fw0. I can always sudo chmod 666 /dev/fw0 just before setting the thing up, but then it ...
1
vote
0answers
832 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 ...
20
votes
2answers
33k views

Allow specific user permission to read/write my folder

I have a folder /home/samantha/folder that I want to share with the user tom. He can read/write the folder. How do I do that? chown wouldn't do it because I still want to be able to be the owner of ...
22
votes
4answers
11k views

How to remove executable bit recursively from files (not directories)

When I plug-in an USB stick (FAT) into my Mac or Ubuntu machine, all files have the executable bits set. After having copied the directory structure to my hard disk how do I remove the executable bits ...
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 ...
1
vote
3answers
1k views

Parameters to be used with chmod?

How to use CHMOD in linux? When I try to delete a file/folder, permission is denied. What exact params must I give for chmod here? This is what I need to do. Execute a command ./build.mips , but I ...
2
votes
0answers
459 views

Cannot change permissions in symlinked dropbox directory in Ubuntu 10.10

Title pretty much says it all, but here's what I'm doing... ls -l produces this... drwx------ 1 brian brian 4096 2010-12-28 14:19 foldername -rw------- 1 brian brian 0 2010-12-28 15:54 index.html ...
0
votes
1answer
2k views

Can't change owner/group to root:wheel on certain stubborn files

SOLVED: Turns out at one point while trying to copy files over to the thumb drive it must not have been mounted by OS X, and since I was root, it made the same mount point directory and copied into ...
8
votes
3answers
6k views

Git chmod problem: Checkout screws exec bit

Under Ubuntu and Debian the last committed files are getting the execution bit set, when I try a checkout afterwards. It's quite strange and driving me nuts: $ ls -l file -rw-r--r-- ... file # on ...
0
votes
0answers
633 views

What's @ in OS X directory permissions? [duplicate]

Possible Duplicate: ls -la symbolics… what does that last symbol mean? Being unable to access my localhost via Parallels, I've found that the folder to which I was trying to access ...
1
vote
1answer
139 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 ...
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 ...
1
vote
4answers
403 views

Question on chmod in UNIX

What does chmod 654 stand for ?
8
votes
2answers
9k views

Setting differing ACLs on directories and files

Quick ACL question: I want to set up default permissions for a file share so that everyone can rwx all of the directories and so that all newly created files are rw. Everyone who is accessing this ...
2
votes
3answers
219 views

Linux directory access question

I have a linux system with apache installed and i store web files in /home/username/www/sitename/htdocs. For this to work my /home/username has read and execute permissions for everyone. I know it's ...
0
votes
1answer
3k views

Samba shared folder and permissions (CentOS 5.5)

I have set up a samba shared folder /shared I have created 2 users Jack and Jill, and they are part of the Developers group. Developers have read write and execute permissions on the /shared ...
1
vote
2answers
847 views

description for command : chmod 777

I encountered an option for chmod: chmod 777 /tyr/.... What is 777 for?
4
votes
5answers
1k views

Standard way to duplicate a file's permissions

I am trying to find a standard POSIX way to duplicate one file's permissions to another file. On a GNU system this is easy: [alexmchale@bullfrog ~]$ ls -l hardcopy.* -rw-r--r-- 1 alexmchale users ...
1
vote
3answers
3k views

Can I use `chmod` to change the permission from -rwsr-xr-x to -rwsr-sr-x?

Can I use chmod to change the permission from -rwsr-xr-x to -rwsr-sr-x?
3
votes
4answers
7k views

chmod 777: how to make all files become “RWX”

I want to change permission of each files in a directory. I've been using chmod 777 but its wasting time if I have 50 files. How to make all files inside directory become rwx without change them one ...
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. ...
2
votes
4answers
29k views

Setting permissions for specific user and groups in Linux

How can I grant permission for files to a specific user or a specific group? We have three groups: "g12" ("u1" and "u2), "g34" and "g56". g12 - should only read the file. g34 - should write and ...
6
votes
5answers
16k views

How to reset folder permissions to their default in Ubuntu 9.10?

I recently typed the command sudo chmod 777 -R / after that some things like sudo -i are not working normally. So I am wondering if there is any way I could reset the folder permissions to their ...
3
votes
1answer
301 views

How to chmod in Nautilus via keyboard?

I like to use the mouse as little as possible, but I find Nautilus useful enough to use it when browsing for files. If I want to rename a file while in Nautilus I can hit the F2 key; is there a way I ...
9
votes
3answers
67k views

Chmod to allow read and write permissions for directory

I have created directories in root. I am looking for the chmod command to allow all users read and write permissions to a specific directory. I have done chmod 775 for a file but I need this for a ...