Questions tagged [chmod]

A Unix tool for changing file permissions

248 questions
-2
votes
1 answer

Chmod all files and directories recursively to 666 under /usr

I want to make an chmod command that's recursively will apply the privilegies to all directoris under that. Example: chmod 666 /usr I want that every directory under "/usr" turn into permissions to 666. Thanks in advance.
guisantogui
  • 121
  • 1
  • 3
-2
votes
2 answers

Chmod wont stick

I'm using CentOS on a virtual dedicated server. When I go in as root, and change the chmod value of a folder it works. But, any files I place into that folder do not inherit the chmod I set. This is what I used: chmod -Rv 777 files the return was…
please delete me
  • 127
  • 1
  • 1
  • 5
-2
votes
2 answers

Centos file permission issue

The script I'm using requires your files to be chmoded to 666 for editing, although even after I've chmoded the files it's telling me it couldn't write the files. I think it might be a security issue or something since I also get: script.cgi:…
Belgin Fish
  • 919
  • 5
  • 17
  • 31
-3
votes
1 answer

CHMOD file and directory permissions changing back

I have a website and I am trying to link an image stored in a directory, however when I change the file permissions to 775 they change back to 644 and the image isn't displaying. It is showing a Error 403 Forbidden error My .htaccess…
-4
votes
1 answer

SSH broken due to chmod -R /*

I made a total mistake here. Anyway I ran chmod -R 777 /* and immediately regretted my decision. I had to boot into single user mode to and ran chmod -R 755 /etc/* in order to login to the server. The only problem is ssh now and obvious security…
Lylo
  • 101
  • 1
  • 3
-4
votes
1 answer

What are the proper chown settings for images?

I am testing a piece of software that is working except for some SVG images that are not showing. When I preview them using Firebug in Firefox, it says "Failed to load the given URL," however, when I manually visit the image's URL, it shows just…
Dustin L.
  • 143
  • 3
-5
votes
1 answer

chmod for all sub directories

There is command that change the folder permission for all subfolders find . -type d -exec chmod 755 {} \; I understand d is for directory and chmod 755 to make all directory as 755 I want to know what is the meaning of {} & \.
Aftab
  • 113
  • 4
-5
votes
1 answer

Why I can't upload files without chmod 777?

I was not able to upload files on my site (cent OS 6 VPS). The path where web files should be uploaded is /var/www/html. The permissions of directories were 755 and of files were 644. But when I chmoded all files and directories in /var/www to 777…
1 2 3
16
17