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
3k 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
709 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
606 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
24 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
239 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
390 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 ...
2
votes
1answer
3k 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 ...
5
votes
3answers
6k 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
1k 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
786 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 ...
15
votes
2answers
23k 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 ...
18
votes
4answers
8k 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
986 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
453 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
5k 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
632 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
136 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
344 views

Question on chmod in UNIX

What does chmod 654 stand for ?
5
votes
2answers
7k 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
209 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
822 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
2k 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
6k 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
2k 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
25k 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
14k 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
294 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 ...
8
votes
3answers
52k 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 ...
2
votes
1answer
3k views

User Permissions: Daemon and User

I often run into this issue on Linux, and I'd love to know the proper way of solving it. Say I have a daemon running. In my example, I'll use LigHTTPD, a webserver. Some software, like Wordpress, ...
2
votes
3answers
1k views

Do I correctly understand permission to directories in Linux/Unix?

Do I correctly understand permission to directories in Linux/Unix? If your directory has only r (read) permission you are allowed to see the content of the directory (which files are located there) ...
7
votes
6answers
13k views

Equivalent of chmod to change file permissions in Windows

Is there any Windows equivalent of Linux's chmod to change the permissions of a file?
114
votes
6answers
78k views

How to chmod 755 all directories but no file (recursively)?

How to chmod 755 all directories but no file (recursively) ? Inversely, how to chmod only files (recursively) but no directory ?
2
votes
3answers
972 views

Deleting a chmod 0 file without superuser rights?

A PHP script accidentially changed the right flags (chmod) of a directory to 0. (No access to anybody, including owner). If I have no root access to this server, is it possible to delete the file ...
7
votes
4answers
3k views

Chmod files to recursively give group same permissions as user

Is there a unix command to give the group the same permissions as the user currently has on a file-by-file basis recursively for a directory tree? I.e. if a file is user writeable it should become ...
14
votes
4answers
18k views

Find all files on server with 777 permissions

I'm looking for a Linux command to go through all the directories on my server and find all files with 777 permission. The output would be a list of all those files with full path.
0
votes
1answer
98 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 ...
6
votes
4answers
38k views

Can't change permission/ownership/group of external hard drive on Ubuntu

I have an external hard drive connected to my Linux box. I wanted to setup a web server to access files on it, but the permission on all files and directories on the drive are rwx for the owner which ...
2
votes
2answers
600 views

linux permissions on folders

AFAIK when i have r-- it means i can read the directory but not CD into it (according to the book). IIRC i can drop files in when i have -w- access. So why cant i copy files (i understand why i cant ...
3
votes
2answers
216 views

chmod problems with setting others to read

I have a directory tree with the permission for others as none. I need to change it to read. I execute this command: chmod -R o+r My\ Dir However, it doesn't seem to work for directories, as ...
1
vote
4answers
991 views

How do I find and modify permissions on one filetype in an Ubuntu terminal? [duplicate]

Possible Duplicate: How to chmod 755 all directories but no file (recursively) ? I've just upgraded from Ubuntu 8.04 to 9.04, added an extra hdd for /home and used an iPod (FAT32, sadly) to ...
9
votes
0answers
9k views

what is the @ after the permissions for in ls -l on a mac? [duplicate]

Possible Duplicate: ls -la symbolics… what does that last symbol mean? Consider the following output from ls -l on OS X 10.5.8 drwxr-xr-x 3 user staff 102 Aug 26 20:21 ...