Tech Blog - Here is a short how to on fixing "ERROR: Inconsistent password files" when adding or modifying user account on Ubuntu Linux or Unix operating systems, usually the cost of this error are there are some error entries or on the passwd line such as missing GID or other credentials.Attempt to add user get the error below
$ useradd ironman
UX: useradd: ERROR: Inconsistent password files. See pwconv(1M).
So we try running pwconv as suggested, the pwconv command alert us that there is a problem on line 172 to line 175 of the passwd file
$ pwconv
pwconv: ERROR: bad entry or blank line at line 172 in /etc/passwd
pwconv: ERROR: bad entry or blank line at line 173 in /etc/passwd
pwconv: ERROR: bad entry or blank line at line 174 in /etc/passwd
pwconv: ERROR: bad entry or blank line at line 175 in /etc/passwd
We go cd to /etc then backup passwd befor we edit passwd
$ cd /etc $ cp passwd passwd.20090910
Now that we have a backup incase something goes wrong do vi passwd, and go to the lines above and see if there are incomplete entries on thos lines, sometimes its is just a blank line with space, you will need to delete the lines.
Tech Blog Quick List of howto's:
- Tech Blog easy 10 Steps | Remove Virus | Spyware Scanner Download | Free Software
- Tech Blog easy Network troubleshooting | DNS Problem Guide
- Howto change DNS Server IP to OpenDNS
- Tech Blog Howto Fix | COM Surrogate Error | Windows Vista
- 9 Easy Steps | Setting up a secured home wireless network
- Tech Blog Howto Permanently deleting files | data on your hard disk
- Tech Blog Howto Do Full filesystem backup | ufsdump - For *nix
- Tech Blog Fix Slow HD | 1080p Playback | troubleshooting | Fix
- Sendmail | Banner change | Disabling VRFY | EXPN
- iPod charging on DVD player w/o dock
- Apple Ipod Jailbreak - 1.1.4 firmware guide and Quickpwn
- Optimize Windows XP | VIsta
- Tech Blog Howto Hard Disk Recovery | Data Recovery | Test Disk
- Import Outlook PST to Gmail Howto
- Tech Blog Howto Bypass Firewall | Proxy with SSH | Hamachi
- Permanently deleting files | data on your hard disk
- Tech Blog Tutorial Hamachi VPN a quick guide
- Tech Blog Special Build your own IDS or IPS
- Download Video from YouTube to your computer
- Tech Blog Howto Do Bandwidth Monitoring | Free software
- Ubuntu Linux | Multiple IP | IP Aliasing | Howto
- Tech Blog Howto jailbreak iPhone and Ipod touch 2.2 Firmware
- Nokia N96 GPS and Google Earth on your PC
- Sharing folder with Windows on Ubuntu using Samba
- Tech Blog Fix for EMC PowerPath - Removal Error
- Tech Blog Easy Crontab Howto
- Software Raid | Raid Arrays | mdadm on Linux
- Tech Blog - Installing Damn Small Linux To Hard Disk
- Damn Small Linux Auto-start Howto
- Check Veritas Licenses - Tech Howto
- XSCF Command - Console Tech Howto
- Reboot and Shutdown Linux | Ubuntu Howto
- Using Find Command | Ubuntu Howto tech blog
- Howto Create Restore Point on Windows Vista
0 comments:
Post a Comment