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


ADVERTISEMENT

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

How To Change Permission Of These Files

Nov 17, 2008

cache/:

files/:

store/:

I am installing phpBB, it needs to modify those file in order to work. How can i find those files in my host directories and how to modify or change permission ?

View 5 Replies View Related

Disk Quota Issue - Locating The Folders With The Highest Number Of Files

Jun 6, 2008

we've been having issues with reaching or exceeding our disk quotas. I've checked carefully, and while I've cleared our mail queue's, I don't think that's the issue.

So what I'm really looking for is a way to figure out why we have so many files (our quota is 220000, and I'm pretty confident that we aren't intentionally doing anything to create so many files). There's lots of information on finding the folders with the largest file sizes, but locating the folders with the greatest number of files isn't quite so simple--or at least, it doesn't seem very clear to me.

Does anyone know a way via the command line to figure out this information, short of going through every single folder and figuring out how many files are in the specific folder?

View 6 Replies View Related

Plesk 12.x / Linux :: Files And Folders Generated By PHP Hidden In FTP - Centos 6.5 / FastCGI

Jun 23, 2014

I have the following problem, the files and folders generated by PHP are hidden in FTP.

I can see in the Plesk file manager that users, permissions and groups are the same for all files and folders (those that can be seen and those that cannot be seen from FTP).

All the options in the server are set by default. It is a new installation of Plesk 12.0.18 #4 in CentOS 6.5 (Final).

SO: CentOS 6.5 (Final)
Plesk: 12.0.18 #4
PHP: FasctCGI
Apache Modules:

View 3 Replies View Related

Changing Permission For All Files Within Directory

Dec 7, 2007

What is the command to change the permissions for all files contained within the same directory? I have about 100k files

located here:
/mysite.com/files/

I need to chmod all files located within the /files/ directory to 666.

What is the command for this via ssh?

View 8 Replies View Related

Upload Files With Wrong Owner And Permission

May 5, 2008

when doing upload file to my server through php srcipt or html. That all getting wrong with owner and file permission.

I thought that something wrong with server configuration like php.ini or apache.

View 6 Replies View Related

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 View Related

C99Shell Folders?

Jul 30, 2009

I found these folders in the root

/usr/bin/c99

/usr/include/boost/numeric/interval/detail/c99_rounding_control.hpp

/usr/include/boost/numeric/interval/detail/c99sub_rounding_control.hpp

what are these ? is it normal folders ? or somebody hacked our server?

what shall I do?

View 10 Replies View Related

IIS 5.1 - Browsing Folders

May 8, 2008

Well I finally got around to getting my IIS up and running which will save some time with uploading various files to check that they are working correctly but now I have run into a new problem. What used to happen with my IIS is it would list out all of the folders which I had in the wwwroot and I would simply navigate through and select which site needed to be tested.

At the moment, I have cleared out the wwwroot folder entirely since all of the stuff in there was to do with a "Windows XP Professional" page which appeared upon installation.

However, now that I don't need it anymore, I decided to clear it out and test IIS out by making a new folder called "sites" into wwwroot. Now though, it simply comes up with a "Directory Listing Denied. This Virtual Directory does not allow contents to be listed." error message, even though I have changed the permissions on the wwwroot folder to allow writing etc.

Could this be because it's IIS 5.1 and I need to install IIS 6.0 instead or is something else wrong? I know for a fact that my operating system (Windows Media Center Edition 2005) will do this list as I have had it before, back before I installed Vista and then decided to come back to MCE.

View 3 Replies View Related

Nobody Folders And Delete

Jun 29, 2008

when people run a forum and the template and forumdate folders may created some files with nobody permission,

the user could not delete them by the user themself,

and need admin login as root with ssh to delete those,

and let the files permission can run as the user instead of nobody.

the server is centos with cpanel and suexec.

View 5 Replies View Related

.htaccess And Folders

May 22, 2007

In the public_html directory, I have

php_value user_agent "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0"
<IfModule mod_security.c>
SecFilterScanPost
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
Errordocument 404 /404.html
RewriteCond %{REQUEST_FILENAME} !.(jpg|jpeg|gif|png|css|js)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php [L]
</IfModule>

Then I created a new directory named caller

There is an exact same .htaccess in public_html/caller

However, the .htaccess in the public_html directory rewrites all request to index.php

.htaccess in public_html/caller rewrites all request to /caller/index.htm

The thing is when I access
[url] whatever the one that's called is /public_html/index.php

How can I arrange so that the one called is /caller/index.htm?

View 1 Replies View Related

Can I Delete These Folders From My Ftp

Mar 17, 2007

I heard the following folders were used by frontpage.

_private
_vti_bin
_vti_cnf
_vti_log
_vti_pvt
_vti_txt

I was wondering can i delete these folders if i'm not using frontpage ?

View 4 Replies View Related

SSL Certificates Works For Folders?

Jan 13, 2008

Say i have domain zzzzz.com and have some folders say a, b and c

would ssl if installed for main domain zzzzz.com work for https://zzzzz.com/a and so on ? or would wildcard ssl be required for that ?

And what if that /a folder is actually a subdomain, but since you can access subdomains via url/folder instead of folder.url would ssl work on it using url/folder option instead of subdomain url ?

View 12 Replies View Related

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

Unable To Delete Folders In Ftp

