Thursday, April 28, 2011

User Management

Making a user account can use two different commands, namely

useradd and adduser. Here's an explanation of each command making

user:


useradd

Making a user account with useradd has its own rules about

how to add the uid, group, home directory, etc..

debian: ~ # useradd-u 510-d / home / tri-g test-s / bin / csh exercise

ket:
-u / uid = 510
-d / home / tri = / directory tri
group = test-g
-s / shell = / bin / csh
exercise = user

$ passwd exercise

adduser: adduser command usage is not much different from the command useradd.

To see what options are needed, use the following command
.

Example:
The authors want to create a new user account with the name latihan1, with

following provisions:

Having a home directory with the name `/ home / tri`

Being in the group `test`

Debian user UID 505

Using the shell `bash`

Using the password `exercise`

Solution:


first - first, the author will prepare the group with gid 503 and group tests

root@tri-laptop:/# groupadd -g 503 -r tes
root@tri-laptop:/# cat /etc/group

tri:x:1000:
sambashare:x:122:tri
winbindd_priv:x:123:
mysql:x:124:
bind:x:125:
tes:x:503:

then consider making exercise1 user under test group:

$ sudo adduser - home / home / tri - shell / bin / bash - uid 503 latihan1
$ sudo user group
ex:
$ sudo adduser test exercise1

Warning: The home dir / home / tri / you specified already exists.

Adding user `exercise1 '...

Adding new user `exercise1 '(505) with group` test' ...

The home directory `/ home / adi / 'already exists. Not copying from `/ etc / skel '.

adduser: Warning: The home directory `/ home / tri / 'does not belong to the user you are currently creating.

Enter new UNIX password:

Retype new UNIX password:

passwd: password updated successfully

Changing the user information for exercise1

Enter the new value, or press ENTER for the default

Full Name []:

Room Number []:

Work Phone []:

Home Phone []:

Other []:

Is the information correct? [Y / n] y


see the results that have been created using the command:

$ more / etc / group

mysql:x:124:
bind:x:125:
tes:x:503:exercise1
exercise1:x:501:
root@tri-laptop:/#

Implementasi User dan Group
Read More..

Management group with the Command Line

Adding Group Accounts
Making group determines access rights settings file or directory
can be used by each user in one group. The addition of group in
system Debian GNU / Linux can use the following command:
debian: ~ # groupadd-g value namagroup
Note:
• -G: group ID
• value: The value of group ID
• namagroup: loaded with an existing group name to create.

For example:
You want to create a group with linuxer name, then the command
used are:
debian: ~ # groupadd-g 500 linuxer

Deleting Group Account
Elimination of group accounts on a GNU / Linux can use
following command:
debian: ~ # groupdel namagroup
For example:
The author will delete the group account linuxer contained in the system
Debian GNU / Linux, the command used is:
debian: ~ # groupdel linuxer
Read More..

Introduction to Linux

Linux1 is a UNIX-based operating system that can run on a wide range hardware such as Intel x86, Alpha, PowerPC even. UNIX-based because it is said Linux is developed according to standard UNIX and capabilities possessed the same with UNIX. This means that Linux has the ability both as a server or workstation like UNIX.
At first run only on Intel x86 platforms, including AMD and Cyrix other. But along with growing number of Linux users and the Linux developers will now have to walk well on a Macintosh (Motorola), Sun Sparc, DEC Alpha, Amiga, StrongARM and much more. The development of Linux is supported by the license used by Linux is GNU2 General Public License (GNU GPL). In brief, the GNU General Public License allows an application (including the operating system) to freely use and distributed where the user / recipient of the software are entitled to receive the code origin (source code) 3 of the application along with all the rights allowed by the original author.
Applications can be modified and used in other applications where a license from application changes / new equipment on the GNU GPL. The original author is only responsible for original code and not responsible for the implications of the changes made to application. Dissemination of applications that have been modified still include the original author, native code, the code changes that were added and responsible for the changes. With the GPL does not mean not allow for commercial, at least cost to drawn from the distribution medium coffee costs. Services such as technical support to is a commercial product.

Why Use Linux?

* No high-cost Linux is not without embracing the principle of legality. Many Linux distributions that allow its users to replicate without the need pay a license.
* With facilities owned by Linux, then Linux is an alternative operating system
that should be seen and taken into account in addition to other operating systems such as DOS, Windows95, Windows NT, UNIX, SunOS, or Macintosh.
* For users of UNIX, Linux can be used as a personal UNIX means of programming including database programming XWindow.4
* For students, Linux is a tool that can be used to study UNIX environment as prior knowledge that can facilitate the adaptation to the system used by these large-scale enterprise. In addition with the availability of source, they can conduct experiments and review any in practicum.
* For small and medium scale enterprise, Linux can save investment costs UNIX with capabilities similar to other operating systems that already exist that the price is relatively expensive. Desktop and office applications that can be utilized fully as an alternative (if not virtually a substitute) from the operating system that often exposed to the virus.
* With the GNU GPL Linux offers a class UNIX operating system at a cost of relatively cheap. Especially for companies with small capital Linux gives wind fresh to the required software investment.
Read More..