Questions tagged [chmod]

A Unix tool for changing file permissions

248 questions
2
votes
1 answer

Setup Directory Permissions For Multiple Users To Read/Write

I am trying to figure out how to setup the permissions on a directory (/apps) so both the root user, and another user justin can read, and write into the directory. The user justin is part of the group devs. /apps has permissions of drwxrwsr-x, with…
Justin
  • 5,328
  • 19
  • 64
  • 84
2
votes
2 answers

File Permissions on Ubuntu (umask)

I want to make all folders in a directory chmod to 755 and individual files to chmod 644. Is there a way I can use umask (e.g. umask 022) to specify these permissions in the future? Thanks in advance.
Trent Scott
  • 959
  • 1
  • 12
  • 28
2
votes
4 answers

chmod: copy permissions (with extended permissions) from one file to another

I've got a ZFS filesystem that's shared via CIFS. Somehow, the permissions have got all messed up, to the point where the ownership is all correct but a whole bunch of files have 0000 permissions. The files which work correctly look like…
growse
  • 8,020
  • 13
  • 74
  • 115
2
votes
4 answers

how to change permissions of specific file type

file * | grep 'ASCII text' | chmod -x chmod: missing operand Try `chmod --help' for more information. The above command gives me error.Basically I am trying to find all the files whose type is ASCII and change their permissions to -x.What…
Registered User
  • 1,463
  • 5
  • 18
  • 37
2
votes
5 answers

Chmod: defintion of everyone (777)

If I Chmod a directory a to 777. What exactly does Everyone mean? Anyone who connects with FTP without using the password or something else? I have a Wordpress CMS and I'm trying to install a plugin, however it has decided it can't download the…
Jonathan.
  • 155
  • 1
  • 1
  • 5
2
votes
2 answers

Unix Group Permissions

I have created a directory and chown to have permissions master:webmaster and chmod the folder to 775 hence group writeable. So why is it i bert as a member of webmaster cant mv the directory or create a file inside the directory.
2
votes
2 answers

CHMOD in web hosting

my Hosting is use Apache and PHP i understand what it's mean 777 in CHMOD or drwxrwxrwx or Owner, Group, Public => read, write, execute. i understand with the RW CHMOD command but what about the X, it for authorization execute the Shell command or…
GusDeCooL
  • 133
  • 6
2
votes
1 answer

How to use set-user-ID bit on directories?

I want all files in directory /home/alex/foo to be owned by alex, no matter who creates them. I'm trying this technique, but it doesn't work (on CentOS 5, under root): $ cd /home/alex $ mkdir foo $ chmod u+s foo $ chown alex foo $ ls -al . | grep…
yegor256
  • 1,836
  • 3
  • 16
  • 30
2
votes
1 answer

CentOS 5.4 NFS v4 client file permissions differ from original files & NFS Share file contents

Having a strange problem with NFS share and file permissions on the 1 out of the 2 NFS clients, web1 has file permissions issues but web2 is fine. web1 and web2 are load balanced web servers. So questions are: how do I ensure NFS share file…
p4guru
  • 963
  • 1
  • 8
  • 16
2
votes
1 answer

change permission of mounted folder in linux

i mounted a folder from windows to Linux's like so in windows end the permission is set to everyone and on my linux end i did this # mount -t cifs -o username=sprite//173.11.111.99/win-share /mnt Password for sprite@//173.11.111.99/win-share: …
kunz
  • 123
  • 1
  • 6
1
vote
0 answers

bad ownership or modes for chroot directory "/var/www"

I created a new group and user so it can connect to server using SFTP. This user's directory is set to /var/www. Running ls -ld gave me following result: drwxr-xr-x 4 root sftponly 4096 Aug 12 04:05 /var/www/ sftponly is the group and mysftpuser…
Frank Martin
  • 741
  • 2
  • 12
  • 24
1
vote
1 answer

chmod -R +rx on RHEL 7.2 doesn't set permissions

We have an odd problem on some of our RHEL Server 7.2 VM's: Executing sudo chmod -R +rx doesn't change the read/directory flags for any of subdirectories. However, executing sudo chmod -R a+rx works just fine. e.g. for the java-agent folder…
tonys
  • 123
  • 5
1
vote
6 answers

How to change permissions on folders, but not files?

Is there a concise linux command (that will work on OSX) to change permissions on folders and all of their contents, but leave files in the current directory untouched? For example: /parent/folder1 <-change permissions /parent/folder2 …
Michael Prescott
  • 655
  • 2
  • 9
  • 15
1
vote
1 answer

What are the correct Linux permissions inside chroot jail with userspec

I am trying to setup a chroot jail, then I did: which binary ldd /bin/binary Then I did: cp /lib64/{libs} $jail/lib64 cp /usr/lib64/{libs} $jail/usr/lib64 PS: During this setup, I discovered that /lib64 needs special permissions r-x, only r--…
Weber K.
  • 131
  • 8
1
vote
1 answer

How to apply different directory and file permissions recursively by one command

Let's assume that I have this folder structure: |-Home |-Subdir |-Subsubdir |-Subdir Each directory includes a bunch of files. Now I want to apply the following permissions: All directories - 750 All files in these directories - 644 Is…
luqo33
  • 347
  • 1
  • 3
  • 8