LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 09-14-2005, 07:50 AM   #1
Dagk
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Rep: Reputation: 0
file locked by another user


Hi,

I need to edit our virtual table file. This file has been checked out by my colleague who has gone away on vacation leaving it checked out! When I try to check it out (co) it says that it is still locked by this user. I am able to login as su. How do I release the lock on this file so that it is not still locked by this user who is away? Thanks.
 
Old 09-14-2005, 07:54 AM   #2
blindcoder
ROCK Linux
 
Registered: Dec 2003
Location: Berlin, Germany
Distribution: Crystal ROCK
Posts: 108

Rep: Reputation: 15
that depends on how the lock is done. If it is done by "vim", then an "fuser -k .<filename>.swp" and "rm .<filename>.swp" should help, but this will kill all unsaved changes that other user has made.
 
Old 09-14-2005, 07:59 AM   #3
Dagk
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Normally when we edit files we:

co (check out)

vi (edit)

ci (check in)

I will need to save any changes that the user has done. Before he went I'm sure he told me of an easy way to free a locked file whilst logged in as su......but I can't remember!
 
Old 09-14-2005, 08:02 AM   #4
blindcoder
ROCK Linux
 
Registered: Dec 2003
Location: Berlin, Germany
Distribution: Crystal ROCK
Posts: 108

Rep: Reputation: 15
there is no easy way to remove a lock but the way it was intended to. All the others are ugly.

Of what kind are those co and ci commands? Subversion? CVS? Any other versioning system?
 
Old 09-14-2005, 08:04 AM   #5
Dagk
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Original Poster
Rep: Reputation: 0
I'm afraid I do not have much Linux experience yet so I cannot say!!
 
Old 09-14-2005, 08:12 AM   #6
blindcoder
ROCK Linux
 
Registered: Dec 2003
Location: Berlin, Germany
Distribution: Crystal ROCK
Posts: 108

Rep: Reputation: 15
well, sorry, if it's not the vi that does the locking as explained above and you can't tell me about co and ci I can't help you
 
Old 09-14-2005, 10:08 PM   #7
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Could even be RCS, see man rcs, specifically rcs -u to unlock...
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Live CD with user locked down Waggs Slackware 1 09-22-2005 07:17 PM
Trying to copy a user folder from ntfs hd that is locked. bluedevlx Linux - Security 1 05-18-2005 03:28 PM
File owner and File group locked - root deiphage Linux - Hardware 5 02-05-2005 02:30 PM
SuSE 9.1 'Switch User' when screensaver is locked Cichlasoma Linux - Distributions 1 07-20-2004 08:49 AM
New Linux User: locked out of KDE! avaris15 Linux - General 12 12-21-2003 01:58 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration