Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Web Hosting


Advertisements:




SuperbHosting.net & Arvixe.com have generously sponsored dedicated servers and web hosting to ensure a reliable and scalable dedicated hosting solution for BigResource.com.







Copy Newly Created Folders In /tmp


We've had someone starting nobody PERL procs on a box and we can't quite track it down or read the file to see what it is. What he does is to create a folder in /tmp, execute the script from there and delete the folder as soon as it's running (yes, /tmp is mounted noexec, makes no difference). We've managed to discover and block the IP that was doing this, but that's no fix. He hasn't been back since banning the IP...so far.

What we would like to do is see if anyone knows of (or can help create) a script that can watch the /tmp folder and copy newly created directories and thier contents to another dir (also notifying via email would be helpful) in order to see what the heck it's doing, and hopefully be able to figure out how it's getting in. Nothing in any logs this time, and the PERL process seems to be able to hide itself from PS. That bit worries me quite a lot, but none of the binaries appear to have been changed, and it doesn't appear we've been rooted in any way.
Thoughts on this, ideas and suggestions welcome.

Failing that, is it possible without breaking the box to prevent the creation of new directories in /tmp? This I seriously doubt, but if all they need to do is create a folder and work from there, noexec is a joke.


View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
Mystery Folders Being Created
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 Replies!   View Related
Howto : Copy Index.shtml To Folders In One Command ..
i would like to copy index.shtml to these folder in 1 command ...

PHP Code:

[root@BOX wp-content]# ls -latotal 48drwxr-xr-x   9 sitename sitename 4096 Nov 25 16:06 .drwxr-xr-x   6 sitename sitename 4096 Nov 25 15:52 ..drwxrwxrwx   3 sitename sitename 4096 Nov 25 16:05 backupdrwxr-xr-x   2 sitename sitename 4096 Nov 16 15:39 cachedrwxrwxrwx   3 sitename sitename 4096 Nov 25 16:05 gallery-rwxr-xr-x   1 sitename sitename   30 May  5  2007 index.php-rw-r--r--   1 sitename sitename  457 Nov 25 16:06 index.shtmldrwxrwxrwx   3 sitename sitename 4096 Nov 16 16:27 photosdrwxr-xr-x  28 sitename sitename 4096 Nov 25 15:57 pluginsdrwxr-xr-x   8 sitename sitename 4096 Nov 22 03:01 themesdrwxr-xr-x   3 sitename sitename 4096 Nov 16 04:04 uploads-rw-r--r--   1 sitename sitename  909 Nov 16 15:43 wp-cache-config.php[root@BOX wp-content]# 

i mean to let index.shtml index uploads and themes .....etc in 1 command .

View Replies!   View Related
When Do You Know Newly Registered Name Servers Can Be Used
I have created a reseller account on my Cpanel dedicated and have 2 IPs to my customer to register them as name server. He has just done so. How can I make sure that he can use these new name servers on his customers' domains.

The name servers and the IPs are these:
ns4.exeperu.com 69.65.121.203
ns3.exeperu.com 69.65.118.79

View Replies!   View Related
Copy An Account From Another Server Via WHM - Cannot Copy Mysql Database
In previous thread we made few manual transfer of our domains.

We also made some automated migration of few domains/sites using Web Host Manager's Copy an account from another server feature.

All the files and other settings were properly transferred from old server to new server, but only the mysql database is not visible on new server. I am unsure if the same got copied to new server.

View Replies!   View Related
How Can Secure /tmp /var/tmp In OpenVZ VPS ?
recently I got a VPS from cheapvps.co.uk and so far so good. Im getting used to the VPS enviroment. I tried to follow several guides about how to secure with noexec and nosuid the /tmp and /var/tmp and it did not work.

in http : / / www . webhostingtalk .com/showthread.php?t=474681&highlight=tmp points it must be done from the hosting. Same is said in http : // kb . swsoft . com/article_130_648_en.html.

I asked the hosting to do it and they told me as I got an Unmanaged VPS they cant do it for me.

Do anyone know how can be done ? I dont want to use tmpfs as it uses main memory.

View Replies!   View Related
How To Find Out Who Created Cpanel Account?
How to find out who created account?

How can I find out who created an account in CPanel? Where in the logs?

I have a new account on my server but I don't know who created it, it's possible one of my resellers lost his password, but how can I find more about it?

View Replies!   View Related
Group And User Xfs Created
After some yum updates last night one user and group called xfs were created on my dedicated server. Does anyone know what this group/user is used for?

View Replies!   View Related
Found Email Address I Never Created
This is twice I have found email addresses on the web that I have never created. Both domain names are the new extensions and I purchased them the first day they become public. .biz the other is .US

One of the domains I never even created a web page until yesterday. And today I find a German site using my domain as an email address. One note on this, this domain name is extremely unique and related to certain German ideas or thoughts.

