Gadget Review: D-Link DNS-321 NAS
August 1, 2010 – 10:51 am | No Comment

The D-Link DNS-321 is among the least expensive dual-disk RAID NAS systems currently on the market. This small device offers an impressive array of features such as FTP, Samba, NFS, iTunes, DHCP, HTTP and UPnP …

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}{} …