I've been copying old passwd/shadow/group files from system to system for ages across different distributions/updates and would like to get them back in sync with each other so the system tools will work. Now they hang like:
#userdel irose hangs forever, syslog says: Jul 12 11:19:32 newftp userdel[30335]: delete user `irose' Jul 12 11:19:32 newftp userdel[30335]: delete `irose' from group `ftp' Jul 12 11:20:02 newftp last message repeated 373404 times Jul 12 11:21:04 newftp last message repeated 646597 times Jul 12 11:21:06 newftp last message repeated 29123 times
Is there some kind of test/diagnostic tool I can use to clean up the parts that don't match anymore? Preferably one that doesn't hang forever when something is missing....
Had something similiar happen, if you take a look at your passwd/shadow/group files (which are likely .5 MB or more in size now) you'll see tons of junk and lots of commas... I think I ended up fixing this mostly via sed/grep and by hand... Can't remember what caused it though... Cheers, MaZe.
On Wed, 13 Jul 2005, Les Mikesell wrote:
I've been copying old passwd/shadow/group files from system to system for ages across different distributions/updates and would like to get them back in sync with each other so the system tools will work. Now they hang like:
#userdel irose hangs forever, syslog says: Jul 12 11:19:32 newftp userdel[30335]: delete user `irose' Jul 12 11:19:32 newftp userdel[30335]: delete `irose' from group `ftp' Jul 12 11:20:02 newftp last message repeated 373404 times Jul 12 11:21:04 newftp last message repeated 646597 times Jul 12 11:21:06 newftp last message repeated 29123 times
Is there some kind of test/diagnostic tool I can use to clean up the parts that don't match anymore? Preferably one that doesn't hang forever when something is missing....
On Wed, 2005-13-07 at 18:27 -0500, Les Mikesell wrote:
I've been copying old passwd/shadow/group files from system to system for ages across different distributions/updates and would like to get them back in sync with each other so the system tools will work. Now they hang like:
#userdel irose hangs forever, syslog says: Jul 12 11:19:32 newftp userdel[30335]: delete user `irose' Jul 12 11:19:32 newftp userdel[30335]: delete `irose' from group `ftp' Jul 12 11:20:02 newftp last message repeated 373404 times Jul 12 11:21:04 newftp last message repeated 646597 times Jul 12 11:21:06 newftp last message repeated 29123 times
I recall a message about something similar to this in the Fedora users lists, I believe. I think the person that reported it tracked it down to a bug in useradd etc.
Run a search in the Fedora list, and check out bugzilla.
HTH,
Ranbir
On Wed, 13 Jul 2005, Les Mikesell wrote:
I've been copying old passwd/shadow/group files from system to system for ages across different distributions/updates and would like to get them back in sync with each other so the system tools will work. Now they hang like:
Is there some kind of test/diagnostic tool I can use to clean up the parts that don't match anymore? Preferably one that doesn't hang forever when something is missing....
pwck ?
-- Russ Herrold
On Thu, 2005-07-14 at 15:03, R P Herrold wrote:
On Wed, 13 Jul 2005, Les Mikesell wrote:
I've been copying old passwd/shadow/group files from system to system for ages across different distributions/updates and would like to get them back in sync with each other so the system tools will work. Now they hang like:
Is there some kind of test/diagnostic tool I can use to clean up the parts that don't match anymore? Preferably one that doesn't hang forever when something is missing....
pwck ?
Good call! That and the corresponding grpck found a couple of duplicate lines that seemed to be confusing things.
pwck ?
Good call! That and the corresponding grpck found a couple of duplicate lines that seemed to be confusing things.
Lucky!... When this happened to me, pwck and grpck only succeeded in messing stuff up even more (each run of pwck increased passwd files size by around 50%)
Cheers, MaZe.