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

Move USER to new primary group

Submitted by on November 19, 2005 – 10:41 pm One Comment

A sample process for moving a user to a new primary home group on Solaris.

1. in old user’s home dir.

oldgroup=
newgroup=
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
Print Friendly, PDF & Email

One Comment »

  • Squall Leonhart says:

    I have been Driving for almost 47 years of my life and hold a class A drivers license and In the past ten years in my state they have added bicycle lanes to our streets and here of late it seems that people who ride bikes or walk along the highway have no concern for their safety when crossing the street. Just the other day a man walked out in front of four lanes of traffic I was in the far left lane of this one way street and other large cars were to the right of me. All of a sudden the car just in front of me doing 45 miles per hour (Speed Limit is 50 mph) slammed on his brakes then in the next lane the next car did the same thing and finally I had to do the same as a idiot walked threw traffic at no cross walk not looking up or around to see if traffic was coming or not. If I had not slammed on the brakes I would of hit him as it were I was just a few inches from him as he walked by all the cars were honking their horns at this guy and scared the crap out of me. He did not look up even at me even as close as I came to hitting him. Now I don’t understand this type of behavior he was a young kid in his teens with a hood on his head. The next thing Is people walking into the street not paying attention to traffic lights or obeying traffic signs. I was driving down the street when a kid was going the wrong way with parked cars on the side of the road blocking my view of this bicyclist who came flying into my lane at a stop light I had the right of way and was going below the speed limit. He darted right out in front of me hands off his steering wheel and I almost hit min because he ran the red light and I could not see him and if I had been looking the Other way I would of killed him because of the size of my truck. My question is Are not kids taught safety riding their bike’s anymore? are they not taught pedestrian safety anymore in schools? or parents not teaching them? And this year alone we have had ten by-cyclist killed involved in car truck related crashes. If they don’t obey the law in some cases it’s almost impossible to avoid hitting someone on a bike. Last year three cyclist were killed as they were riding side by side in a group and all of them were killed running a red light and a semi truck hit them. Can anyone tell me what is happening to our young people don’t they know a car at an average weight of 3500 pounds traveling at 35 MPH will kill them before they can stop? And it seems the more bicycle lanes they add the worse it gets. Is it time to issue license’s to those who ride bikes to prove they know the laws of the road for their and my safety? what is happening with youth today are they not teaching common since and safety in schools?

Leave a Reply

%d bloggers like this: