Can't CHMOD 777 Files, But I Can CHMOD 777 Folders

Dec 4, 2008

On one of my servers i can't CHMOD 777 Files, but i can CHMOD 777 Folders.

Files are chmod 777 but on scripts installation... It's Said Please Chmod Example.php to 777
Centos 5
PHP 5
Apache 2.2.3

View 11 Replies


ADVERTISEMENT

Chmod For Public_html And Other Folders

Jul 24, 2009

what should be ideal chmod permission for public_html and other folders.

is 755 fine ? what is most secure one

View 14 Replies View Related

Finding And Chmod The Www Folders

Oct 23, 2009

i need to find al www folders within home directory with 777 permissions and need to chmod to 750.

if possible post the command to do it

View 8 Replies View Related

CHMOD For Files

Jun 18, 2007

I just moved my folder_A from computer A to computer B, what is the command to change the permission of owner, access, group for every files in that folder_A at 1 time?

in the folder_A has hundred of files. Let's say , i want to change owner = laptop, access = read and write, group = user, access = read and write , what is the specific command to do that for all the files in folder_A at 1 time?

View 5 Replies View Related

How To Chmod The Files And Subfolder + File.php To 755

Jun 25, 2007

i download a script .. when i unzip the script .. all the folder have chmod to 700 + 600

what command could let the folders and sub folders have chmod to 755 ( as root )

i command this

chmod 755 *

but the folders inside the folder didn't chmod to 755

there is alot folders thats why its hard to do it manually :p

View 7 Replies View Related

How Do I Move Files & Subdir (without Changing Chown & Chmod)

Apr 1, 2008

How do I Move Files & Sub directory without changing Chown & Chmod them?

Situation:

I need to move /home/user/public_html/blog (all files & subdir) into /home/user/public_html

View 8 Replies View Related

How NOT To Require CHMOD 755 Permissions To Create, Write And Delete Files On Linux

Dec 30, 2008

On my previous server and on some other hosts, I was able to write to files (for example with PHP) without having to chmod the files first.

Now I cannot, and files are required to be chmoded properly so I can write to them.

I cannot even touch() a file with PHP.

Is there any way to have this permissions removed?

I don't want to chmod the all thing, all I want is to change the configurations so I can fwrite() or file_put_contents() normally.

I's a dedicated un-managed server, so basically any advanced configurations can be done.

View 8 Replies View Related

Chmod 777 Vs 755

Jul 3, 2007

I've just moved from a reseller account with ResellerZoom, so a VPS with SolarVPS.

When I was with RZ all my scripts could write to folder with the 755 permissions. On the vps I have to alter the folder I want the script to write to to be 777.

Which the is best and most secure?

I think I understand that if a folder is 777 then anyone on the server can write to that folder. So I assume some sort of thing that stops users being able to access folders outside of their own folders is needed? is that right?

View 3 Replies View Related

Chmod

Oct 2, 2007

I have a server running php 5.2.4 with CGI as Server API and suexec, but I cant create dirs in php with chmod 755. When I use mkdir("/home/user/public_html/$dirname", 0755); it creates the dir with chmod 744. Why?

I can change later this chmod to 755 in php with the chmod function. But why my server doesnt allow the directory to be created as 755? Where can I configure it?

View 5 Replies View Related

How Use Chmod Only For *.php

Jul 16, 2007

How change CHMOD for all files *.php on account /home/user/publc_html?

I user chmod -R *.php
but this does not work for subfolders /home/user/public_html/subfolder1

View 3 Replies View Related

Chmod Using Shell

Oct 8, 2006

I was wondering if it were possible to chmod a directory that is set to a low number to 777 using a shell or command and if so can anyone point me in the right direction as to how to go about doing so ??? I am trying to learn a little and i pefer using my browser to edit files rather then a ftp client.

View 9 Replies View Related

How Do You Avoid Using Chmod 777

Nov 5, 2009

I know you're not supposed to use 777 but it seems some scripts just simply won't work without it, what steps needs to be taken to avoid using 777?

as far as i understand we're only supposed to use 775 for folders and 644 for files correct?

View 7 Replies View Related

How To Change Chmod Directory With Ssh

Jun 12, 2009

How to change chmode directory with ssh?

what best rootkit cheker for centos 5.3?

View 2 Replies View Related

Default CHMOD Settings

Sep 10, 2009

Is there a way in ubuntu 8.10 to have default chmod? everytime someone uploads a file they have to chmod it so that it can be seen/used by the web.

View 5 Replies View Related

What Is Windows Equivalent To Linux CHMOD 666

May 5, 2009

On a Linux box, I know how to set a file to CHMOD 666 permissions. How do you set world writable permissions to a file on a Windows server?

View 7 Replies View Related

Recursive Chmod Via Shell Access

