chmod is used to change the commonly used read, write, and execute permissions on files. It can change these permission bits for the file owner, the file's group owner, and everyone else. It can also change the more esoteric ‘permissions’ (attributes, reall) like set-user-ID, set-group-ID, and ...

learn more… | top users | synonyms

-1
votes
0answers
16 views

CHMOD in FTP block - RESOLVED [on hold]

trying to change permissions on a file i'm FTPing to multiple servers. Using this in a shell script: ftp -n -v $TIP <<EOF | tee -a $FTPLOG user $TUSR $TPAS binary cd $TDIR/bin rename ...
1
vote
2answers
54 views

How to give this permission (-r--rwx-rw-) using CHMOD? [duplicate]

I am studying for a public exam and see this question (pt-BR) Before answer, I read about chmod and understood that the permission are split in 3 groups (user, group, other), like this: Nível u ...
0
votes
1answer
44 views

Change Permissions for a Specific User

Im new here. I have a question about changing permissions of a file. We have user1 user2 user3 and we have a "xx" file. xx files remoting by root and group1. ı have to give a writable and readable ...
1
vote
4answers
43 views

File permissions on data backups

After making a rm related mistake on some of my files (which was fine because I have backups), I started thinking on how I could limit myself to making such mistakes. I have not done anything with ...
0
votes
2answers
48 views

command not found error after giving permission to access file using chmod

I've been trying to run a script using chmod. Here's how I tried to execute the script: $ chmod u+x tester $ ./tester ./tester: Command not found. I always get the Command not found error and I'm ...
0
votes
1answer
59 views

SSH Key Permissions Chmod settings?

I need to use SSH on my machine to access my website and its databases (setting up a symbolic link- but I digress). Following problem: I enter the command: ssh-keygen -t dsa To generate ...
0
votes
0answers
13 views

SSH Permissions in Linux Mint [duplicate]

I need to use SSH on my machine to access my website and its databases (setting up a symbolic link- but I digress). Following problem: I enter the command ssh-keygen -t dsa To generate ...
2
votes
2answers
22 views

Lock A Built-in Application?

I know I am able to lock an application using: sudo chmod a-x /Applications/'Application'.app but I encountered a problem while trying to lock an application, like safari, which is built in. ...
0
votes
2answers
40 views

How to recursively change permissions on all directories inside current directory?

How can I change folder and file permissions for all files and folders recursively inside current directory? I am not sure, why, but my command fails with this output: chmod: missing operand after ...
0
votes
0answers
25 views

What is the effect of rsync with -E and --chmod?

Reading through a script I came across an rsync command with the following flags: -rtlDE -c --delete-after --chmod=u+rwX,go-rwx /path/to/dir1/ /path/to/dir2/ Background: I am refactoring the ...
0
votes
0answers
38 views

Ubuntu 15.10 system rescue on Busy Box after botched Deja-Dup backup attempt

I received an external hard drive for Christmas and attempted a backup of the home directory of my Ubuntu 15.10 system. Unfortunately, I botched it, and when I came back to the computer to check how ...
3
votes
2answers
66 views

reset permissions back to default

How can I reset permission to default according to the mask, so they will have permissions set as the file was just created Example of what I want to achieve: umask is set to 0022 so touch file ...
3
votes
2answers
57 views

Changing file permissions according to their names

I created 512 files, with names made from combinations of permisions (r, w, x). I created them like this: touch ./{r,-}{w,-}{x,-}{r,-}{w,-}{x,-}{r,-}{w,-}{x,-} and I want the files to have same ...
0
votes
0answers
13 views

How to give write access for overlay fs?

Should i change rights on mount point, or workdir or both? Should i use commands (to give write access for all users) find . -type d -xprint0 | xargs -0 chmod 777 find . -type f -xprint0 | xargs -0 ...
0
votes
1answer
16 views

Help with permissions

I am trying to set up permissions but i dunno what excatly as a user. Could anyone tell me which permission will allow me to execute the touch and echo command in a directory ?
1
vote
2answers
108 views

File Permissions Sticky&User Execution

After the website of a client has been hacked, I found some files with the following permissions set What exactly S and T stands for? Also, which one is the command to set them with those ...
1
vote
1answer
31 views

