Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-27-2016, 12:59 PM   #1
LQ Newbie
Registered: Feb 2016
Location: Colorado
Posts: 1

Rep: Reputation: Disabled
passwd file

How do I turn on colors for the passwd file when I am using vi? I have a couple of Linux systems and on some the passwd file is divided in colors in columns. On others systems the passwd file is in the terminal colors.

I want to know how to turn the colors on for passwd?
Old 08-27-2016, 01:29 PM   #2
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,706

Rep: Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270
Mine only turns on colors if I am editing read/write.

Otherwise it is monocrome.

The passwd file really shouldn't be edited by vi/vim.
Old 08-27-2016, 01:52 PM   #3
LQ Guru
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,101

Rep: Reputation: Disabled
That's why we have vipw and vigr.
2 members found this post helpful.
Old 08-27-2016, 02:56 PM   #4
Mitt Green
Registered: May 2014
Location: Europe
Posts: 199

Rep: Reputation: 106Reputation: 106
Turn the colours off!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Syncing shadow file with passwd file Issa1 Linux - Newbie 2 05-13-2012 08:12 PM
+:::::: in Passwd file noriko_q Linux - Security 1 03-12-2008 07:01 AM
/etc/passwd File Problem sobia Linux - General 3 02-20-2007 04:04 AM
question about /etc/passwd file hongxing Linux - Software 2 11-30-2005 10:47 AM
/etc/passwd file wedgeworth Linux - Software 1 10-09-2003 12:53 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration