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
Leave a Comment » |
Linux, ubuntu |
Permalink
Posted by karthik
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.
Leave a Comment » |
Seapine, Surround SCM, TestTrack Pro |
Permalink
Posted by karthik
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.
Leave a Comment » |
Linux, ubuntu |
Permalink
Posted by karthik
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
- ls /proc/ide => will show the available hard disks currently on the system
- connect the new hard disk
- 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
- check if the drive is seen
- mount the partitions in the drive
- 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/
Leave a Comment » |
Linux, ubuntu |
Permalink
Posted by karthik