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
2answers
1k 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 ...
0
votes
1answer
354 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
234 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 ...
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 ...
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: ...
0
votes
2answers
792 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 ...
0
votes
1answer
518 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 ...
0
votes
1answer
106 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 ...
0
votes
1answer
73 views

Is it possible to disable chmod/chown from sudoers for these specific directories /usr and /etc?

There has been two occasions where I have accidentally chmod-ized 777 the whole direcotry of /etc and it has forced me to come to the decision that I'd be better off to do fresh installation of OS ...
0
votes
1answer
26 views

Under what circumstances can I not make a file world readble on linux

I'm trying to set some files world readable sudo chmod 664 *.ogg however the files still have permission -rw-rw---- after the operation. These are phone calls recorded from Asterisk - if that ...
0
votes
1answer
28 views

OpenVPN CA Certificate creation error

When doing ./build-ca I'm getting a weird error and I cant find any information about it, been stuck with this error for hours. I'm doing it as SU and SUDO and neither work. This is the error I'm ...
0
votes
1answer
28 views

What should I do to secure, chmodly wise, my server?

I want to let my friend access my server so he can host his website. Let's call him Joris. # useradd joris note that I'm Debian. So now a /home/joris has been created. This is cool and all. BUT. He ...
0
votes
1answer
543 views

How should chmod and chown be used together?

I recently sold my mac, and before doing so I put its files on an external HDD. Now I'm using Linux to move those files to a larger HDD, but some folders still retained some residual mac permissions, ...
0
votes
1answer
87 views

Can chmod 777 ubituitously replace the need for chown ?

Its clear to me that the chmod 777 command will make any file, theoretically, accessible/readable/writeable/executable/ by any user. But are there instances where, even with a world ...
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
2answers
200 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
1answer
876 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 ...
0
votes
1answer
338 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
133 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 ...
0
votes
1answer
268 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 ...
0
votes
1answer
781 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!
0
votes
1answer
152 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
320 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 ...
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
1answer
436 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 ?
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
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 ...
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 ...
0
votes
1answer
139 views

Cannot change directory into home directory, although permissions are set correct

I guess I need some help from an advanced Unix user... On a Ubuntu System I did something stupid. I typed sudo chmod 774 .* or the like, in a subfolder of my home folder and then I suddenly could not ...
0
votes
0answers
95 views

chgrp and chmod not working in cygwin (windows 8)

I work in "C:\Users\leyou.ssh" I need to chmod id_rsa to 600 as it's currently 644, but it has no effect. Hence I tried "chgrp Users id_rsa" but it doesn't work neither and the group remains as ...
0
votes
0answers
31 views

cygwin's chmod behaves as working, but it does not work

My Cygwin installation is behaving strangely: chmod does not work. [09:45 Administrator@DellIns14 ~] > ls -ls /usr/bin/chmod 64K -rwxr-xr-x 1 Administrator None 38K Feb 6 2012 /usr/bin/chmod ...
0
votes
0answers
40 views

I am unable to change permissions of files in my home directory(NIS)

I am unable to change permissions of files in my home directory. For example: Here /home/user1 is the home directory of the NIS user which is mounted from netapp filer. user1@localhost ~ $ pwd ...
0
votes
0answers
59 views

vsftpd and persistent errors

I'm configuring a ftp user using this : useradd mz -d /home/ftp/mz -s /bin/false then check password: passwd mz and setting permissions chmod -R 777 /home/ftp/mz and changing owner chown ...
0
votes
1answer
52 views

How do I do undo chmod /usr/bin

For some reason I was messing around and did chmod -x /usr/bin/* (no idea what I was thinking) Is there a way to fix this, because at the moment nothing is executable
0
votes
1answer
130 views

Unable to retain any root created files and folders after warm reboot in linux

I installed and ran petalinux on zynq board. It runs perfectly fine and boot in around 3 seconds. To boot it this fast I had to do some configuration before compiling the source. The problem that I ...
0
votes
0answers
47 views

backupninja osx files must be owned by root

I have just installed backupninja with Homebrew, but when I'm trying to run any ninja script I receive an error: Mar 03 14:38:24 Fatal: Configuration files must be owned by root! Dying on file ...
0
votes
1answer
109 views

Possible to mount an NTFS partition with uid=1000,gid=1000,dmask=022,fmask=133 but allow files to later be chmod'd?

This is for a single-user system that's using an NTFS partition as its $HOME; is it possible to mount the partition in such a way that New files would be owned by $USER:$USER with 644 permission ...
0
votes
1answer
14 views

Why am I still able to write to a directory after I have changed permissions at the terminal?

I am running Mac Os 10.9 and connecting to a Mac OS server (10.8?) over our local network where I have an admin account. I regularly sync 3 directories from my machine to the fileserver using rsync. ...
0
votes
1answer
276 views

Force file and sub-directory permissions on OS X server

We have an OS X development server at work for five developers, creating mainly Symfony2 based websites. Out of the five only two of us are in the sudo group, meaning if the others had issues with ...
0
votes
1answer
621 views

Changing permissions (read-only) for specific user for specific folder and sub-folders/files in RedHat?

Question is about user permissions in RedHat. How to give read-only permission to specific user just to read a specific folder and its sub-folders and files? How can I do it? I've tried: chmod a+r ...
0
votes
1answer
91 views

CentOS: How to prevent a user from executing an application installed in a specific directory

I have an application installed in /etc/mydir. I have executed the following to remove the ability for users to execute this program. chown root:group1 /etc/mydir -R chmod 700 /etc/mydir -R I ...
0
votes
1answer
64 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 ...
0
votes
2answers
249 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
415 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. ...
0
votes
1answer
589 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 ...
0
votes
1answer
624 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 ...
0
votes
1answer
193 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
468 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 ...
0
votes
0answers
208 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
0answers
301 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 ...