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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-14-2005, 06:50 AM
|
#1
|
|
LQ Newbie
Registered: Sep 2005
Posts: 3
Rep:
|
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.
|
|
|
|
09-14-2005, 06:54 AM
|
#2
|
|
ROCK Linux
Registered: Dec 2003
Location: Berlin, Germany
Distribution: Crystal ROCK
Posts: 108
Rep:
|
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.
|
|
|
|
09-14-2005, 06:59 AM
|
#3
|
|
LQ Newbie
Registered: Sep 2005
Posts: 3
Original Poster
Rep:
|
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!
|
|
|
|
09-14-2005, 07:02 AM
|
#4
|
|
ROCK Linux
Registered: Dec 2003
Location: Berlin, Germany
Distribution: Crystal ROCK
Posts: 108
Rep:
|
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?
|
|
|
|
09-14-2005, 07:04 AM
|
#5
|
|
LQ Newbie
Registered: Sep 2005
Posts: 3
Original Poster
Rep:
|
I'm afraid I do not have much Linux experience yet so I cannot say!!
|
|
|
|
09-14-2005, 07:12 AM
|
#6
|
|
ROCK Linux
Registered: Dec 2003
Location: Berlin, Germany
Distribution: Crystal ROCK
Posts: 108
Rep:
|
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 
|
|
|
|
09-14-2005, 09:08 PM
|
#7
|
|
Guru
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.4, Centos 5.9
Posts: 14,938
|
Could even be RCS, see man rcs, specifically rcs -u to unlock...
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:25 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|