Archive for the tag 'Creating'

SBDavid

Creating and editing ACLs

Creating and editing ACLs

Before you can block or allow requests from some address, to some server or for some page you will need to create an appropriate ACL. The basic steps to do this are :

1. Select the type of ACL to create from the drop-down menu below the Access control lists table and click the* Create new ACL* button.

2. On the form that appears, enter a name for your new ACL in the ACL name field. If more than one has the same name, it will be treated as matched if any ACL with that name matches. The name should consist of only letters and numbers, with no spaces or special characters.

3. Fill in the rest of the form as explained in the table below.

4. In the Failure URL field, enter a complete URL that clients who are denied by this ACL will be redirected to. This allows you to define custom error pages to be displayed instead of the default Squid responses.

5. Click the Save button at the bottom of the form.

Once an ACL has been created you can edit it by clicking on its name in the list, changing the fields and clicking Save. Or your can delete it (if it is not in use by some proxy or ICP restriction) with the Delete button. As usual, the Apply Changes link must be used to activate any changes that you make.

Squid has an amazing number of ACL types, although not all are available in all versions of the server.

Many types of ACL are inappropriate for certain situations. For example, if a client sends a CONNECT request the URL path is unavailable, and thus a URL Path Regexp ACL will not work. In cases like this the ACL is automatically assumed not to match.

Article taken from - http://doxfer.com/Webmin/

Creating a scheduled backup in Webmin

Once you have performed a manual backup, you can schedule it to run on a regular basis as follows :

Click on the Scheduled backups tab.

Click the Add a new scheduled backup link, which will open the form shown below.

Select the modules whose config files you want to include from the Modules to backup list.

Enter a local or remote file destination in the Backup destination section.

If you want to be notified about the status of this backup, enter your email address in the Email result to address field.

In the Scheduled backup enabled? field select Yes, and choose the times and days for the backup to run from the Cron time selector below it.

Click the Create button.

Once a scheduled backup has been created, you can edit or remove it by clicking on the destination path in the table under the Scheduled backups tab.

Creating a super user with root rights.

Sudo is a program which can be used by normal users to execute programs as super user or any other user. Sudo access is controlled by /etc/sudoers. The users listed in /etc/sudoers file can execute commands with an effective user id of 0 and a group id of root’s group.

The file ‘/etc/sudoers’ should be edited with the editor “visudo”.

1. First, create a user called “admin1″

useradd admin1
passwd admin1

2. To give a specific group of users limited root privileges, edit the file with visudo as follows:

# visudo

3. Go down to the line ‘# User privilege specification‘ and add the following line.

admin1 ALL=(ALL) ALL

« Prev