Apr 29, 2009

I want to recursive chmod 777 to some particular folder.

As per i know the command is -

chmod -R 777 *

But how can i run this command for any particular folder.

For eg the folder is - /home/XXXX/public_html/folder

View 7 Replies View Related

Chmod Choices With Php Writing To A File

Aug 31, 2008

My account has been hacked with every index.php page defaced. I've cleaned up and my shared wehost is pointing at me saying there shouldn't be any 777 permissions for any files in there.

I used 777 to allow php to add records in a txt file and in an xml file.
Is there a better / more secure chmod code I can use?

Those are the only two instances where I need php to write to a file and those files shouldn't be served to anyone, I do not want anyone to be able to access them.

How can I secure them while letting php write in them?

View 5 Replies View Related

PHP: Uploading As Apache User, And Chmod 600

Aug 12, 2007

I've recently moved to a new server in which I don't have root, so bare with me.

For some reason when I upload a file with 'move_uploaded_file($tmpName,$new_filename)', it seems to work fine - but when I check it, try to download it (http or ftp), or change the permission - I can't, because its set to 600 for some odd reason, and owned by the user Apache is setup on.

View 5 Replies View Related

How To CHMOD? Sever Security Best Practices

Jan 3, 2007

I have my web server hacked several times and I am beating my head against the wall trying to find the problem(s).

Way back when my sites have been defaced and CHMODing my *.html files to 744 seemed to have done the trick

Now someone has put a phishing site somehow, which by the way I'm not able to remove still, I can't help but to think that I may have more CHMODing to do, I have recursevly set my site to 755, shoud this do the trick? I know I need to chmod .htaccess and alike files to 644, but what about...imagesCGI/PHP?cssetc?

What other steps can I take to secure this thing?

it's a shared host, limited access, but I do have SHELL.

View 6 Replies View Related

Cannot Perform 'chmod' On FTP Client Software Interface

Apr 14, 2009

I got a VPS with Linode and I have installed CentOS 5.2 32-bit, Apache, MySQL and ProFTPd. The server itself runs very OK, however, I have issues with running 'chmod' on the user interface with either FileZilla or CuteFTP pro.

Whenever I try to chmod 777 on a directory, I got this error on the FTP client interface:

Quote:

Command:SITE CHMOD 777 includes
Response:550 CHMOD 777 includes: No such file or directory

Why no such file or directory? weird. It's just on the server though. The FTP user is the owner/group of the directory I try to chmod to.

But I am able to run chmod on Putty.

View 7 Replies View Related

Auto CHMOD Script Running In The Background

Jul 21, 2009

