LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-07-2011, 12:42 PM   #1
armandino
Member
 
Registered: Oct 2005
Posts: 72

Rep: Reputation: 15
Debian - /etc/passwd, vim, vipw


I know that the vipw command, as man pages say, "edits the password file after setting the appropriate locks".

I tried opening two terminals and issuing "vipw" on both. The first time I got in the passwd file as expected, the second time I got an error message, as expected.

I then issued "vipw" in one terminal and "vim /etc/passwd" in the other. The first time I got in the passwd file as expected, the second time I... also entered the passwd file and was able to edit and also to save it!

Am I missing something or those locks are not so "appropriate"?
 
Old 02-07-2011, 01:16 PM   #2
mavenjinx
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Rep: Reputation: 0
Not sure but i think the Default editor is allowed to edit the file by bypassing the locks but i may be wrong

and i think in your case vi is the default editor

Last edited by mavenjinx; 02-07-2011 at 01:17 PM.
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 05:26 PM
addinf users-vipw ub007 Linux - Newbie 1 10-25-2008 02:45 AM
vipw command and problem with temp files vm_devadas Linux - Server 0 03-15-2007 08:05 AM
vipw-vigr-problem morfeo99 Linux - Newbie 0 10-08-2003 02:58 PM
Can't add users... vipw lockfile? jordan0 Linux - Newbie 1 09-29-2003 04:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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