vsftp doesn't respect chmod setting when uploading outside my local network

Yo! I've a ftp server on my linux machine and I've set the following rules: 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 ...
1
vote
1answer
59 views

Linux Copy user's permission to another user

The server is centos, the user is named dev_admin. Now I added a new user ops_admin and I want to copy dev_admin's permission to ops_admin. I tried the following command as root: useradd ops_admin ...
-1
votes
1answer
36 views

Unix directory for all users permissions

I'm trying to make a directory where all users can write, but no user can delete another users file in that directory.
0
votes
1answer
44 views

How to convert text into numbers for chmod? [duplicate]

I need to chmod something into drwxrwx---. What is drwxrwx--- in number form?
2
votes
1answer
51 views

Is it a good idea to set file permissions to 640 on windows partition?

I run both Arch Linux and Windows 10 on my computer. When I cd onto the Windows partition (which uses NTFS), I notice that all files and folders have 777 file permissions. I want to run $ chmod 640 -R ...
0
votes
1answer
38 views

How do I modify contents of a directory without sudo?

I'm trying to modify the contents of a directory using git. Problem is if I use sudo it nullifies my ssh forwardAgent. I'm not the owner of the directory but I am part of it's group. If I chmod 775 ...
0
votes
1answer
32 views

Dandelion List Listener Fails

I am trying to use lisp in linux but I can not get the listener to work. Using Eclipse's menu, in help -> install new software, I installed the dandelion plugin but every time I try to run lisp code, ...
1
vote
2answers
87 views

Find all .php files inside directories with writable permissions

I'm looking for a linux command to scan through all writable directories on the server and show ones with .php and .html files inside them. Something like: find -type d -writable -exec find {} ...
0
votes
1answer
95 views

invalid mode chmod command

I am trying to look for all files with xyz in their filenames in my working directory and then change their permissions in symbolic mode. find . -type f -name *xyz* ; chmod -v u=a+wx {}\; I get ...
0
votes
0answers
72 views

Permissions set to 755 but I cannot access folder

I want to access some files in a folder that I created in a server. I have changed the file permissions recursively to 755, which basically should allow everyone to read and execute files, but this is ...
2
votes
1answer
95 views

chmod doesn't work on Mac

I have a very simple question. I cannot make a file executable from the command line on a Mac. This is what I'm typing in terminal cd ./Desktop echo 'say hello' > hello chmod +x hello hello It ...
6
votes
1answer
199 views

What permissions one needs to run chmod, chown command on a folder/item?

I've always been running chmod/chown commands as a sudo user. But today I wondered if I don't use sudo, what permissions do I need to actually execute chmod/chown command on a folder/file? I've tried ...
0
votes
1answer
80 views

ACL contradict chmod

I have installed opencart 1.5.6.1 on Digital ocean ubuntu14.04 I have used "demo" as username and login by tightvnc opencart requird "www-data" as owner and group: $ sudo chown -R www-data:www-data ...
2
votes
1answer
60 views

What is the meaning of the mode mask names from stat(2) and chmod(2)?

The stat calls have a series of symbolic names for the various bits in the mode field. From the stat(2) manual page: The following mask values are defined for the file mode component of the st_mode ...
0
votes
2answers
115 views

chmod – execute permission for non-admins?

I have used chmod to make all the contents of a directory executable. However, when I try to run one of the programs in that directory as a regular user (me), I get a "command not found" message. If ...
2
votes
1answer
172 views

Give permissions to change permissions

I am running a script to deploy a website on a server. It gives me the following error: DEBUG [4223cc8a] Command: /usr/bin/env chmod +x /tmp/mysite_staging/git-ssh.sh DEBUG [4223cc8a] changing ...
0
votes
0answers
67 views

Prevent other users from reading my files

I have 2 users: Joe is root and Gary (normal user). But if Gary enters 'cat /home/joe/function.php', he can view all code with mysql password into this file. What is the solution for disabling all ...
1
vote
2answers
45 views

shell script for chmod file name but only on new files since last run of the script

i have a directory where new files are uploaded and receive numeric filename as they are uploaded. the file name is numbers that go up. i need to change permissions for the file but only on new files ...
2
votes
2answers
109 views

Is it possible to change the directory permission to its previous state?

