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
52 views

Setting LAMP server webpage files rights

Today I decided to fix web-server file rights. Did only a little bit of testing to see how rights work so sorry for sounding stupid. I have Apache web-server on Linux (LAMP) which has multiple users ...
2
votes
3answers
701 views

What does the 3 mean in drwxrwsr-x 3

I'm following directions on configuring Dovecot MDA and the instructions are telling me that /var/mail should have the following permissions: drwxrwsr-x 2 root mail When I ran ls -ld /var/mail the ...
0
votes
2answers
123 views

Clone permissions for all files in a folder [duplicate]

I have a question. So I have 2 folders, both of which have the same files in them, but some with different content, but the same names. What I want to do is clone all of the file permissions from one ...
0
votes
0answers
304 views

Chmod not working on /var/www/

I am running an Ubuntu 11.10 x86 VPS. I have given a user sudo privileges, and for some reason I cannot recursively chmod /var/www/. I am running Nginx with php-fpm, although that shouldn't matter. ...
1
vote
2answers
1k views

How to chmod +x a file in Windows, for use in Linux?

I have a file that needs to be executable in Linux, which I'd do by using chmod +x when using Linux. My problem is: this file is compiled in Windows, and it's a pain to have to open my Ubuntu VM to ...
0
votes
1answer
88 views

What will * in bash do?

My question is quite simple, if I am to enter these two line in OS X Terminal, what should happen? xupengjunde-iMac:Shane Shane$ cd /Volumes/External xupengjunde-iMac:External Shane$ sudo chmod -RN * ...
0
votes
1answer
444 views

chmod +x not working in Cygwin

