Archive for the tag 'Adding'

Adding new User buddy to the wheel group

The wheel group is a group which limits the number of people who are able to su to root. This usually consists of a group named “wheel” and a set of users that are permitted to use the utility ’su’ in order to change to root.

Many systems, especially either commercial systems or Linux systems, come without wheel groups configured and implemented. At least one Linux distribution, comes with wheel groups preconfigured but not active. However, all or nearly all BSD based systems will come with the wheel group installed and set up.

Adding new user “buddy” to the wheel group in order to allow it to gain root access, with *NO* root privileges. That means that this user will be able to log into the server, but won’t be able to perform any root tasks until the user switches to the root user.

Once you are in SSH, you have to type the below command, the user buddy should already exist.

#/usr/sbin/usermod –G wheel buddy

Before proceeding, re-login to your server using the “buddy” account. At the SSH prompt, type “su” followed by the Enter key, and then enter in the root password. If you were successful, you should be at a root prompt:

To confirm that you are root, at the SSH prompt type the command whoami , which should display your root account.

Adding reverse IP Lookup in DirectAdmin

Any modern verion of DA will be able to do this through the interface.

Go to: Admin Level -> DNS Administration

Scroll to the bottom to the “Add Zone” section.

Enter your information normally:

domain name: server.hostname.com
ip: 1.2.3.4
ns1: ns1.hostname.com
ns2: ns2.hostname.com

where server.hostname.com is the hostname of your server. The IP is your server IP (license IP)
and ns1/ns2 can be any NS your server uses.

Click the “Create Reverse IP Lookup” checkbox, then click “Add”.

Reference link: http://directadmin.com

To view the IP addresses you have at your disposal:

Go to Home > IP Addresses (in the Server group).

To add a new IP address to the server:

Go to Home > IP Addresses (in the Server group) and click Add IP Address.

To remove an IP address from the server:

Go to Home > IP Addresses (in the Server group).
Select the respective check box and click Remove, confirm removal and click OK.

To assign an IP address to a user:

Go to Home > IP Addresses (in the Server group) and click the respective number in the Clients column, then click Assign.
Select the user account you need and click OK.

Select the network interface for the new IP from the Interface drop-down box. All network cards installed on your server are shown in this drop-down box.

To change an IP address allocation type (shared, exclusive) or assign another SSL certificate to an IP address:

Go to Home > IP Addresses (in the Server group) and click the IP address you need.
Select the IP address allocation type and SSL certificate you need, and click OK.

When you obtain a new IP address that you would like to use on the server, you should add the address through the control panel, as Parallels Plesk Panel might not recognize manual modifications you make to the network configuration files.

With Parallels Plesk Panel you can mark all your IP addresses as shared or dedicated before you assign them to your customers. This allows the control panel to distinguish between them and not to let you assign a dedicated IP address to several customers at once. A dedicated IP address can be assigned to a single customer, while a shared IP address can be shared among several user accounts.

Adding Physical Volumes to a Volume Group

To add additional physical volumes to an existing volume group, use the vgextend command. The vgextend command increases a volume group’s capacity by adding one or more free physical volumes.

The following command adds the physical volume /dev/sdf1 to the volume group vg1

vgextend vg1 /dev/sdf1

DESCRIPTION

vgextend allows you to add one or more initialized physical volumes ( see pvcreate(8) ) to an existing volume group to extend it in size.

Examples

“vgextend vg00 /dev/sda4 /dev/sdn1″ tries to extend the existing volume group “vg00″ by the new physical volumes (see pvcreate(8) ) “/dev/sdn1″ and /dev/sda4″.

SBDavid

Adding user/group in a FreeBSD server

Adding user/group in a FreeBSD server

How do I add a user and group to the FreeBSD Server?:

The ‘pw’ command can be used to add a user and or group to the FreeBSD System. The ‘pw’ command is a program that will allow any user with superuser privileges to edit and or add users and groups on FreeBSD with ease. It also allows a way to standardize modification of adding and removing users and groups.

pw groupadd anewgroup

This would create the group ‘anewgroup’ to the machine.

Now to add a users ‘ben’ to the ‘anewgroup’ using pw, issue the following command.

pw useradd ben -s /bin/csh -g anewgroup

This command would create the user ben, with a shell of /bin/csh and add it to the anewgroup group. The user would also have his home directory under /home/ben.

Now say, if the user needs to have the home directory on a different partition, for example /mnt/test/home issue the following command.

pw useradd ben -d /mnt/test/home/ben -s /bin/csh/ -g anewgroup

If the user ‘ben’ is to be added to a secondary group on the system, say a group that has been created already called ‘oldgroup’, then execute the following.

pw usermod ben -G oldgroup

Next »