I have accidentally changed the permission of "/usr/bin" directory and its files by the command: $chmod 775 /usr/bin -R First, there was a problem with sudo but I fixed it. Now I am suspicious that ...
0
votes
1answer
96 views

Always get Error: Operation not supported for: find /Path/ -type f -exec chmod 755 {} \;

I want to change the access permissions for MP3 files on an external 2,5" HDD on my Raspberry Pi on which I run an actual version of Raspian. To do so I tried to use the following command: find ...
1
vote
1answer
64 views

changing file premissions doesn't work

I ssh into a server, and tried changing a files permission. This is what I got: $ ll total 1 -rwx--x--x 1 <user> <groups> 17 Jul 29 12:06 index.html $ chmod 777 index.html $ echo $? 0 $ ...
-1
votes
2answers
58 views

How to make an existing directory (and sub-directories) to be suddenly writable by ROOT ONLY?

Let's say i have a directory, at: /tmp/uploads/ And inside got several recursive directories and files created by DIFFERENT USERS before. So now, suddenly how do i make that above directory to be ...
-2
votes
1answer
201 views

How to make a NON-WRITABLE directory?

Actually i'm aware of a "PHP Web Folder". There seems to be some potentials of incoming attacks. So that i want to make sure this whole directory is READ-ONLY (Only writable by ROOT). Let's say the ...
1
vote
2answers
594 views

How to Change Owner of a Directory

EDIT: The problem was that Apple uses permissions to mark backups and prevents you from modifying them (probably a security feature). By using chmod -RN <dir> I removed ACL data from all the ...
15
votes
3answers
2k views

Purpose of permissions such as 0111 or 0333

What is the purpose of Linux permissions such as 111 or 333 (i.e. the user can execute, but cannot read the file), if the ability to execute does not automatically imply the ability to read?
0
votes
1answer
413 views

Meaning of chmod 1775

Created a folder "Sample_dir" and analysed its permissions. $ mkdir Sample_dir $ ll Sample_dir/ total 36 drwxrwxr-x 2 user user 4096 Jul 1 19:26 ./ drwx------ 71 user user 28672 Jul 1 19:26 ../ ...
1
vote
2answers
79 views

shell or perl script to check group have read privileges

ls -l drwx------ 8 ws web 1024 Apr 29 2013 abc drwxr-xr-x 8 ws web 1024 Oct 19 2011 def I need some script to find directories like abc which doesn't have read/execute permissions ...
1
vote
1answer
199 views

Linux Root group change chmod for root owned to 770

I'd like to have normal user account assigned to root group (which I've done already) and change mod of all files that are owned by root user to 770, If I understood it well in result of that every ...
1
vote
1answer
67 views

How to delete stubborn directory?

I'm having issues with dropbox so I'd like to uninstall and reinstall it. To do so I need to remove ~/.dropbox-dist but no matter what I do it won't budge. If I run ls -l I get: drwxr-xr-x 3 user ...
2
votes
2answers
350 views

Permanently change permissions of /var/run/postgresql

On Linux Mint 17.0 Cinnamon Edition, I want to use /var/run/postgresql as the unix_socket_directories option for all of my postgres databases. Whenever I run the command pg_ctl -D postgres-data -o ...
1
vote
1answer
2k views

How to create a Samba share that is writable from Windows without 777 permissions?

I have a path on a Linux machine (Debian 8) which I want to share with Samba 4 to Windows computers (Win7 and 8 in a domain). In my smb.conf I did the following: [myshare] path = /path/to/share ...
0
votes
1answer
50 views

What's the inverse of the X mnemonic in chmod?

Is there a way other than find … -type f -exec chmod -x {} + to remove the x bit from u, g and/or o recursively with just chmod? The X mnemonic in chmod allows one to recursively set permissions on a ...
7
votes
3answers
1k views

How do Linux permissions work when a process is running as a specific group?

This is something I haven't been able to find much info on so any help would be appreciated. My understanding is thus. Take the following file: -rw-r----- 1 root adm 69524 May 21 17:31 ...
0
votes
1answer
42 views

File Permissions issue from same group

I have a folder that I haven't created and belongs to a web-group group. Even though my username is under that group I can't modify files or create new ones without doing sudo. When I do the ...