Go Back  IT Forums > Software > Configuration Management
User Name
Password
Reply
 
Thread Tools Search this Thread Display Modes

Permission denied when co or ci
  #1
Old 10-05-2006, 09:32 AM
Guest
Guest


Guest's Info
Posts: n/a
Default Permission denied when co or ci

Hi all,

This is my first post. Its glad to meet you all through this post.

In a typical RCS Setup

i (user1) added a file in RCS say hello.c using ci hello.c

when i checked out i got it (hello.c) as it is ( COOL ) co -l hello.c

Also I released the lock using co -u hello.c ( I am not sure this is
correct )

when another person say user2 tried to check out or check in using co
-l hello.c or ci -l hello.c

it says Permission denied.

Pls help me out ...

Regards
Prince

Reply With Quote
Permission denied when co or ci
  #2
Old 10-07-2006, 06:20 AM
Jonathan Leffler
Junior Member


Jonathan Leffler is offline
Jonathan Leffler's Info
Join Date: Oct 2003
Posts: 173
Default Permission denied when co or ci

princeofcode@gmail.com wrote:
Quote:
In a typical RCS Setup i (user1) added a file in RCS say hello.c using ci hello.c when i checked out i got it (hello.c) as it is ( COOL ) co -l hello.c Also I released the lock using co -u hello.c ( I am not sure this is correct )


It isn't; it simply checked the file out a second time without releasing
the other lock.
Quote:
when another person say user2 tried to check out or check in using co -l hello.c or ci -l hello.c it says Permission denied.


Releasing the lock requires either a check-in (which will be a no-op -
apart from releasing the lock and deleting the source - if you've not
changed the file), or 'rcs -u'.

--
Jonathan Leffler #include <disclaimer.h>
Email: jleffler@earthlink.net, jleffler@us.ibm.com
Guardian of DBD::Informix v2005.02 -- http://dbi.perl.org/
Reply With Quote
Permission denied when co or ci
  #3
Old 10-07-2006, 11:00 AM
Guest
Guest


Guest's Info
Posts: n/a
Default Permission denied when co or ci

Sorry I m not clear with your thoughts.

Can u pls elobrate me

Thx for your Response

Looking Forward
Prince
Jonathan Leffler wrote:
Quote:
princeofcode@gmail.com wrote:
Quote:
In a typical RCS Setup i (user1) added a file in RCS say hello.c using ci hello.c when i checked out i got it (hello.c) as it is ( COOL ) co -l hello.c Also I released the lock using co -u hello.c ( I am not sure this is correct )
It isn't; it simply checked the file out a second time without releasing the other lock.
Quote:
when another person say user2 tried to check out or check in using co -l hello.c or ci -l hello.c it says Permission denied.
Releasing the lock requires either a check-in (which will be a no-op - apart from releasing the lock and deleting the source - if you've not changed the file), or 'rcs -u'. -- Jonathan Leffler #include <disclaimer.h> Email: jleffler@earthlink.net, jleffler@us.ibm.com Guardian of DBD::Informix v2005.02 -- http://dbi.perl.org/


Reply With Quote
Permission denied when co or ci
  #4
Old 10-07-2006, 12:05 PM
Jonathan Leffler
Junior Member


Jonathan Leffler is offline
Jonathan Leffler's Info
Join Date: Oct 2003
Posts: 173
Default Permission denied when co or ci

princeofcode@gmail.com wrote:
Quote:
Sorry I m not clear with your thoughts. Can u pls elobrate me


I will try - there isn't much more to say, so mostly it will repeat what
was said before, albeit slightly differently since I didn't get the idea
across first time.

Quote:
Jonathan Leffler wrote:
Quote:
princeofcode@gmail.com wrote:
Quote:
In a typical RCS Setup i (user1) added a file in RCS say hello.c using ci hello.c when i checked out i got it (hello.c) as it is ( COOL ) co -l hello.c Also I released the lock using co -u hello.c ( I am not sure this is correct )
It isn't; it simply checked the file out a second time without releasing the other lock.


When you did 'co -u', you did not release the lock.
What you did was simply check out the file without locking it.
Quote:
when another person say user2 tried to check out or check in using co -l hello.c or ci -l hello.c it says Permission denied. Releasing the lock requires either a check-in (which will be a no-op - apart from releasing the lock and deleting the source - if you've not changed the file), or 'rcs -u'.


There are two ways of releasing the locks - one that intentionally
unlocks it, and one that does so mostly accidentally.

The intentional way is 'rcs -u' (and 'rcs -l' would lock the file if it
was currently unlocked). If you want to unlock the file, use this method.

The largely accidental way is a check-in where the file has not been
changed. RCS notes that there are no changes and simply unlocks the
file (and removes the previous version). You can override that with 'ci
-f' to force the check-in. Note that this is not a good idea if you
have changed the file but don't want those changes preserved.

Note that the co-worker cannot check the file out with a lock until you
release the lock. However, 'co -p' could be used to obtain a writable
file - but beware conflicting changes when the changes are finally
checked in.

If locking conflicts are a regular problem, consider using CVS (or
SubVersion) instead.

[Minor caveat: I'm ignoring separate locks on separate branches.]

--
Jonathan Leffler #include <disclaimer.h>
Email: jleffler@earthlink.net, jleffler@us.ibm.com
Guardian of DBD::Informix v2005.02 -- http://dbi.perl.org/
Reply With Quote
Permission denied when co or ci
  #5
Old 10-12-2006, 12:31 AM
Jorgen Grahn
Junior Member


Jorgen Grahn is offline
Jorgen Grahn's Info
Join Date: Nov 2005
Posts: 42
Default Permission denied when co or ci

On Sat, 07 Oct 2006 14:20:40 GMT, Jonathan Leffler <jleffler@earthlink.net> wrote:
Quote:
princeofcode@gmail.com wrote:
Quote:
In a typical RCS Setup i (user1) added a file in RCS say hello.c using ci hello.c when i checked out i got it (hello.c) as it is ( COOL ) co -l hello.c Also I released the lock using co -u hello.c ( I am not sure this is correct )
It isn't; it simply checked the file out a second time without releasing the other lock.

....
Quote:
Releasing the lock requires either a check-in (which will be a no-op - apart from releasing the lock and deleting the source - if you've not changed the file), or 'rcs -u'.


What version of RCS are we talking about? A simple test with RCS version
5.7 indicates that 'co -u foo' does indeed release the lock, if you have
one. (It also discards any changes, of course.)

/Jorgen

--
// Jorgen Grahn <grahn@ Ph'nglui mglw'nafh Cthulhu
\X/ snipabacken.dyndns.org> R'lyeh wgah'nagl fhtagn!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Style Design by vBStyles.com


Top Contact Us - IT Forums - Archive - MyLounge Top
MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service