I am attempting to setup a script which will automatically append the proper file permissions [posix & acl's] to any new files on certain folders that I specify.

Someone Recommended

find /Users/Kevin/Desktop/TRANSFER -type f -exec chmod 777 {} ;

This only seems to run once and when new files put in I have to have the script run every so often as a cronjob, I really just want to have a script to change the permissions of files going into a folder.

View 7 Replies View Related

Chmod All Occurances Of A File System Wide

Apr 13, 2007

How do I sweep my entire server and chmod a particular filename located in the cgi-bin to either 0, 755, etc?

For example, to disable a particular perl script running on my system on over 100 accounts in the /cgi-bin/file.cgi I want to chmod the file on every account that it comes up on that /cgi-bin/file.cgi needs to be chmod'd to 0.

Anyone know how to do this thru ssh or another method?

View 3 Replies View Related

Hosting Allowing Chmod? New To Hosting

Mar 24, 2008

I recently got webhosting with godaddy which I have now decided was a bad choice. Its "user friendly" model makes it harder. My main problem at the moment is loading forum php script and such I have to have my permission changed which i know how to do but it wont let me through ftp or godaddy's filemanager (though it says you can). *Does someone know how to do this on godaddy **or what hosting do you recommend for: ....

View 8 Replies View Related

Best Permission For SMF Files And Folders

Feb 22, 2008

I'd like to know how to secure an SMF site. Is the default permission good enough?

View 4 Replies View Related

Apache Treats Files As Folders

Mar 5, 2014

I have just discovered in my access log some people accessing urls like this:

domain.com/index.php/index.php/ or even
domain.com/index.php/index.php/index.php

I have opened those links in browser and they worked. Why?

My .htaccess is empty and I have no 'index.php' folder. But I do have 'index.php' file.

I think this is happening to most php sites, not just mine. This is a random example:

[URL] ....

My question is how to force apache to return 404 error when such url is accessed?

View 1 Replies View Related

Removing Large Files Or Folders CentOS

Jul 13, 2008

Something weird happening here. I have tried every string possible...

There are a number of folders I want to remove off my server, tried the good old and simple...

rm -r /folder/

And then went and ended up with a string as long as my screen. No matter what I do, as it goes recursive in to the directory it asks me if I want to remove each file individually. No matter what string or action I take it insists on asking me as it goes to delete each file.

Could this be a configuration option in CentOS?

View 3 Replies View Related

Offsite Backups (via Rsync) - What Files/folders To Backup

Jun 3, 2009

I'm currently using (amongst other backup systems) rsync to an offsite space (am using BQBackup at the moment)

I'm just wondering - apart from backing up all of /home/, /var/lib/mysql/ and the important config files (httpd.conf, php.conf, etc etc) is there anything else that *needs* to be backed up?

Obviously in a worst case scenario, a new machine would be deployed with a fresh OS install (and a fresh WHM/cPanel install) so I wouldn't worry about backing up OS files or cPanel core files, although I'm wondering if there's anything apart from the /home/ directory and the MySQL databases which would be lost (and so need backing up) in the event of a crash?

View 10 Replies View Related

Simple Script To Find Suspected Files And Folders

Sep 1, 2007

Try this useful script to find all 777 permission files and folders in /home directory

also it can find all names of suspected folders and files you want

and then you can take the required action

to install this follow the steps

login as root

Code:
cd /root

Code:
pico checkpandnscript.sh
Enter this code and in the 5th line from the end change
email@email.com to your email

Code:
# This file will help you to find suspected folders and files in /home directory
# Coded and desgined by Alrutani Web Hosting www.alrutani.com , for more informations please contact us.
#!/bin/sh
echo " " > /root/perdfmbc
echo "################# Folders with 777 permission #################" >> /root/perdfmbc
echo " " >> /root/perdfmbc
find /home -type d -perm 777 |egrep -v "./cpapachebuild|./.cpan|./src" >> /root/perdfmbc
echo " " >> /root/perdfmbc
echo "################## Files with 777 permission ##################" >> /root/perdfmbc
echo " " >> /root/perdfmbc
find /home -type f -perm 777 >> /root/perdfmbc
echo " " >> /root/perdfmbc
echo "############### Folders & files must be checked ###############" >> /root/perdfmbc
echo " " >> /root/perdfmbc
find /home -name forum >> /root/perdfmbc
find /home -name upload >> /root/perdfmbc
find /home -name 4images >> /root/perdfmbc
find /home -name gallery >> /root/perdfmbc
find /home -name uploader >> /root/perdfmbc
find /home -name up >> /root/perdfmbc
find /home -name r57shell >> /root/perdfmbc
find /home -name r57shell.php >> /root/perdfmbc
find /home -name r57.php >> /root/perdfmbc
find /home -name c99shell >> /root/perdfmbc
find /home -name c99shell.php >> /root/perdfmbc
find /home -name c99.php >> /root/perdfmbc
find /home -name shell.php >> /root/perdfmbc
echo " " >> /root/perdfmbc
echo "###############################################################" >> /root/perdfmbc
echo "Developed by Alrutani Web Hosting http://www.alrutani.com" >> /root/perdfmbc
echo "For more informations please contact us." >> /root/perdfmbc
echo " " >> /root/perdfmbc
cat /root/perdfmbc | mail -s "Suspected files & folders in your server" email@email.com
cd /root
rm -rf perdfmbc
# This file will help you to find suspected folders and files in /home directory
# Coded and desgined by Alrutani Web Hosting www.alrutani.com , for more informations please contact us.
To add more files and folders that you want the system to list

fine

Code:
find /home -name upload >> /root/perdfmbc
after it add

Code:
find /home -name xxxxxx >> /root/perdfmbc
where xxxxx is the name of the file or the folder you want

Save file Ctrl X
select yes then click enter

Code:
chmod 755 checkpandnscript.sh
To make the script works daily

Code:
crontab -e
At the end enter

Code:
* 3 * * * sh /root/checkpandnscript.sh
save and exit done !!

now to test the script

Code:
cd /root

Code:
sh checkpandnscript.sh
you will receive email from the server

View 2 Replies View Related

Plesk 12.x / Windows :: How To View Attributes For Files / Folders

Aug 7, 2014

If users copy files/folders on Plesk Panel 11/12 with attribute "read-only", I don't see this attribute on File Manager, every time do next "attrib -r <path to file/folder".

Maybe you can improve functionality of "File Manager" on Plesk Panel 12?

View 1 Replies View Related

Plesk 12.x / Linux :: Write Recursive Rights On Files / Folders

Feb 20, 2015

I have a concern during the installation of PrestaShop. I created a subdomain through Plesk, put my files on my server via FTP. During installation of PrestaShop, I have a problem:

Recursive write permissions for the Apache user on the ~ / config /

My user is "NOWIS" and my group is "psacln" ....

I think the user "NOWIS" has no rights as "Apache" ....

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved