Server and Network Monitoring with iPhone
February 25, 2010 – 6:53 pm | No Comment

What is a Unix sysadmin doing with an iPhone, you ask? It was a birthday present, if that’s all right with you. I know, I should have gotten something odd with a beta version of …

Read the full story »
Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands and Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Archive by Category

Articles in Users and Groups

Count users with “last”
November 19, 2005 – 11:15 pm | No Comment
Count users with “last”

last | awk ‘/bold/ {printf ("%s\t%s \t%s%s\n", $1,$3,$5,$6)}’ | uniq | grep -c Aug15

Move USER to new primary group
November 19, 2005 – 10:41 pm | No Comment

1. in old user’s home dir.

oldgroup=<oldgroup>
newgroup=<newgroup>
username=<username>
tar cvf – `find . -print` > backup.tar
mkdir /home/users/${newgroup}/${username}
mv backup.tar /home/users/${newgroup}/${username}/
cd /home/users/${newgroup}/${username}/
tar -xvf backup.tar
find . -group ${oldgroup} -exec chgrp ${newgroup}{} \;
find . -type l -group ${oldgroup} -exec chgrp -h ${newgroup}{} …