|
From: | David E. Nelson |
Subject: | Editing fields in /etc/passwd |
Date: | Wed, 27 Jul 2005 12:08:53 -0500 (CDT) |
Hi All,Looking through 'editfiles', I'm not seeing an easy way to edit a single field in /etc/passwd - I need to change the primary group for one account. I can't just replace the entire line since the Gecos and home dir aren't consistent across systems. Any ideas?
It'd be nice if there was an edit command that used a sed-like syntax that allowed backreferences.
Thanks, /\/elson -- ~~ ** ~~ 4 out of 3 people have problems with fractions ~~ ** ~~
[Prev in Thread] | Current Thread | [Next in Thread] |