iPhone 3GS OS4 Upgrade
September 4, 2010 – 5:23 pm | One Comment

iTunes for Windows must be one of the buggiest, most poorly written applications out there. In terms of wasted months of your life it definitely ranks up there with Lotus Notes and Media Player 12. I don’t know how well iTunes works on a Mac (I like computer mice with twenty buttons, so I never was a big Mac fan), but I think I read somewhere that iTunes for Windows is the leading cause of suicides among iPhone owners.

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 » Users and Groups

Move USER to new primary group

Submitted by admin on November 19, 2005 – 10:41 pmNo 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}{} \;
rm backup.tar

2. in /var/yp/maps on NIS master server

cp -p passwd bkups/passwd.DATE
vi passwd
update the primary group entry for USER
(don't forget to change the GID on the same line)
cd ..
make

Popularity: 5% [?]

Related posts

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.