Vim does not do encryption no more on RHEL5?

Binyon Steve Contr 705 CTS/ASRCC Steve.Binyon at
Fri Oct 12 13:27:23 UTC 2007

 Thanks for the reply.  After sending that e-mail, I kept looking. What
I noticed was there are two vi binaries, /bin/vi and /usr/bin/vim.  As a
regular user, 'vi' is aliased to /usr/bin/vim, which does support the -x
flag.  As root, it gets /bin/vi - which does not support the -x flag.
Note that when one does a /bin/vi -h it is vim and the same version as
/usr/bin/vim, but cut down to size.
Thanks again.


-----Original Message-----
From: redhat-list-bounces at
[mailto:redhat-list-bounces at] On Behalf Of George Magklaras
Sent: Friday, October 12, 2007 2:15 AM
To: General Red Hat Linux discussion list
Subject: Re: Vim does not do encryption no more on RHEL5?

That's a bit weird. I just checked and vim -x works on my RHEL 5 box. 
Also vim -h displays the -x option.  Are you sure you are not using some
other version of vim compiled locally in your system outside the RHEL
distro and overriding your path? In my box:

# type vim
vim is hashed (/usr/bin/vim)
# ldd /usr/bin/vim => /lib64/ (0x00000033cde00000) => /lib64/ (0x00000033d0600000) => /lib64/ (0x00000033d4800000) => /usr/lib64/ (0x00000033cae00000) =>
(0x00000033cb200000) => /lib64/ (0x00000033d1e00000) => /lib64/ (0x00000033d8a00000) => /lib64/ (0x00000033c9e00000) => /lib64/ (0x00000033ca200000) => /lib64/ (0x00000033ca600000) => /lib64/ (0x00000033caa00000) => /lib64/ (0x00000033d0200000)
         /lib64/ (0x00000033c9a00000) => /lib64/ (0x00000033d3e00000) => /lib64/ (0x00000033d2200000) => /lib64/ (0x00000033dca00000)

Libcrypt is at the bottom. Can you check your vim path?


George Magklaras

Senior Computer Systems Engineer/UNIX Systems Administrator EMBnet
Technical Management Board The Biotechnology Centre of Oslo, University
of Oslo

EMBnet Norway:

Binyon Steve Contr 705 CTS/ASRCC wrote:
> We are evaluating RHEL 5 and found this:
> Under RHEL 3 and 4, one could do 'vi -x' to have the file password 
> protected and encrypted.  Under RHEL 5, this appears to be no longer 
> true.  So, what is used under RHEL 5 that replaces this functionality?
> Btw the man page states that its still valid, but vim -h does not show

> the -x flag.
> Thanks in advance.
> ~smbinyon

redhat-list mailing list
unsubscribe mailto:redhat-list-request at

More information about the redhat-list mailing list