Finding And Chmod The Www Folders
Oct 23, 2009i 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
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
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
what should be ideal chmod permission for public_html and other folders.
is 755 fine ? what is most secure one
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?
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?
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
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 RelatedI 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?
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?
How to change chmode directory with ssh?
what best rootkit cheker for centos 5.3?
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 RelatedOn 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 RelatedI 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
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?
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.
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
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.
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.
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.
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?
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
trying to find a spammer on my system, who just sent out and is still sending out 4000+ emails...
i have a centos vps with whm.
looked at exim_mainlog, there's nothign telling. the message body is visible, but the links it points to arent' hosted by me. there is no return address, its sending mail as nobody. phpsuexec is not an option.
Anyone got any special programs or tools they use to find out what specific account and domain is abusing server resources?
I am running WHM/cPanel latest build along with the latest Apache, PHP, and MySQL.
I were already at two paid hosts and had no good experience.
Then I have tried a few freehosts and saw a lot of rubbish.
I searched and searched, chatted to support chats of hosts - but no luck yet!
then I came here and now I ask you to find a right (US) hosting service...
First I tell you what site I have, that you can truly estimate:
I have a private website and on it are many photoshop pictures for the design of my website (15kb-200kb per picture).
I offer 3D models for binary downloading in zip files (filesize
1 MB - 15 MB each). I need html, php, SSI, mysql, phpmyadmin, .htaccess and cpanel. I have alexa tracking, google ads and few other javascript tracking providers on my site which are loading heavy according to my former hosts opinion. I have few banner ads, popups, flash animations, the usual things on a site that it looks good to gamers.
Gamers are my main audience.
Diskspace used: currently 500 MB.*
Bandwidth: currently 150 GB / month*
Daily unique hits / pages: 15000.*
* Those values might grow in future.
Optional I have a bb forum for responses and questions installed, but I would reduce to HTML only, if it would be needed.
One host kicked me out without warning because of bandwidth / CPU, before I have used the bandwidth limit specified in my hosting plan.
Another one threw me out without notification because of 'abuse of server resources', whereby the reason or script has been not specified.
In both cases I have no clue what I had to do about.
I have only HTML, a MYBB, pictures, javascript, one database
and lots of traffic ofc.
Now I need a host who is willing / able to host that.
It's a private non-profit site, so the costs should be adequate.
I think I'm unable to go dedicated by fees, it should be still shared hosting.
My competition has similar sites, even larger. They host for free or for shared fees. I cannot ask them and didn't find out where they would host.
A domain I have already. Need just the DNS servers to point to a new host.
finding this file
iam stuck in middle of install,that install need the below file
i tried in google i cant find it can anyone help me
to find the file
ffmpeg-SVN-r14473.tar.gz
I'm trying to transfer a cms from 1 site to another and I don't know the full ftp path.. I'm looking for the "/public_html/username/blank/blank/sitefolder" or something similar.. How do I figure this out?
View 2 Replies View RelatedResponse time from my web server (running LAMP) was really slow this evening. mpstat showed nothing, CPU hovered under 5%, mem usage around 25%, iowait minimal. mysql processlist was mostly idle, no slow queries logged. Only other thing I can think of is the connection from the host itself? (Not my local connection as multiple users complained about slow performance.)
Concurrent users was higher than average, but shouldnt this manifest itself in higher CPU util?
My question was, is there something besides network latency I could be looking at? If it is network latency, what's the easiest way for me to confirm this? A simple ping?
I have a VDS with 20GB drive, currently its running at 81% capacity, I have looked around but am of the opinion its not the accounts that are using that much space.
Is there a simple method of finding out whihc folders are using all the space?
1- is it possible to find out any server hardware info ?
2- is it possible to find out a web site is in which type of server (Resseller ? Dedicated ? VPS ? or x?)
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.