Archive for the tag 'Files'

SBDavid

Finding files readable for everybody

Finding files readable for everybody

find . -perm -444 -perm /222 ! -perm /111
find . -perm -a+r -perm /a+w ! -perm /a+x

These two commands both search for files that are readable for everybody (-perm -444 or -perm -a+r), have at least write bit set (-perm /222 or -perm /a+w) but are not executable for anybody (! -perm /111 and ! -perm /a+x respectively)

SBDavid

Exim Message-IDs and spool files

Exim Message-IDs and spool files

The message-IDs that Exim uses to refer to messages in its queue are mixed-case alpha-numeric.

Files in /var/spool/exim/msglog contain logging information for each message and are named the same as the message-id.

Files in /var/spool/exim/input are named after the message-id, plus a suffix denoting whether it is the envelope header (-H) or message data (-D).

Exim Basic information

Print a count of the messages in the queue:

root@localhost# exim -bpc

Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient):

root@localhost# exim -bp

Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals):

root@localhost# exim -bp | exiqsumm

Print what Exim is doing right now:

root@localhost# exiwhat
SBDavid

Rebuilding RRD Data Files

Rebuilding RRD Data Files

RRD files can be regenerated from the various summary files by using the /usr/local/cpanel/bin/rebuildbwrrd utility.

The utility can regenerate the data for a specific user or all users. This utility accepts the following parameters:

–all - Process all users on the system.

–dir={path} - Used to specify the location of the RRD summary files and where to create the new RRD files. If not specified, uses /var/cpanel/bandwidth.

–gid={#} - The number specified with this parameter is used to set the GID on any created files. If not specified, the program uses the GID of the existing data files.

prefix - The user or domain to process.

SBDavid

Files Involved in Legacy System

Files Involved in Legacy System

English language and the x3 theme.

The Legacy System

Root-specific files:

/usr/local/cpanel/lang/english — The base file
/usr/local/cpanel/lang/english.local — The local file

Theme-specific files:

/usr/local/cpanel/base/frontend/x3/lang/english — The base file
/usr/local/cpanel/base/frontend/x3/lang/english.local — The local file

The Locale System

Root-specific files:

/usr/local/cpanel/locale/en.yaml — The base file
/var/cpanel/locale.local/en.yaml — The local file

Theme-specific files:

/usr/local/cpanel/base/frontend/x3/locale/en.yaml — The base file
/usr/local/cpanel/base/frontend/x3/locale/en.yaml.local — The local file

Note: If you want to add or modify the value of a key, you should always modify the local file. Otherwise, your changes will eventually disappear.

Any editing with user interfaces in WHM and cPanel will edit the local files.

Reference: http://cpanel.net/

Downloading configuration files and mirroring EZ templates

This command downloads the configuration files.

# rsync -auv –delete rsync://autoinstall.plesk.com/’autoinstall/products.inf3 autoinstall/plesk.inf3 autoinstall/pp-sitebuilder.inf3 autoinstall/billing.inf3′ destination_directory

This command mirrors EZ templates for Parallels Virtuozzo containers for RPM-based repositories. If you plan not to mirror EZ templates or you plan to serve Debian or Ubuntu OSes, omit this step.

# rsync -au –delete rsync://rsync.autoinstall.plesk.com/autoinstall/PSA10/ destination_directory/PSA10

« Prev - Next »