I am having issues getting cygwin to accept the chmod command: JonP@price8560p /cygdrive/c/C2dev/Git/c2/bin/ffmpeg $ chmod -v +x ffmpeg mode of `ffmpeg' changed from 0644 (rw-r--r--) to 0755 ...
-1
votes
1answer
958 views

Take control of all disks/filesystems automatically in linux (Kali)

I have two mac disks plugged into my Linux Kali and for the life of me I cannot get ownership of them. (LaCie) I don't have this problem in Windows or Mac, I just copy the files. Drag and drop. But ...
0
votes
2answers
2k views

cannot create directory. permission denied. but i have permission

i'm fairly new to linux, and ran ubuntu the other day. it is running dual boot with windwos 8. now, the problem is, even though i log in as root and give a specific folder ALL PERMISSIONS (#chmod 777 ...
0
votes
1answer
29 views

how to display I/O file on shell

I am writing shell script and I need to display my output at the same time however it doesn't work with 2> somefile.txt and if I do | tee -a somefilel it will not overwrite which I need to . <> ...
0
votes
1answer
457 views

Can't change folder permissions on FAT32 partition-Mac OSX

In have an external hard drive which has two partitions: Mac OSX Extended Journaled MS-DOS FAT Basically if I select get info for any file/folder on the FAT partition, there is no option to change ...
1
vote
2answers
721 views

Previous version of CGAL with Macports: “Error: Unable to execute port: Could not open file”

I'm trying to install a previous port of cgal with macports. I'm following this How-to: http://trac.macports.org/wiki/howto/InstallingOlderPort I already read this answer but it didn't solve for me. ...
0
votes
1answer
125 views

group permissions for scp

We have a server running as a firebird user. We want to scp files to the server that are need by firebird but copied as another user: it-test. What is the best way to set that up on the ...
0
votes
0answers
363 views

How do I set the default permission of 775 for all new files and directories in server?

I'm trying to set the permission of any new files to 775 by default (inherited from parent folder), so that every user group can edit these files. I have found and followed this tutorial with no ...
1
vote
3answers
1k views

whats the difference between chmod 777 and chmod 7777

I have a professor who insists on always typing chmod 7777, but I was taught that chmod 777 was the proper convention. I tried them out on the command line and chmod 777 something.txt yeilds ...
0
votes
0answers
179 views

chmod: .: Permission denied & sudo chmod -R -rwx

I accidentally executed the following command in an important dir without knowing what the command does. Now I'm getting permission denied and not able to open the dir. sudo chmod -R -rwx . Please ...
0
votes
2answers
166 views

What unix permissions do I need?

I have a directory that hangs off root: /data/my/folder/here/ and /data/my/folder/herealso/ I wish all users to be able to write files to the here and herealso directories. But limit (as much as ...
0
votes
0answers
226 views

Windows attrib command changes file timestamp

I have some batch file running that does the following on a directory tree with several thousand files: change file attributes, turn OFF readonly do some stuff, add new files. change file ...
1
vote
2answers
56 views

chmod symbolic notation: unexpected “=” operation behavior

I am reading The Linux Command Line by William Shotts and I read somewhere in the book a part regarding permissions which says The operation may be a “+” indicating that a permission is to be added, a ...
0
votes
2answers
90 views

changing the ownership of a file in linux

I have a file "test" on an Ubuntu system owned by the root. The ls -l option is shown below. $ ls -l test -r--r----- 1 root abacus 373 Nov 12 19:19 test I know that only the owner of a file can ...
1
vote
1answer
3k views

Recursive write permissions on files and folders: Prestashop installation

I am trying to install Prestashop in my Linux machine. But it says Recursive write permissions on files and folders: ~/config/ ~/cache/ ~/log/ ~/img/ ~/mails/ ~/modules/ ~/themes/default/lang/ ...
0
votes
1answer
315 views

How to use chmod to change a file's permission?

I used ls -l to find file permissions in a shell and found this: File 1: -rw-r--r-- 1 root root 451 Mar 9 15:25 file.class.php File 2: -rw-rw-r-- 1 andy dev 872 Mar 9 15:43 file.class.php I want ...
5
votes
7answers
2k views

“chown -R root /” how screwed am I?

I accidentally performed the command chown -R root / while trying to change the permissions to the public folder of my rails app. I believed this changed the permissions to all my folders on the / ...
3
votes
2answers
317 views

Restoring lost group permissions on mac

Using mac's terrible file sharing prefs, I managed to goof up permissions on my Documents directory. My non-Documents directories have permissions like this: drwx------+ for . drwxr-xr-x+ for .. ...
2
votes
3answers
672 views

difference between chmod 777 and chmod 007

What is the difference between chmod 777 and chmod 007? if 'others' means everyone, doesn't that strongly suggest the truth that chmod 777 = chmod 007?
0
votes
3answers
149 views

Shared hosting, stop user deleting .html file?

Hi guys I have set up a small shared hosting set up for friends. I have set the file chmod permissions to chmod 711 /home chmod 711 /home/testuser chmod 755 /home/testuser/public_html chmod o+r ...
0
votes
0answers
204 views

linux chmod not working with windows flash drive

I have a dual boot ubuntu 12.04/win7 machine. I am trying to compile the latest m0d_wsgi file using ...
3
votes
1answer
2k views

icacls is giving access denied on remote file system

I am working on remote drive mounted on my system where i created some file i need to set some permission for that file. I used icacls but its not working. When i am trying to access file permission ...
0
votes
1answer
545 views

How to open a file with write access on OSX terminal?

I am trying to open private/etc/php.ini.default file to add detect_unicode = Off. But after opening above file with this command vim php.ini.default, it only opens this file as readonly. How can I ...
2
votes
0answers
113 views

Debian broken filesystem by chmod -R 0774 /

An user made the chmod -R 0774 / command. When i execute the su command i get: "it was not possible to define groups". If i try to ssh from the root i get: /bin/bash permission denied the ...
0
votes
1answer
293 views

Change owner of file without being root

I suggest that I have a log file with 666 permission and its owner is alice. So user 'bob' can change its owner by this: cp log log.temp; rm log; mv log.temp log So how can I fix this risk?
0
votes
1answer
75 views

Cant write to directory when not logged in as root

I am switching a site over to amazon ec2 and the pages that allow a user to upload a file to a directory arent working. When Im logged in as root via ssh I can 'touch' a new file to there but not when ...
2
votes
4answers
268 views

Accidentally did “chmod 600 -R /” on my macbook pro

I accidentally entered sudo chmod 600 -R / when I meant to enter /Documents/some_file and now everything comes up as permission denied. The root password isn't working. All my applications are shut ...
3
votes
1answer
376 views

chmod always unsets setgid bit on directories if I'm not in a group

Here's the scenario: I'm using Ubuntu Linux (12.10, if it matters), and I've got a directory whose permissions are thus: drwxrws--- paul www-data myfolder/ You can see the setgid bit is set. If ...
0
votes
2answers
299 views

What do these chmod parameters mean?

What changes are being applied by u+s,o-rwx in the below? chmod u+s,o-rwx myUserGroup myFile
1
vote
1answer
71 views

how to join paths to {} inside an -exec option of a find command?

//// SOLVED //// I'm trying to copy several files scattered in a directory structure to another one where such files already exist but without write permission allowed. So I used a find command with ...
1
vote
2answers
313 views

Debian: Removing read permissions to a single user

i'm trying to set permissions with chmod in Debian Squeeze. Its there any way to remove read permission to a single specified user? chmod u-r file That seems to deny permissions from the user ...
1
vote
2answers
84 views

Changing permissions for specific folder

i need some help. I'm using Fedora 15. I have 2 users: user1 and user2 and directory in /usr/local/example_directory. Now for this directory owner is user1 and other users can only read this. I need ...
1
vote
1answer
56 views

Copy permissions from owner

How can I copy the all file permissions of a folder from owner to users? Imagine that I have: -rw-r----- 1 124982 5000 201 2012-06-24 06:45 documentation.html I want to change to: -rw-r--r-- ...
2
votes
3answers
259 views

Does permission 777 allow scripts outside your server to write on it?

Let's say example1.com is located in US, and example2.com is located in EU. example1.com/folder/ has 777 permission. Will a script in example2.com be able to write on example1.com/folder/? Or is ...
1
vote
2answers
2k views

sftp chmod recursive

I have logged into a server via sftp via terminal. When I run the command chmod -R 755 ./* I get the error You must supply a numeric argument to the chmod command.. How do I apply a recursive ...
0
votes
2answers
966 views

Chmod 644 on /etc/ any way to fix?

I tried to tab complete something and I guess it wasnt there. I know you are not supposed to set the permissions to /etc/ like that, but my permissions seem to be all messed up. whoami prints out ...
1
vote
1answer
177 views

How to give user read/write access to folders?

I'm running a certain script that is using a non-root user to do the following... mkdir: cannot create directory `/srv/www/example.com/releases' *** [err :: 12.23.45.789] : Permission denied How ...
0
votes
1answer
324 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
119 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
793 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
419 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 ...
3
votes
2answers
15k 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
454 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
578 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 ...