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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
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
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,443
|
Could even be RCS, see man rcs, specifically rcs -u to unlock...
|
|
|
All times are GMT -5. The time now is 05:41 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
|
|