chmod (short for change mode) is a Linux / Unix command used to change permissions of files and directories.

learn more… | top users | synonyms

1
vote
1answer
22 views

chown all files of removed user (symlinks)

I migrated my OSX System from one machine to another. Everything works fine, but when I check the files under /usr/local, they now belong to a user 502, not my newly created user (which has the ...
1
vote
1answer
30 views

Why does 'cd' not work on an entry with 'directory' attribute?

My OS is fedora 20. I act as a root user. under / directory, I input: #ll ... d????????? ? ? ? ? mnt ... #cd mnt bash: cd: mnt: Not a directory #chmod 777 mnt chmod: cannot access 'mnt': No such ...
0
votes
1answer
25 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
32 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 ...
3
votes
2answers
425 views

How to add +x just for user with chmod?

chmod +x file changes a file from rw-r--r-- to rwxr-x-r-x but really I only wanted rwx-r--r-- is this possible?
0
votes
2answers
74 views

CentOS $chmod a+w /etc/sudoers command not found

I am very new to CentOS and I am trying to edit my sudoers file. First I am told to run the following: $chmod a+w /etc/sudoers and right away I hit an error: bash: a+w: command not found What ...
0
votes
0answers
14 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
32 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 ...
1
vote
1answer
21 views

list out owned file/directories and change its permissions

Can anyone please tell how can I change files/directories owned by me only. below is the command that list out files/directories owned by me find . -user <username>
2
votes
2answers
64 views

How do I change permissions on a directory

I'm using CentOS and I would like to know how to change permissions on a folder with multiple files in it. I have used the following commands on the folder as root (Let's say folder =A) : chmod ...
0
votes
1answer
11 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
47 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
11 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 ...
1
vote
4answers
111 views

Is there any harm in converting all files to executable?

I wanted to install certain software. The package had lots of files including some shell scripting files. Initially I had to select some files and then make it executable: chmod 777 shellscr1 but ...
2
votes
0answers
74 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, ...
0
votes
1answer
57 views

Permissions of files/directories in Unix

It appears that each file/directory has a given set of permissions shown by the 10 characters to the far left of each listing if one were to type into the terminal ls -l Considering that you can ...
2
votes
1answer
48 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 ...
0
votes
1answer
85 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 ...
4
votes
2answers
124 views

What is this hidden directory doing on my Desktop?

On my Mac I just encountered a hidden directory on my desktop. I don't recall putting it there. When I type ls -la in Terminal on the desktop I get the following: The last folder is what triggered ...
1
vote
1answer
106 views

Permission denied altough chmod 777

I am running following commands: $ ls total 12K drwxrwxrwx 3 szr szr 2.0K Nov 14 12:08 . drwxrwxrwx 12 szr szr 2.0K Nov 14 11:23 .. -rwxrwxrwx 1 szr szr 1.6K Nov 14 12:08 config.xml -rwxrwxrwx 1 ...
0
votes
0answers
62 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 ...
1
vote
2answers
173 views

Restrict user access to only read from /proc

As a method for setting up some bare-bones systems monitoring, I have a script set up to SSH in, and run some basic shell commands, reading some files in /proc. I would like to create a specific user ...
-1
votes
1answer
78 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 ...
0
votes
1answer
292 views

Automatically chmod a file when doing git add?

I have an ubuntu development system using git to manage files, but I like to do my editing in QTCreator on a different (windows) system, so I have a windows network drive mapped to the ubuntu server. ...
-1
votes
1answer
28 views

simple priveleges/chmod setup doesn't work

here is the directory listing: drwxrwSr--. 31 storage storage 4096 Nov 20 23:12 storage id returns uid=501(peter) gid=501(peter) groups=501(peter),504(office),505(www),506(storage),507(media) ...
0
votes
0answers
57 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 ...
1
vote
1answer
154 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 ...
0
votes
1answer
51 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 ...
1
vote
1answer
74 views

Why in Midnight Commander the chmod has 5 digits and what for?

In the file menu if I go to chmod, it returnes the chmod value for the folder / file. I understand the last 3 digits, the second is setuid/setgid/sticky bit (have read the docs on it but its use is ...
1
vote
2answers
370 views

What does the command “chmod a=w g+x alpha” do?

I was asked this question but didn't know what it does. I know chmod and its usages but what does this exactly do ?
1
vote
1answer
71 views

chmod 700 -R ~ - is it safe?

I'm thinking of doing 'chmod 700 -R ~'. Can it be dangerous? What can happen what I don't expect? Also, is there any way to keep all files on $HOME to be -rwx------?
0
votes
1answer
26 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
3answers
131 views

Add read permissions to all the directories of a path

I want to add (not modify other file permissions) for all the directories in the path written bellow. Something like chmod -R xx4 /home/mDB/admin/KNUCKLES/dbs/ The path /home/mDB/admin/KNUCKLES/dbs/ ...
0
votes
1answer
221 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, ...
1
vote
1answer
58 views

Changing chmod flags back

I'm fairly new to the whole UNIX / command shell sort of stuff, so I apologize for any ignorance for something I am not aware of. And by new, I mean extremely new. I was confused by how to change a ...
1
vote
2answers
117 views

Convert ls -ld to chmod/chown commands

X home dir permissions: drwxr-xr-x Y home dir permissions: drwxr-x--x So my question is, how can i convert drwxr-x--x to a chmod/chown command so I can put the same permissions that Y has on his home ...
1
vote
1answer
98 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
365 views

chmod: I own the folders, but I can only delete the folder, not the files inside it

Hello I new to linux and i have searched about 10 hours for a answer without success. I have created a folder called "Datatank" and chmod 777 Datatank All files and folder inside Datatank can I ...
1
vote
1answer
1k views

chmod 777 no effects on Linux Mint

I'm trying to assign run privileges to a file named foobar using: sudo chmod 777 foobar However nothing happens. The file is located on a NTFS mounted partition. The mount command says: /dev/sda4 ...
0
votes
1answer
57 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
49 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
570 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
101 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
271 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
814 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
87 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
374 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
637 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
28 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 . <> ...