I am thinking someone at the server created them and used them for their personal use. Is this possible?

Not only that, but I have sent email to these addresses and there was no bounce back. No bounce back meaning these are valid email addresses?

View Replies!   View Related
Sessions Created With No Permissions Set
I'm in the process of configuring my company's new server and I've hit a slight stumbling block. What's happening is that PHP is creating its sessions like normal with the exception of no permissions being set for them. This then means that errors are thrown up when PHP attempts to open the session files. Can anybody tell me why this is happening? I have set the sessions directory to octal 0777 for the time being.

The server is running Linux redhat.

View Replies!   View Related
How Many VPS Servers Can Be Created On This Dedicated Server
(2) Intel Xeon 5310 Quad Core 1.6GHz Processors

Supermicro X7DVL-E Dual Processor Motherboard with 1333/1066/667MHz FSB

(4x) 2GB DDR2 PC5400 ECC Fully Buffered (667MHz) System Memory (1GBx2)

(6x) 250GB SATA II Hard Drives (1.25TB Available Storage)

How many VPS Servers can be created on that dedicated server?

And what is the suitable dedicated server for about 20 VPS Servers to be hosted on?

View Replies!   View Related
Delete Files Created On A Specific Date
Is there a quick shell command to find (inside a directory) and delete all the files created e.g. on January 10, 2008 ?

View Replies!   View Related
Permissions For CPanel Accounts Created With WHM
I recently got a dedicated server (CentOS with WHM and cPanel) and I am a newbie when it comes to server admin.

I had a hard time with the proper configuration so that Fantastico would work (it took their admin a week to figure out their own installation).

