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 & Shells

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

Home » Commands & Shells

Linux User Activity Management

Submitted by on March 9, 2008 – 2:59 pm One Comment

The following is a detailed look into managing Linux users and the system resources they utilize. Disabling user access; halting, killing, and re-nicing user processes; controlling disk space allocation are all points covered by this article.

Halting, Resuming, and Killing users

Before taking any of the actions below, you may want to notify the user:

write alex pts/67 << EOF

Alex, buddy, I need to kill you.

EOF

Stop a user and his processes:
skill -STOP -u alex

Resume a halted user:
skill -CONT -u alex

Kill and log out a user:
skill -KILL -u alex

Kill and log out all users:
skill -KILL -v /dev/pts/*

 

Print Friendly, PDF & Email

One Comment »

Leave a Reply

%d bloggers like this: