linux users, groups

July 25, 2006

utilities/commands:

$useradd
$userdel
$usermod

more user-friendly – adduser, deluser

——————————————–
list of usernames of users currently logged in
$users

show who is logged on, with info
$who

show who and what they are doing
$w

your user id, the user currently logged in, in this session
$whoami

list of all users in the system
- is in the file /etc/passwd
to list just the user names use
$awk -F: '{print $1}' /etc/passwd

——————————————–
print user identity and ids of all groups the user belongs to
$id

prints the groups a user is a member of
$groups

——————————————–

password management
$passwd
super user can use the same command to set passwords and other options for other users
especially useful with the -e option that sets the password to expire immediately, forcing the user to change password the next time they login
$passwd -e


Seapine License Server fails to start on Ubuntu Linux (Dapper 6.06) with error…

July 17, 2006

I am using Seaping SCM and TestTrackPro on Ubuntu Linux server.

On upgrading ubuntu to the latest version Dapper (6.06 LTS) the license server failed to start with the following error

/usr/bin/splicsvr: error while loading shared libraries: libcrypto.so.0: cannot
open shared object file: No such file or directory  [ OK ]

I am not an expert on linux and couldnt find anything specific to this on the web. Affter looking at different posts about missing libraries tried creating a symbolic link libcrypto.so.0 to the existing libcrypt—-.so and this worked.


Seapine TestTrack Pro, SurroundSCM

July 17, 2006

I use TestTrack Pro and Surround SCM, good software for cross platform/web based bug tracking and cross platform source control.

Links to articles regarding TestTrackPro and Surround SCM that I refer to

Linux Distribution Support

Configuring the Surround SCM Server Database Location

Moving Surround SCM Databases

Backing Up Surround SCM

Backing Up TestTrack Pro Databases

TestTrack Pro Unix Default Directories, Commands, and Configuration Files

TestTrack Pro Server Does Not Start at Boot Time on Linux or Solaris


linux man

July 17, 2006

you want to know something use man.

http://www.comptechdoc.org/os/linux/usersguide/linux_ughelp.html

man -k <keyword> => used to search for keyword
apropos <keyword> => same as man -k

Once the man page is opened navigating through the displayed man page is based on the less command, press ‘h’ to find out the shortcut keys that can be used.


Linux (Ubuntu) hard disks, partitions

July 16, 2006

[2008-08-24]
Depending on what drivers are used even IDE hard disks are displayed as sda, etc. Use the following to see the names of the hard disks

$ ls /dev|grep '[s|h]d[a-z]'

[from http://linuxplanet.com/linuxplanet/tutorials/6472/1/]

==========

There are lots of excellent complete articles by experts on the web – which can be found by doing a search with terms like – linux hard drive install partition

Basic steps

  1. ls /proc/ide => will show the available hard disks currently on the system
  2. connect the new hard disk
  3. its important to know where and how its connected (IDE primary, secondary, master, slave, etc), knowing this will let you know how to locate the file used to indicate your new hard disk
    • IDE disks
      • hda – Master on primary interface on 1st IDE controller
      • hdb – Slave on primary interface on 1st IDE controller
      • hdc – Master on secondar interface on 1st IDE controller
      • hdd -Slave on secondary interface on 1st IDE controller
  4. check if the drive is seen
  5. mount the partitions in the drive
  6. Access the contents

In Linux all devices are mounted as folders. Folders /dev and /proc are some of the key folders.

# ls /dev/hd* => will list the disk names in the system

# ls /proc/ide – can be used to see the list of ide drives available to the system

ide    ide exists on systems with the ide bus.  There  are  directories
	      for each ide channel and attached device.	 Files include:

cache		 buffer size in KB
	      capacity		 number of sectors
	      driver		 driver version
	      geometry		 physical and logical geometry
	      identify		 in hexidecimal
	      media		 media type
	      model		 manufacturer's model number
	      settings		 drive settings
	      smart_thresholds	 in hexidecimal
	      smart_values	 in hexidecimal

The  hdparm(8)  utility provides access to this information in a
	      friendly format.

tools, utilities:

  • fdisk  – partition management
    • #fdisk -l  /dev/hda    =>lists the partitions on first disk
  • df – file system disk free space
  • du – disk usage

One of the links that I used was http://www.linuxplanet.com/linuxplanet/tutorials/4232/1/