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
333 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
128 views

Does “chmod -R 700 directory_1” update directories pointed by softlinks?

Does "chmod -R 700 directory_1" update directories under softlinks? Forexample, there is a softlink under directory_1 folder: "my_softlink". And my_softlink points to a directory_2. Will permissions ...
3
votes
1answer
881 views

chmod'ing file on exFAT

Is it possible to chmod a file on an exFAT formatted drive? I'm on Mac OS X and I would like to set the permissions to not be 777. Is this possible? What I'm really trying to do is set the ...
1
vote
1answer
458 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 ...
4
votes
2answers
18k views

How to chown/chmod all files in current directory?

I am trying to change the ownership and permissions of some files (and directories) in the current directory. I tried this: chown username:groupname . ...expecting that it would affect all the ...
3
votes
2answers
472 views

I don't fully understand CHMOD file permissions, can anyone better explain it?

I've searched the internet for some time for a good explanation of CHMOD, but have yet to come by a good explanation, since every explanation uses the same words with small variations. What I know so ...
1
vote
1answer
625 views

folder permissions on FreeBSD

I have a drive on my FreeNas (8.2) box which transmission copies files automatically when it is finished downloading them. It works fine as long as the download is a single file, if it's folder with ...
2
votes
1answer
893 views

Making a program always run as root in OS X

I'm trying to make a C program run always as root, no matter who is calling it. Basically, I want it to invoke "mkdir /test" as an example. So I created the C program as follows: #include ...
3
votes
1answer
735 views

Do I have to chmod after ln -s?

After I create a symlink with 'ln -s' (in Ubuntu 12.04, as root), it seems to be created with 777 permissions. Is that normal? Should I always do 'chmod 644' after doing 'ln -s'?
6
votes
2answers
6k views

How can I do a recursive chmod only on directories?

I want to change permissions on a tree on Centos 4 to add execute permissions for all directories recursively from a directory. If I use normal chmod, files other than directories are also modified: ...
3
votes
3answers
4k views

“chmod” doesn't want to work

I wrote a /bash script and to execute it I decided to set all the rights, so I tried chmod 777 * //I had 3 text files in the directory, so that's ok Then to check the result I typed ls -l But ...
2
votes
2answers
896 views

chmod: Set files to different permissions from directories

Is there away that I can run chmod to set the folders at 0755 and the files at 0644, or do I have to apply 0755 to all folders individually?
0
votes
0answers
1k views

Windows 8 permissions (CHMOD) with XAMPP

While I know that CHMOD is impossible in Windows, I do have a problem with permissions. I'm running XAMPP on Windows 8 Release Preview and I'm trying to install ModenaCam. However, I get an error ...
3
votes
3answers
132 views

linux permission conflicts

I'd like to ask you something that's bothering me for the last couple of days. On my system I keep a folder called myscripts under my usual home folder. What I tried to do is chmod 500 myscripts ...
1
vote
2answers
210 views

find files where group permissions equal user permissions

Is it possible to do something like find -perm g=u? I say "like" because -perm mode requires mode to specify all the bits, not just g, and because I can't put u on the right side of the =, like I can ...
1
vote
1answer
378 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
485 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
181 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
3k 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
222 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
251 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
256 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
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
194 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
5k 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
250 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
800 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
695 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!
43
votes
4answers
14k 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
147 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
693 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
1answer
597 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
315 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
3k 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
3k 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.
2
votes
4answers
4k 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
536 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
288 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 ...
15
votes
3answers
14k 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
194 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
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 ...
2
votes
1answer
369 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
185 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
532 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
141 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
731 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
557 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 ...