How to set password for file using vim in Linux/redhat?


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat How to set password for file using vim in Linux/redhat?
# 1  
Old 01-12-2013
RedHat How to set password for file using vim in Linux/redhat?

Hello All,

I have one query is "How to set the password for file using vi utility in linux.
Please reply to my queries. I am waiting for reply.
Thanks in advance.

Thanks.
Kuddus Shaikh
# 2  
Old 01-12-2013
Perhaps with:
Code:
vi -x file

Your question is otherwise vague.
This User Gave Thanks to Scott For This Post:
# 3  
Old 01-13-2013
It is working fine in my scenario. Also let me know how to unset password for file using vim.

Thanks in advance.
# 4  
Old 01-13-2013
# 5  
Old 01-15-2013
RedHat

Hi Scott,

Thanks for your reply.
I have successfully removed password from file using your given steps.
Once again thanks a lot.

Thanks
Kuddus Shaikh
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Vim remote without password

Hello, i would like to use vim to edit remote file like this : vim scp://user@host//path/file The problem is that i have to type the password every time i save the file (:w). That not only annoying, that make that process totally useless. How to process please ? Thanks ! (2 Replies)
Discussion started by: Purgator
2 Replies

2. Linux

Inode number changes for a file in Redhat Linux

Hi, I have created a file a.txt in Redhat Linux. Inode number for a file changes every time i update the file using vi editor , gedit etc. Is there any setting that can be made , such that inode number never changes as that is supposed to be the expected behavior? Or if we cannot... (13 Replies)
Discussion started by: srirammanohar
13 Replies

3. Red Hat

password change for user on Redhat 5.6

Hi expert, after creating users on Redhat, i wantn to change their password with something that easy to remember and the way we use. For example #passwd username hello$123 it don't allow me. It may has something to do /etc/pam.d/filesXXXX there which i don't know to change to allow root... (1 Reply)
Discussion started by: lamoul
1 Replies

4. Red Hat

Inode number changes for a file in Redhat Linux

Hi, I have created a file abc.log in Redhat Linux. Inode number for a file get changes every time i update the file using vi editor. Is there any setting that can be made , such that inode number never gets changed? Or if we cannot restrict from inode number getting changed , is... (9 Replies)
Discussion started by: raghu.amilineni
9 Replies

5. Solaris

Very Importan - Vim Settings - Error while opening a File using vim

I downloaded vim.7.2 and compiled the vim source . Added the vim binary path to PATH (Because iam not the root of the box) when i load the file using vim it throws me an error Error detected while processing /home2/e3003091/.vimrc: line 2: E185: Cannot find color scheme darkblue line... (0 Replies)
Discussion started by: girija
0 Replies

6. Emergency UNIX and Linux Support

[ASK] Redhat NTP Set up

Hi, I would like to set up NTP locally in my servers and client locally. I have no internet connection, what I want to do is all my servers synchronized to one server. lets say I have 5 servers, so 1 of this will be act as a master while the rest is client. I only want those clients to get the... (7 Replies)
Discussion started by: flekzout
7 Replies

7. Linux

linux/redhat ENT non expiring password

Hi All, Is this true on the command "chage"? Passing the number -1 as MAX_DAYS will remove checking a password on -M parameter. Thanks for any comment you may add. (1 Reply)
Discussion started by: itik
1 Replies

8. Solaris

need solaris /etc/default/fs equivalent file in redhat Linux

contents of /etc/default/fs file in solaris are @:/root !ksh less /etc/default/fs LOCAL=ufs i want to retrieve same LOCAL variable in redhat Linux... any1 knows path of corresponding file in Linux? (3 Replies)
Discussion started by: crackthehit007
3 Replies

9. UNIX for Dummies Questions & Answers

need solaris /etc/default/fs equivalent file in redhat Linux

contents of /etc/default/fs file in solaris are @:/root !ksh less /etc/default/fs LOCAL=ufs i want to retrieve same LOCAL variable in redhat Linux... any1 knows path of corresponding file in Linux? (0 Replies)
Discussion started by: crackthehit007
0 Replies

10. UNIX for Advanced & Expert Users

Force Password Change...RedHat 7.1

Hello, I just finished adding a bunch of new users to the linux servers I administer. I add users either via command line or via linuxconf, but I can't seem to find out how to force users to change their passwords on their first login to the system. Anyone know how to do that? My HP-UX... (1 Reply)
Discussion started by: vancouver_joe
1 Replies
Login or Register to Ask a Question