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

learn more… | top users | synonyms

0
votes
1answer
349 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 ...
17
votes
3answers
16k 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
198 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
3answers
5k 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
396 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
191 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
652 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
142 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
823 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
596 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 ...
4
votes
4answers
11k 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
172 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
14k 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
525 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 ...
20
votes
5answers
36k 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
418 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
25k 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
928 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
110 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
278 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
442 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
945 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
621 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
4k 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
254 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
436 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
7k 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
8k 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
881 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
41k 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 ...
24
votes
4answers
15k 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
462 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
634 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
142 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
97 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
485 views

Question on chmod in UNIX

What does chmod 654 stand for ?
8
votes
2answers
11k 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
229 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 ...