In any case now I can use Fantastico to install scripts and the one I use the most is Joomla. There is a major problem though. So I create a new account in WHM (with root access or not), go to domain.com/cpanel, go to Fantastico and install Joomla. Then if I access files or folders through FTP using CoreFTP I can't change permissions (most of files or folders) and I can't edit files. (that's the case even for the accounts with root access).

I can perform those actions if I log into WHM with my main root account and change what I need using a module called Configserver Explorer that shows all the files on the server (without that module I would be lost - I don't know all those shell commands)

So can anyone help me with some proper configuration tips so that if I create user accounts (other then myself) they would have those permissions to edit or change stuff in their account?

I come from shared hosting and never had these problems. They were allowing add-on domains and I could copy entire sites to other domain names with one click. Now WHM says it's not a good idea to allow add-on domains. No idea why. Any advise one that?

View Replies!   View Related
How To Make/restore Backup Of VE's(created With Openvz)
How to make backup of VE's(created with openvz) to .tar.gz and restore later?

View Replies!   View Related
Just Installed Webmin On My Vps And Created A Virtual Host
I've currently installed webmin on my vps and i want to know ive followed this tutorial and is there away for me to setup my dns name servers for my domain how can i do that with webmin? .......

View Replies!   View Related
Whm Issue Spambox, Folder Spam Not Created
We have issue with spambox/horde

We have enable from whm spamassasin and, from cpanel customer's, spambox function

Problem is that for all customer that have email in the past folder spam are not been created..

For new account is created but is hidden from horde, we must go on horde option and tell that spam folder is "spam"..

Why ?

With other server te don't have this problem..

Ho can fix this, create fol all users /spam folder and set as spam folder ?

View Replies!   View Related
All New Mail Accounts Created Return A 550 5.1.1 Error
All our email account on our server work fine ! (Cpanel/whm)

As soon as we create a new account on any domain name, and we try to send a test mail from any email address (hotmail, yahoo, our internet provider etc.. ) we get a bounce back email with the following:

Recipient address: yasmine@ramystyle.com
Reason: Remote SMTP server has rejected address
Diagnostic code: smtp;550 5.1.1 User unknown: yasmine@ramystyle.com
Remote system: dns;ramystyle.com (TCP|10.23.32.29|46273|72.55.156.210|25) (swh1.sellwebhost.com ESMTP Exim 4.66 #1 Thu, 05 Jul 2007 11:27:01 -0400 )

View Replies!   View Related
How To Protect The Web Site Created On The Phpizabi Engine
How to hack a website at phpizabi engine?!

keywords:
?L=, cecen hacked, cecen, hacked, phpizabi hacked, How to hack phpizabi

Hacking mechanism:
1. this is not hacking indeed. This is usage of phpizabi engine imperfection

Usually the path till the admin area looks like this:
?L=admin.general.configure

If changing the path to
?L=admin//general//configure
Then anyone can obtain full access to the admin area and can do everything he wants.

Similarly changing the path till any keyword file on the web site you can freely get the access to the database.

HOW TO CORRECT THIS ERROR:

mechanism:
1. Below I’ll show an example on how to correct the imperfection of phpizabi engine. This is only example and I recommend all the programmers to code by themselves their own mechanism of this error correction. Unque character of this mechanism will be one more obstacle against hacking.

So, in the very beginning of the script index.php we should put the following code:

$ser_p = array("'[^.A-Za-z0-9]*?'si");
$rep_p = array("");
$_GET = preg_replace($ser_p,$rep_p,$_GET);

It cleans everything from the query except “dots”, “letters” and “digits”.

2. All the folders in main directory of the web site which are located under the path /pages/ should not be accessible for opening!
The easiest and fastest way is to set password access for all the folders in /pages/ through «Password Protect Directories» - this is client’s admin area on the hosting. You should set password to all except “chat” and “gallery”.

3. File upload:

By default any file can be uploaded for scripts phpizabi for dating web sites. They could be uploaded like a picture for gallery or attached file for other web site elements.
Specially created *.php file which will be loaded at the server, can give full access to hacker and finally to walk away it from you!

I do not enclose the correction code of this error as you should restrict file uploading on the server by the class objects jpg/jpeg, gif and png.

View Replies!   View Related
How To Change :: This Message Was Created Automatically By Mail Delivery Software ...
We carried out a major clean up on our server but when i send out mail i get this message:

"This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:

xxxxmydomain@aol.com

The mail server could not deliver mail to xxxxmydomain@aol.com. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries."
--
Would anyone know what i need to change, to have this working, just checking,

View Replies!   View Related
C99Shell Folders?
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 Replies!   View Related
Nobody Folders And Delete
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 Replies!   View Related
.htaccess And Folders
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 Replies!   View Related
Chmod For Public_html And Other Folders
what should be ideal chmod permission for public_html and other folders.

is 755 fine ? what is most secure one

View Replies!   View Related
IIS 5.1 - Browsing Folders
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 Replies!   View Related
Emails Going To SPAM Folders
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 Replies!   View Related
Accessing Shared Folders
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 Replies!   View Related
Can I Delete These Folders From My Ftp
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 Replies!   View Related
Folders Display Permissions
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 Replies!   View Related
SSL Certificates Works For Folders?
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 Replies!   View Related
Finding And Chmod The Www Folders
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 Replies!   View Related
Unable To Delete Folders In Ftp
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 Replies!   View Related
Best Permission For SMF Files And Folders
I'd like to know how to secure an SMF site. Is the default permission good enough?

View Replies!   View Related
Deny Perl In Public Folders
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 Replies!   View Related
Downloading LARGE Folders On Linux
On my site, there is a folder containing somewheres around 75,000 images.

I'm on shared hosting, but I do have shell access.

I want to basically copy this folder to another directory in the site. Can anyone give me any pointers?

View Replies!   View Related
Zipping Up Multiple Public_html Folders From Shell
OK so I'm on the shell and looking at the contents of my home/ directory which has all the various accounts. In each account directory are subdirs such as mail, logs, tmp, etc, and public_html. Is there a way (or a ZIP command) to be in the home directory and create a massive ZIP file containing all the account directories, each containing ONLY the respective public_html subdir for that account?

Using the command "zip -r Backups.zip ./" seems to include all those extra folders (such as mail, etc.) that aren't needed.

View Replies!   View Related
Access Folders In Root / Bypass Wordpress
My blog is set up to display in the root of my domain, although the files on the server sit within their own folder:

i.e

Server files

Public_html/wordpressfiles/

Broswer displays

www . mydomain . com/

(disaplys pages from /wordpressfiles)


The problem I have is that I can't access individual directories within the root, unrelated to wordpress.

e.g

I have

Public_html/folder2/...
Setup on the server, but if I enter the path in my browser:

www . mydomain . com/folder2

wordpress thinks I want to access:

www . mydomain . com/wordpress/folder2

...which doesn't exist.

How can I re-gain access to folders in the root, without wordpress interfering?

View Replies!   View Related
Removing Large Files Or Folders CentOS
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 Replies!   View Related
Which Folders Should I Exclude From A Whole Server Backup (Rsync )
I am going to backup the whole server. (Rsync)

I understood it is not efficient to backup the local "backup" folder to avoid duplicated backups.

1. Should I exclude additional folders from the backup process?

2. I noticed it is familiar to exclude the "proc" folder also ... Why?

View Replies!   View Related
Addon Domain, Cant Have Password Protected Folders
I have 2 domains on 1 account. My main website is www.aviationcafe.net and i added on www.modelcuir.com thats what it looks like to the public. But with my host it will be www.modelcuir.aviationcafe.net.

I noticed in the files area that modelcuir is it's own file, i can password protect that but it will stop people getting onto the website completly and i only want to stop them getting into the members area.

I can't create a members area either unless i can add a new folder which i can't i dont think.

View Replies!   View Related
Apache 1.3 For One Site, Two Cgi-bin Folders
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 Replies!   View Related
Cron/ssh To Remove Folders Older Than X Days
I'm trying to write a cron/ssh to remove recursive folders in a "data" folder that is older than X days.

I've been able to remove files, but not folders.

This is the code I have so far, but if someone can point out how to remove folders older than X days, that'd be great ........

View Replies!   View Related
Offsite Backups (via Rsync) - What Files/folders To Backup
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 Replies!   View Related
Simple Script To Find Suspected Files And Folders
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 Replies!   View Related
How To Backup Outlook Express Email Folders And Settings
I want to reinstall Windows Xp soon, as I got a virus and after cleaning the computer doesn't work as smooth as before. I gives some strange erros and sometimes it justs hangs up... I want to backup Outlook Express emails and settings before reinstall, and restore afterwards.

View Replies!   View Related
How Can This Be Done? IIS Multiple Vir. Dir. Or Real Folders
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 Replies!   View Related
GoDaddy Tells Me It's Normal To See The Folders Of Some Random Persons Account
I signed up with GoDaddy shared hosting just a couple days ago. I logged into my site using SSH and FileZilla.

And I see hundreds of folders and files that are not mine. These are files from some random account. These are not the basic starter-folders/files.

Yet when I connect via FTP (not SSH), I only see the regular starter-set with just a few folders and a few files (not hundreds).

This seemed totally loopy, so I called customer support, and the support guy agreed that it was not right. He "escalated" the issue to technical support. I received an email from them asking for screenshots of all these random files I see via SSH.

I sent in the screenshots of FileZilla showing all these files.

Then GoDaddy responded with this:

--------------------------------------------
Dear Sir/Madam,

Thank you for contacting Hosting Support.

We have reviewed your hosting account [edit] and SSH does in fact show more files than typical FTP. This is normal and not something to be alarmed about. As you are on the shared environment there is certain folders that you will not be able to access, one such example provided in your screenshots is 'herawellness', attempting to access this directory will result in a access denied error. If you are attempting to upload web content you will need to put the content in the the /html/ directory.

If you are having trouble using SSH you may want to consult your favorite search engine for assistance with SSH commands.

Please contact us if you have any further issues.

Regards,

Adam M.
Hosting Support
----------------------------------------------

This doesn't seem right at all.

I've only hosted with one other host besides godaddy, and using SSH I did not suddenly see hundreds of random files from some random account.

View Replies!   View Related
Windows 2003 Hard Drive / Folders Protection Password?
Anyone know a good program to let me put passwords from opening the hard drives via My Computer or especific folders, shortcuts, programs etc?

Lets per say someone got a hold of my Administrator password to have those important confidential files not to be seen a program like this would help. I am also going to set up that the server is only accessed from 2 secure locations just in case.

View Replies!   View Related
DNS & BIND WEBMIN : Linking Domains To Folders
linking domains to folders. Im using webmin on a Debian server, and setting up the DNS and BIND isn't a problem, i can do that, but what if i want to link, lets say example.com to the folder hdoc/example/ , how would one do that?

At the moment when setting up the zones, they link to the main page.

View Replies!   View Related
Rsync Copy
I have wrote a small script which copies file names which has name as *default* from backup to users main folder. It works fine with one folder but doesn't copy files from sub-folders.

it works with all the sub-folders as well?

HTML Code:
#!/bin/bash

for i in $(ls /var/cpanel/users)

do
rsync -vrplogDtH /backup/cpbackup/weekly/$i/homedir/public_html/*default* /home/$i/public_html

chown -R $i.$i /home/$i/public_html/*default*

done

View Replies!   View Related
DD Copy Mount
I want to use DD to fully duplicate a HD, however, the HD is 120GB and also have a mount folder that is 2TB. If I use DD, will it also trying to copy that 2TB onto my 2nd HD?

View Replies!   View Related
Copy Sql
How do I copy an entire mysql sql database file via ssh?

Inside /var/lib/mysql the sql are per table, not one single sql. The db is over 300mb in size too.

Using mysql 5/centos 4.6

View Replies!   View Related
Copy Server To A New HD
It turns out my 250GB hard drive was no match for my data... I need to upgrade the HD.

I'm currently using ClarkConnect Community Edition.

Is it fine to make a duplicate of an existing hard drive and just plug the new one in?

Is there any further configuring or is it all sweet?

Also, what software do you recommend to make the copy?

View Replies!   View Related
How To Copy Accounts
I have 2 cpanel servers with root access.

I want to copy all the accounts from 1 server to another.

View Replies!   View Related
Disk Quota Issue - Locating The Folders With The Highest Number Of Files
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 Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved