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
860 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 ...
3
votes
1answer
398 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 ...
2
votes
1answer
61 views

How to delete file with no write permissions for any user?

I find myself in a strange situation where a script wrote files with the following permissions: -r-------- 1 user1 user1 file1 Dec 24 14:53 -r-------- 1 user1 user1 file2 Dec 24 14:54 -r-------- 1 ...
2
votes
1answer
248 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 ...
1
vote
1answer
278 views

Unable to change access permissions on external ntfs Harddrive

I am fairly new with Linux when it comes to mounting hard drives, so hopefully this is a simple question. I recently purchased a 3TB hard drive that would have read/write access with both Mac and ...
1
vote
1answer
174 views

Changing access rights of the specific folder for specifeid user

what is the exact analog of the following two commands in linux # chmod -R +a "www-data allow read,delete,write,append,file_inherit,directory_inherit" /path/to/moodledata $ sudo chmod -R ...
1
vote
1answer
446 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 ...
0
votes
1answer
29 views

I accidently changed some file permissions now Multicraft wont work

I accidently changed the file permissions for /home/minecraft/multicraft/servers and I was hoping that someone would know how to reset them to their default state, Please help me.
0
votes
1answer
29 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
101 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
1answer
71 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
13 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
303 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
55 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
1answer
477 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
788 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/ ...
-1
votes
1answer
121 views

Linux directory permission inheritance for new files created

ive following folder drwxr-xr-x 7 root root 45056 Nov 25 12:39 data which include sub dirs and files its all 755 , but when i create new file inside these dir its get permission -rw-r--r-- 1 ...
-1
votes
1answer
1k 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 ...
2
votes
0answers
138 views

OSX how to chmod a mounted AFP folder from NAS

I have mounted a drive from my DLINK DNS 320 Nas onto my Mac Mini 10.9 via AFP. One of the subfolders where I usually store photos (named '2013') is currently showing restricted access permissions, ...
2
votes
0answers
120 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 ...
2
votes
0answers
458 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 ...
1
vote
0answers
827 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 ...
0
votes
0answers
33 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
12 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
23 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
29 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
0answers
31 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
0answers
89 views

Weird permissions getting set on directories after rsync

I've got a drive on a Mac (OSX 10.7.5) that I'm sharing on the LAN. In the system preferences, the share is set so System Administrator has Read & Write access, System Group has Read Only, and ...
0
votes
0answers
95 views

chmod with extended ACLs

When setting the permissions on a file that does not have extended ACLs set, the 'user', 'group' and 'other' permissions are set. This can be seen with getfacl: $ touch testfile $ chmod 600 testfile ...
0
votes
0answers
337 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
0answers
398 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
189 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
255 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 ...
0
votes
0answers
225 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 ...
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 ...
0
votes
0answers
401 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 ...
0
votes
0answers
247 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+