Mar 28, 2009

im using fireftp and i chmod the folders to 777 but it seems that im still unable to delete the folders as i get the message 550 directory not empty etc.

View 9 Replies View Related

Emails Going To SPAM Folders

May 15, 2008

I can send e-mails out but many times they go directly to the recipient's SPAM box.

Also, my server cannot send to any company e-mail that uses MXLogic.net's services.

Going to [url]<--My server IP is on ZERO blacklists.

/etc/resolv.conf appears correct
/etc/hosts also appears correct

Is there something that I am overlooking?

View 3 Replies View Related

Accessing Shared Folders

Jul 1, 2008

I have server which all files and folders are stored on. Now there are a couple of folders which are only accessible by one machine at present and all the other machines when they access the folder it is displayed as empty. I have checked all permisions and all machines viewing of files settings are the same and folders accessible by all machines have the same settings as the couple which are only accessible from this one machine.

If I copy and paste the folder all machines then have access to the folder from although this would be a lengthy exercise for the full hard drive.

View 0 Replies View Related

Folders Display Permissions

Oct 13, 2007

I would to know how I can change the display permissions for my website sub folders and files from public view, for instants

The current is you can access to any folders or files once trying access to any folders in my website like open this link www.yoursite.com/photos/ will see all sub-folders and files in this “photos” folder also you can see the other folders in another level by going to the top level folders!

but I think there is a way to enforce my users to write the full path of any selected photo or file they want without browsing my folders and sub-folder.

View 8 Replies View Related

Apache 1.3 For One Site, Two Cgi-bin Folders

Jul 12, 2007

my server has just one site, apache conf has such a line:

Code:
ScriptAlias /cgi-bin/ "/usr/local/apache/htdocs/cgi-bin/"
and

Code:
<Directory "usr/local/apache/htdocs/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
then, my cgi script may run well under the said folder,

/usr/local/apache/htdocs/cgi-bin

but I have another script need to be setup another cgi-bin under its own folder below htdocs folder, like,

/usr/local/apache/htdocs/anotherscript/cgi-bin

however, when I run the said script in browser:

Code:
http://www.mydomain.com/anotherscript/cgi-bin/abc.cgi
the browser just shows source codes, instead of running it. I am guessing something wrong in httpd.conf,

may I know how to set apache httpd.conf to meet my requirement?

View 3 Replies View Related

Mystery Folders Being Created

Apr 19, 2007

I am designing a site for a client and in all the years I've done design etc, I've come up against a phenomenon with their VPS server they have. It's linux and uploading files I am using WS_FTP Home.

I am uploading files and folders to their public_html/domain.com/ (*I use domain here for their privacy) and in some folders (directories) after doing so, a mystery folder suddenly appears that is named 5" and as you enter that folder, you see the path directory show up "public_html" and if you go into that one, you come up to the domain.com folder again, and if you deeper into that one you start to see this phenomenon of mirroring folders of the one you go into. Example:

public_html/domain.com/images/5"/public_html/domain.com/images/file
***the file whether it's an image jpg, png, etc is created as the last directory as a folder, not a file. I should also mention that as you go deeper in the 5" mystery directory folder, you no longer see the path in the FTP anything past the 5" one even as you go further in.

Oh, and it doesn't allow you to delete these 5" folders regardless of what permissions. And this folder seems to show up in many areas of this website's directory structure...mostly where images are (don't know if that is just a coincidence).

So hope all this makes sense....anyone seen this before and what the cause could be? Their host doesn't seem to know the reason and says they cannot see it even though others can. They said it's the FTP program as the cause and not their server.

My comeback to that is that I've used this FTP for years and never before seen this happen. It's only with this one client's server.

View 4 Replies View Related

How Can This Be Done? IIS Multiple Vir. Dir. Or Real Folders

May 12, 2007

The scenerio is client want to enable unlimited URL for his individual customers.
ie,[url]
Platform: W2K3 IIS6

I only know two ways doing it

1. Create a real folder /username1, /username2, but this will be real messy, and I remember there is a limitation for up to 36,000 sub-folders within a root folder under Windows (correct me if I am wrong)

2. Create virtual directories under IIS Manager using ASP/ASP.NET script, this is easiest, but having two problem.

a. If I have say 10,000 vir. dir., and then I try to expand that root folder under IIS manager, IIS manager will hang for sure.

b. Having such huge vir. dir will inevitably having a huge IIS Metabase, this means a great chance of corrupting it, so it's very dangrous.

I really hope someone can give me some hints how to do this in a scalable way? I know many Web2.0 site do this even using IIS6 ie, [url]

View 0 Replies View Related

Deny Perl In Public Folders

Mar 12, 2007

How do you guys deny run of perl/bash scripts from /tmp, /var/tmp, /dev/shm? I've tried to build simple shell wrapper, but that's not a compromise if you run for example spamassassin on the same server (it needs direct io to/from perl binary). I'm looking intro some kind of binary wrapper or patch that will deny running perl scripts from public folders (also the same for shell scripts will be great). Any ideas or solutions?

If anyone interested in primitive shell wrapper code:

Code:
#!/bin/sh
ARGS=`echo $@ | grep -v "/tmp/"`
if [ "$ARGS" != "" ]; then
/usr/bin/perl.orig $ARGS;
fi

View 4 Replies View Related







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