Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd May 2009, 17:51
stefki stefki is offline
Junior Member
 
Join Date: Sep 2008
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to limit editing of file in same time?

Hi i have debian etch installed on my system and i have file in /var/etc file name ste.cfg and i have one user root but my friends used it and me to. We manage the server
While I edit the file ste.cfg on a linux platform how do I stop other users with a different IP from editing the same file at the same time?
Reply With Quote
Sponsored Links
  #2  
Old 3rd May 2009, 17:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Other users should get a warning if they try to edit the file while you're doing the same (at least if you and your friends are using vi). But they can decide to ignore the warning. Best thing is to instruct your friends to abort if they see such a warning.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 3rd May 2009, 22:30
stefki stefki is offline
Junior Member
 
Join Date: Sep 2008
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes i know, but is possible when i m` logged at root if any others friends try to login like root in sime time to be rejected ?
Reply With Quote
  #4  
Old 4th May 2009, 11:35
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
 
Default

I don't think so, but I'm not sure.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
drbd error -115 anandx Installation/Configuration 15 26th April 2009 19:16
Why do I get some errors during the reinstallation ? arastirici General 7 15th April 2009 16:50
directories in /home/admispconfig/ispconfig renamed? Spudchat General 10 12th April 2007 19:37
spamassasin/clamAV not working Daisy Installation/Configuration 32 15th February 2007 00:09
setup fails on debian 3.1 dtrumbower Installation/Configuration 7 7th March 2006 13:42


All times are GMT +2. The time now is 20:51.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.