Check your current timezone by just running


# date
Thu Mar 21 18:02:49 MST 2012

Or checking the timezone file at


# more /etc/timezone
US/Arizona

So to change it just run


$ sudo dpkg-reconfigure tzdata

And follow on screen instructions. Easy.

Also be sure to restart cron as it won’t pick up the timezone change and will still be running on UTC.

# /etc/init.d/cron stop
# /etc/init.d/cron start

Set up the backups:

http://wiki.r1soft.com/display/ServerBackup/Documentation

Connect your NAS to your master VM. All other VM’s will connect to the master to backup there. Your VM’s will need to connect to your private network so each VM will need two NIC’s.

The SAN is attached to the hypervisor (ESXi) and then you can add a virtual disk to the machine that is going to act as the backup server.

IE, create a datastore to be able to then allocate the diskspace to the backup server VM:

http://pubs.vmware.com/vsphere-51/topic/com.vmware.vsphere.storage.doc/GUID-7EB0CE06-02DD-4B31-85C7-E54993CC06DC.html

sysv-rc-conf is an alternate option for Ubuntu.


# sudo apt-get install sysv-rc-conf


# sysv-rc-conf --list xxxx

Also, to disable a process at boot, you could simply disable it by:

# sudo update-rc.d apache2 disable

and then if you would like to enable it again:


# sudo update-rc.d apache2 enable

How to restore default permissions on a domain?
Resolution

In case default permissions on the domain folder are lost, the following actions can be performed to restore them:

In Parallels Plesk Panel (PP), go to the Domains page, mark the required domains, and click on the Check permissions button. Then uncheck the Check-only mode checkbox and click OK.

If it is necessary to repair permissions for all domains, you can launch Plesk Reconfigurator (Start > Programs > SWsoft > Plesk > Plesk Reconfigurator). When it is running, choose Repair Plesk installation, toggle on Plesk virtual hosts security, and click on the Check button.

Note: Please be aware that any custom permissions that might have been configured by customers will be replaced with the default ones after this action.

You can find instructions for Plesk for Linux here – http://kb.odin.com/en/6572

How to set it in plesk: https://support.managed.com/kb/a642/how-to-fix-permissions-on-your-site-through-plesk-control.aspx

This configuration, will provide desktop sessions to users based on the number of Remote Desktop Services client access license (RDS CALs) installed on the server, but will not provide access to RemoteApp programs or the RDWeb site.

Consideration for installing the Remote Desktop Session Host role service on a computer running Windows Server 2012 without the Remote Desktop Connection Broker role service.

Read More

Internet Explorer 10 is available by default with Windows Server 2012 /R2 , which includes Adobe Flash Player as a platform feature. However, the plugin is enabled only if you enable the Desktop Experience feature.

To enable Desktop Experience on Windows Server 2012

1. Open Server Manager and click Add Roles and Features.
2. When the Add Roles and Features Wizard appears, specify the appropriate values on the Installation Type, Server Selection, and Server Roles pages.
3. On the Features page, expand User Interfaces and Infrastructure and select Desktop Experience.
4. On the Confirmation page, select Restart the destination server automatically if required and click Install.

On Windows 2008 R2 please visit www.adobe.com to download and install the latest version of Flash Player. It is not necessary to enable Flash Player on Windows 2008 R2.

APPLIES TO:

Plesk 12.0 for Linux
Plesk 11.0 for Linux
Plesk 11.5 for Linux

Symptoms

I started a security check through Parallels Plesk Panel at Modules -> Watchdog -> Security -> Start. The process finished successfully, however, the following warning messages are reported in the Watchdog security check log (/var/log/rkhunter.log):

Warning: The command ‘/usr/bin/GET’ has been replaced by a script: /usr/bin/GET: perl script text executable
Warning: The command ‘/usr/bin/groups’ has been replaced by a script: /usr/bin/groups: Bourne shell script text executable
Warning: The command ‘/usr/bin/ldd’ has been replaced by a script: /usr/bin/ldd: Bourne shell script text executable
Warning: The command ‘/sbin/ifdown’ has been replaced by a script: /sbin/ifdown: Bourne-Again shell script text executable
Warning: The command ‘/sbin/ifup’ has been replaced by a script: /sbin/ifup: Bourne-Again shell script text executable

These files exist in the system. How can I reconfigure RKHunter to verify the existence of the binaries and remove the warning messages?
Resolution

It is recommended that you add the following directives into the RKHunter configuration file:

/usr/local/psa/etc/modules/watchdog/rkhunter.conf
—>8—
SCRIPTWHITELIST=/usr/bin/GET
SCRIPTWHITELIST=/usr/bin/groups
SCRIPTWHITELIST=/usr/bin/ldd
SCRIPTWHITELIST=/sbin/ifdown
SCRIPTWHITELIST=/sbin/ifup
—8<--- If you want to disable emails, check the log file at /usr/local/psa/etc/modules/watchdog/rkhunter.conf and set it to [bash] /usr/local/psa/etc/modules/watchdog/rkhunter.conf [/bash] Or in /etc/cron.daily/01-rkhunter

In a typical UNIX/LINUX-style file listing, a file will be displayed in the following way:

ls -l index.php

Output:

-rw-r--r--. 1 www-data www-data 405 Nov 14 01:45 index.php

The first character indicates the file type. It can be a regular file (-), directory (d), a symbolic link (l), or other special types of files. The following nine characters represent the file permissions, three triplets of three characters each. The first triplet shows the owner permissions, the second one group permissions, and the last triplet shows everybody else permissions.

-rw-r--r--.

r stands for read permission;
w stands for write permission;
x stands for execute permission.

The permissions are divided into three parts.

The first three characters after the initial – are (rw-) are for Owner permissions. The owner of the file, the user “www-data”, can read the file and write (modify) it.

The next three characters (r–) are for group permissions. Members of the group “www-data” can read the file.

The last three characters (r–) are for other (world) permissions. These are the permissions for everyone else on the system. Users other than “group” who are not members of the “www-data” group can only read the file.

For directories, the permissions have a slightly different meaning.

For example:

ls -la
drwxr-xr-x  8 www-data www-data  4096 Feb 21 11:28 wp-content

Read determines if the user can get a list of the files in the directory;

Write determines if the user can create or delete files in the directory. A point of interest in this case is that if a user has write access to the directory, the user can delete files that are in that directory even if the username has no write permissions for the particular files;

Execute determines if the user can cd into the directory.

To summarize:

In this case, the owner, user, can do just about anything in the directory. Members of the group staff can list the contents of the directory and browse it. No one else is allowed access to the directory. Permissions are also often represented by digits. For example, 755 is the same as

-rwxr-xr-x.

The permission bits correspond to a certain number: 4 stands for r, 2 for w, 1 for x.

The reason for this is that in binary 100 (r–) is 4 in decimal; 10 (or 010, -w-) in binary is 2; and 1 (or 001, –x) in binary is 1 in decimal.

This allows for adding the numbers together, which can give a number from 0 to 7 for each of the three parts of the permissions set.

Here is a nice grid.

-rw-r--r-- 8 www-data www-data 12.0K Apr  28 10:10 file_name
|[-][-][-]-   [------] [---]
| |  |  | |      |       |
| |  |  | |      |       +-----------> 7. Group
| |  |  | |      +-------------------> 6. Owner
| |  |  | +--------------------------> 5. Alternate Access Method
| |  |  +----------------------------> 4. Others Permissions
| |  +-------------------------------> 3. Group Permissions
| +----------------------------------> 2. Owner Permissions
+------------------------------------> 1. File Type