Questions tagged [chmod]

A Unix tool for changing file permissions

248 questions
0
votes
2 answers

CMOD 755 is not possible

If CMOD 755 is not possible and 767 is not either, what is the next best permission? So far I have checked 775 and it works, but is it safe? It is an upload directory and the only people uploading to it are a select few of admins (ie not worries…
EliTheDawg
  • 127
  • 6
0
votes
4 answers

How to delete folder of owner/group 99 99

I am using wordpress with wp-super-cache plugin. This plugin automatically created a cache folder in my site for storing the cached files. But unusually it created folder with owner/group 99 99. It was created automatically. Due to this, i am not…
0
votes
1 answer

Issues with chmod resetting on Ubuntu after ftp upload

Whenever I overwrite a file using FTP, the chmod of the file gets reset to 600. What can I do prevent this? I'd like to just set the chmod for the entire directory and never have it change.
mike
  • 212
  • 3
  • 13
0
votes
2 answers

Locked out by changing file permissions

I just locked my root account (and all other accounts if it matters) completely out of the RHEL 5.4 by changing permissions on every file to 400. Now I have "Permission denied" on any command that I try to run, including chmod itself. Any idea on…
Valeriy
0
votes
1 answer

Permission settings for apache2 web content directories with several users?

I've got a Debian VPS set up with a LAMP-stack. My apache2 instance runs on the user account 'www-data'. In addition to the root account and the service accounts I have several user accounts belonging to friends, family and myself that includes…
John
  • 201
  • 1
  • 3
  • 10
0
votes
2 answers

Efficiently removing x-bit from files in large directory

I have a directory /some/dir containing millions of files and directories. I need to remove the X-bit for all file, but not from the directories. The following works: find /some/dir -type f -chmod -x {} \; But I believe it spawns a "chmod" process…
Troels Arvin
  • 652
  • 7
  • 17
0
votes
0 answers

What are the proper permissions and ownership (including wp-config.php and .htaccess) for Wordpress installations on a LEMP server

I am running an Ubuntu based Linux/Nginx/MariaDB/PHP (LEMP), server with my Wordpress installation in the root account at /var/www/example.com/. My Wordpress is running as the www-data user, and Nginx is also running as the www-data:www-data…
DanRan
  • 73
  • 1
  • 3
  • 22
0
votes
1 answer

User unable to access files in a folder with SUID S bit set

I have a folder which I want to share with users of a group named frx. I had applied chmod g+s to the folder, but for some reason the SUID bit (for folders in the /home/frx directory) came out as S instead. > pwd /home/frx > ls -al drwxrws---+ 14…
Old Geezer
  • 397
  • 8
  • 25
0
votes
1 answer

set the permissions on all the files and folders within a directory (CentOS 7.0 )

I kind of new to Linux/Centos world, is there any way to set the permissions on all the files and folders within a directory. I know chmod 777 will set permissions on the directory, but if it already has contents, I need to know how to set that too.…
0
votes
1 answer

Webserver and permissions - two users having rights to modify specific (but not all) files

So,the typical situation is like that: webserver (in this case nginx) works under the www-data user. And then there is also 'konrad' user, which is just an ordinary user. And now, the whole website (/var/www/html/cool-site) has the owner: konrad,…
konrados
  • 103
  • 3
0
votes
0 answers

How to preserve file access time when using `chmod`

I would like to know how can I preserve file access time ("atime") when using "chmod". Sometimes I need to use the code below: chmod -R 777 /directory It works fine, however all the files inside that directory have the access time ("atime") changed…
Jonathan
  • 11
  • 1
0
votes
0 answers

vsftpd : permission denied

Running on debian10 My website : /home/mysite.com drwxr-xr-x 16 www-data www-data I added a new user with adduser alex Content of /etc/vsftpd.conf nano…
yarek
  • 827
  • 5
  • 13
  • 22
0
votes
2 answers

Permissions Numbers Linux

Going through with permissions and understanding permissions, I understand thats the 3 is not part of the owner, group, other. I also know that 7 is the highest permission for those three sets, what is the 9 in the permissions set…
Justin
  • 3
  • 1
0
votes
1 answer

How to change folder permission using FileZilla Client on Windows for Filezilla Server on Windows Server?

I have tried many things including using Cygwin with a domain user because Windows Server cannot use CHMOD which FileZilla tries, but nothing worked sadly. I am open to using a different FTP Client if nessesary. This is all to change the permissions…
MansNotHot
  • 121
  • 5
0
votes
0 answers

chmod or cd to a directory is not working

I have a file in a directory with root root permissions. But even with root user I am not able to change the permission or cd to that directory, even not able to change the permissions. $ lsattr AWS/ $ sudo lsattr AWS/ $ $ sudo chmod 777…
gokam
  • 13
  • 7