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
2answers
711 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 +...
0
votes
2answers
1k 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
715 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
359 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
387 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
141 views

how to mount as read-write filesystem and not read-only

So, I'm trying to install gentoo in a virtual machine. I ran into this problem and began researching what the answer might be. The file system is read only. I can't mount it as read-write. I'd rather ...
1
vote
1answer
1k views

chmod throws missing operand on 764, OK on 664

Having set everything in my project to 777 (rwxrwxrwx) for debugging purposes, I wanted to dial down the openness and set the directories (not the files) in the root folder to 664 (rw-rw-r--). To do ...
1
vote
1answer
1k 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 -...
1
vote
1answer
534 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
983 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
15 views

Why can't Ubuntu read external volume files after I recursively { chmod +r and remove ACL }?

The commands I used are: sudo chmod -RN /volume and sudo chmod -R +r /volume The external volume is a backup of OSX home folders. The above made it only possible to read what contents is in the ...
0
votes
1answer
38 views

chmod 777 based on directory

I am wanting to perhaps create a cronjob that will monitor a directory and will do automatically chmod 777 and files that are created inside the directory or a subdirectory of my main directory. Is ...
0
votes
1answer
71 views

Converting these chmod commands to cacls?

Perhaps someone could help me. I'd like to convert the following chmod commands to use on Windows 7 but my understanding is lacking. /bin/chmod -R u+w,go-w,a+r somedirectory /bin/chmod a+x ...
0
votes
1answer
369 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
236 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
290 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
16 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
958 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 (rwxr-xr-...
0
votes
1answer
1k 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
265 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
3k 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 ...
3
votes
0answers
212 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
466 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
20 views

Logging into new FTP server, but no directories show up

I've tried this with both ProFTPD and SFTP. I'm trying to chroot a user to /var/www/user however when I log in to the FTP server with their account, I get "/var/www/user: No such file or directory". ...
1
vote
0answers
39 views

Automatically chmod a+r on files copied into my (OSX FUSE / sshfs mounted) VFS

I have a virtual Linux machine running LAMP. On my MacBook I've mapped ~/remoteFS to this machine's ~/ using OSX FUSE & sshfs. i.e. First I install OSX FUSE. then I do: sshfs pi@46.108.38.186:...
1
vote
0answers
28 views

Making file's mode 000 on cygwin - does not work

Seems cygwin is unable to cancel a file readability mode, viz.: $ echo "123" > ttt $ cat ttt 123 $ ls -ls ttt 1 -rw-r--r-- 1 Administrator None 4 Mar 22 10:19 ttt $ chmod 000 ttt $ ls -ls ttt ...
1
vote
0answers
65 views

Chmod doesn't work for all files

I'm trying to chmod my /var/www folder in Ubuntu, with the command: chmod -R 775 /var/www, and it works for the existing files. However, every time I add a new file, I have to run the command again, ...
1
vote
0answers
130 views

Is there anyway you can restrict users from executing a command with another name?

I'm not asking an obvious question here. I would like to elucidate with an example. A user 'bob' is always executing 'chmod 777 /home/bob/impfiles' so that user 'alice' could make changes to the ...
1
vote
0answers
1k 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 rw-...
0
votes
0answers
16 views

Impact of “chmod g-w,o-w /” on a Linux System

If one is on as root, and runs this: chmod -R g-w,o-w / What are the implications? And what would one have to do to undo the effects? Yes, the dumb user was me. So we fixed it as follows: Add ...
0
votes
0answers
27 views

MSYS2 permissions

In Windows 10, with MSYS2 I set my fstab to: none / cygdrive binary,posix=0,acl,user 0 0 I am unable to set execute permissions with chmod, despite having acl set in the fstab: # echo > foo # ...
0
votes
0answers
15 views

Rsync (-aR) Create a destination subdirectory with same permissions as top folder in source directory?

I'm using rsync to grab some modules within a web platform. I am able to pull things ok, the -aR relative flag works fine, and the structure is correctly replicated into a subfolder called "...
0
votes
0answers
30 views

File permissions not preserved on external hard drive

I have a brand new 3TB Western Digital "Elements" external (USB) hard drive. When I copy (cp, rsync) stuff across from my laptop file permissions are not preserved. In fact everything (files and ...
0
votes
0answers
18 views

Directory access not permitted

I recently installed the Open Virtual Desktop (Community Edition) on CentOS 6.6. I tried to open the folder created for a particular session. When the session was logged in, the folder could be ...
0
votes
0answers
43 views

Killed server with chmod -R u+rwX,go+rX,go-w /

So I was trying to give files in /var/www/html/ 644 (rw-r--r--) permissions and killed the server: chmod -R u+rwX,go+rX,go-w / That changed permissions on all files it could on the entire server as ...
0
votes
0answers
64 views

(ftp client) uploaded file has wrong permissions

I've a ftp server on my linux machine, I've set rights rules to my server: I keep group and owner and chmod it to 775. When I use it at home (192.168.x.x) it's ok, files keep their group and user ...
0
votes
0answers
105 views

SFTP to multiple users access to same directory and take delete permission

I am trying to give permissions to multiple users to access var/www/my.com/folder2, which is owned by www-data. So simply I have a lot of sftp users and everyone only accessing to var/www/my.com/...
0
votes
0answers
124 views

Why does chmod g+s not work on my NFS mounts?

I've got some NFS mounts that have directories that I need chmod g+s set so that any files extracted inside of them retain the default GID. For some reason it won't let me change this on the NFS ...
0
votes
0answers
71 views

World writable sudoers, no root password set

I have Kubuntu 14.04 installed on USB flash drive. Yesterday by accident I did chmod 777 /etc/sudoers. Now I can't set it back to 0440, because I get an error something along the lines of 'File is ...
0
votes
0answers
271 views

DD-WRT: /tmp folder permissions

After making a simple hello world OpenWRT package I installed it to the /tmp folder on the dd-wrt device. The program shows up in ls /tmp but when I try to execute it, it shows me /tmp/helloworld: ...
0
votes
0answers
411 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
575 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
1k 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
240 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
403 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
426 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 http://grok.zope.org/documentation/tutorial/installing-and-setting-up-grok-under-mod-wsgi/...
0
votes
0answers
440 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
384 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+