RE: cvs pserver problem and xinetd. connection refused

2005-01-18 Thread Guus Leeuw jr.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:info-cvs-
> [EMAIL PROTECTED] On Behalf Of
> [EMAIL PROTECTED]
> Sent: mardi 18 janvier 2005 23:19

[snip]

> 3. added following line to the /etc/xinetd.conf file so xinetd listens to
> port
> 2401 and knows to run command cvs pserver when it receives a connection:
> 
> {
> port= 2401
> socket_type = stream
> protocol= tcp
> user= root
> wait= no
> type= UNLISTED
> server  = /usr/bin/cvs
> server_args = -f --allow-root=/cvs pserver
> disable = no
> }

[snip]

> Lastly, I've looked at the /var/log/messages file and do not see
> anything of use to me in this matter. There is absolutely nothing in
> this file about cvspserver or pserver. The only thing I see is the
> following when xinetd is restarted:
> 
> Jan 19 15:05:01 emobilebugzilla xinetd[8501]: missing service keyword
> [line=21]
> 
> If anyone has any sort of clue as to why this is happening please let
> me know. Most importantly, if someone knows how to fix it I will be
> extremely grateful. Thank you for your time.

Moah yes... According to 3. above there is no service given for the block...
So, that's the reason why xinetd complains.

Some other comments:
1) You generally don’t need to include the service config in xinetd.conf,
but rather in its own file in /etc/xinetd.d/ (as you seem to do *also*)
2) You should not need the port assignment in your config... Given the
proper service directive and name, xinetd should be able to figure the port
number through nsswitch and friends.

Guus


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.13 - Release Date: 16/01/2005
 



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.13 - Release Date: 16/01/2005



___
Info-cvs mailing list
Info-cvs@gnu.org
http://lists.gnu.org/mailman/listinfo/info-cvs


cvs pserver problem and xinetd. connection refused

2005-01-18 Thread matthias
Hey guys,

these are the steps I've taken so far to run pserser in cvs 1.11.18 (redhat 9);
however, I always get the message:
"cvs [login aborted]: connect to ##address##(##address##):2401 failed:
Connection refused"

1. created $CVSROOT and exported it. repository is set to /cvs
2. initialized the repository with init
3. added following line to the /etc/xinetd.conf file so xinetd listens to port
2401 and knows to run command cvs pserver when it receives a connection:

{
port= 2401
socket_type = stream
protocol= tcp
user= root
wait= no
type= UNLISTED
server  = /usr/bin/cvs
server_args = -f --allow-root=/cvs pserver
disable = no
}

4. made sure /etc/services has the symbolic service name like below

cvspserver 2401/tcp
cvspserver 2401/udp

5. created file /etc/xinetd.d/cvspserver containing the following service
cvspserver

{
port= 2401
socket_type = stream
protocol= tcp
wait= no
user= root
env = HOME=/cvs
server  = /usr/bin/cvs
server_args = -f --allow-root=/cvs pserver
disable = no
}

6. restart xinetd
7. created file $CVSROOT/CVSROOT/passwd with username:password in its
own line for every user.

When I run the following command "netstat -anp", I don't see "cvspserver"
running on 2401, there is nothing running on that port!

Lastly, I've looked at the /var/log/messages file and do not see
anything of use to me in this matter. There is absolutely nothing in
this file about cvspserver or pserver. The only thing I see is the
following when xinetd is restarted:

Jan 19 15:05:01 emobilebugzilla xinetd[8501]: missing service keyword [line=21]

If anyone has any sort of clue as to why this is happening please let
me know. Most importantly, if someone knows how to fix it I will be
extremely grateful. Thank you for your time.


___
Info-cvs mailing list
Info-cvs@gnu.org
http://lists.gnu.org/mailman/listinfo/info-cvs


Re: pserver problem, still

2002-09-19 Thread Mike Ayers

James P. Schmidt wrote:

>>cvs -d :pserver:zaren@(host):/usr/local/cvsrepos login
> 
> CVS password:
> cvs login: authorization failed: server (host) rejected access to
> /usr/local/cvsrepos for user zaren

$ ls -ld /usr/local/cvsrepos

It should be at least 755.  If it is, then check permissions 
throughout the directory.  The error message seems to indicate that 
your problem is permissioning.


/|/|ike




___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



RE: pserver problem, still

2002-09-19 Thread Patrick Nelson

James P. Schmidt wrote:
-
*ding ding ding* We have a winner! :D  I just had passwd in
/usr/local/cvsrepos.  Thanks :)  And thanks to Larry for all his help,
too; you helped solve a few other config mistakes along the way. :)
-

Love it when something works!!!


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



RE: pserver problem, still

2002-09-19 Thread James P. Schmidt

> Make sure the passwd file is in $CVSROOT/CVSROOT subdir.  That's CVSROOT
> under your cvsroot subdir, which looks like it would be:
>
> /usr/local/cvsrepos/CVSROOT/passwd

*ding ding ding* We have a winner! :D  I just had passwd in
/usr/local/cvsrepos.  Thanks :)  And thanks to Larry for all his help,
too; you helped solve a few other config mistakes along the way. :)

  "It's the information age --+---+
   everything gets saved  |UCE/UBE not welcome at this address|
   except for the human soul."|see http://tinyurl.com/jhb for info|
Rev. Matthew Carey, Vision Temple +---+




___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



RE: pserver problem, still

2002-09-19 Thread Patrick Nelson

James P. Schmidt wrote:
-
No, I think I have the right password.  I used the password encyption
script in Fogel's book to generate the password, and I know I have the
format right for the entry - it's only one line :)
-

Could you display the CVSROOT/passwd file line in question?  Have you tried
redoing the password encryption and then adding it to the CVSROOT/passwd?

Make sure the passwd file is in $CVSROOT/CVSROOT subdir.  That's CVSROOT
under your cvsroot subdir, which looks like it would be:

/usr/local/cvsrepos/CVSROOT/passwd


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: pserver problem, still

2002-09-19 Thread James P. Schmidt

On Thu, 19 Sep 2002, Larry Jones wrote:

> That means that either your specified root (/usr/local/cvsrepos) doesn't
> exactly match one of the --allow-root= options on the server, the
> specified username (zaren) doesn't exist, or the password is wrong.

The password does seem correct (see the previous post from me about that),
the username does exist, and I believe I have the root option correct on
the server -

/etc/inetd.conf:

cvspserver  stream  tcp nowait  root/usr/local/bin/cvs cvs
--allow-root=/usr/local/cvsrepos pserver

# ls -Fla /usr/local/bin/cvs
-rwxr-xr-x   1 root sysadmin 1415516 Sep 13 14:06 /usr/local/bin/cvs*

# ls -Fla /usr/local/cvsrepos
total 10
drwxrwxr-x   4 root cvs  512 Sep 19 10:45 ./
drwxr-xr-x  31 bin  other   1024 Sep 18 12:46 ../
drwxrwxr-x   3 root cvs 1024 Sep 18 12:46 CVSROOT/
drwxrwxr-x   2 zarencvs  512 Sep 18 12:50 ops_doc_Spops/
-rw-r--r--   1 root cvs   20 Sep 18 12:46 passwd

# cat /etc/group | grep cvs
cvs::105:zaren (& others)

> Check the server's syslog for messages from CVS (it logs them with the
> facility LOG_DAEMON and priority LOG_NOTICE; if your syslog supports the
> LOG_AUTHPRIV facility, it also logs there with additional information).

Looking into this right now...

  "It's the information age --+---+
   everything gets saved  |UCE/UBE not welcome at this address|
   except for the human soul."|see http://tinyurl.com/jhb for info|
Rev. Matthew Carey, Vision Temple +---+



___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



RE: pserver problem, still

2002-09-19 Thread James P. Schmidt

On Thu, 19 Sep 2002, Patrick Nelson wrote:

> It looks like your password is wrong.  If your using CVSROOT/passwd those
> password entries need to be encrypted not plain text.  Could this be the
> problem?

No, I think I have the right password.  I used the password encyption
script in Fogel's book to generate the password, and I know I have the
format right for the entry - it's only one line :)

  "It's the information age --+---+
   everything gets saved  |UCE/UBE not welcome at this address|
   except for the human soul."|see http://tinyurl.com/jhb for info|
Rev. Matthew Carey, Vision Temple +---+



___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



RE: pserver problem, still

2002-09-19 Thread Patrick Nelson

Patrick Nelson wrote:
-
James P. Schmidt
I've confirmed all my configs are correct, and that the path to cvs can be
seen by everyone... re-built the repository, making sure ownership and
permissions are correct... made sure the passwd file is correct... ugh,
and just enjoyed a quick city-wide power outage (yay for "continue
interrupted message"!)... and I STILL can't connect via pserver:

> cvs -d :pserver:zaren@(host):/usr/local/cvsrepos login
CVS password:
cvs login: authorization failed: server (host) rejected access to
/usr/local/cvsrepos for user zaren

The Cederqvist suggests telnetting to the server to troubleshoot:

One good debugging tool is to "telnet servername 2401". After
connecting, send any text (for example "foo" followed by return). If
CVS is working correctly, it will respond with

cvs [pserver aborted]: bad auth protocol start: foo

which I did:

> telnet (host) 2401
Trying (host)...
Connected to (host).
Escape character is '^]'.
xxx
cvs [pserver aborted]: bad auth protocol start: xxx

Connection closed by foreign host.


So it appears that the server *is* working correctly, but it still won't
let me connect.  I'm going a bit buggy trying to figure out why this still
isn't working.  Any other idea from someone with more experience? :)
-

It looks like your password is wrong.  If your using CVSROOT/passwd those
password entries need to be encrypted not plain text.  Could this be the
problem?  


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: pserver problem, still

2002-09-19 Thread bollu


>> Did you check that your /etc/services file has well been modified to
>> include the cvs-pserver service?

>cvs-pserver, or cvspserver?  I have the latter included.

cvspserver. And I meant the /etc/services file on the client.

Cyrille

--

This mail, and any attachments thereto, is intended only for use by the
addressee(s) named herein and may contain legally privileged and/or
confidential information.
If you are not the intended recipient, please note that any review,
dissemination, disclosure, alteration, printing, copying or transmission of
this mail and/or any file transmitted with it, is strictly prohibited and
may be unlawful.
If you have received this mail by mistake, please immediately notify the
sender and permanently destroy the original as well as any copy therof.



___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: pserver problem, still

2002-09-19 Thread James P. Schmidt

On Thu, 19 Sep 2002 [EMAIL PROTECTED] wrote:

> Did you check that your /etc/services file has well been modified to
> include the cvs-pserver service?

cvs-pserver, or cvspserver?  I have the latter included.

  "It's the information age --+---+
   everything gets saved  |UCE/UBE not welcome at this address|
   except for the human soul."|see http://tinyurl.com/jhb for info|
Rev. Matthew Carey, Vision Temple +---+



___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: pserver problem, still

2002-09-19 Thread bollu

Hi,

Did you check that your /etc/services file has well been modified to
include the cvs-pserver service?

Cyrille

--

This mail, and any attachments thereto, is intended only for use by the
addressee(s) named herein and may contain legally privileged and/or
confidential information.
If you are not the intended recipient, please note that any review,
dissemination, disclosure, alteration, printing, copying or transmission of
this mail and/or any file transmitted with it, is strictly prohibited and
may be unlawful.
If you have received this mail by mistake, please immediately notify the
sender and permanently destroy the original as well as any copy therof.



___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: pserver problem, still

2002-09-19 Thread Larry Jones

James P. Schmidt writes:
> 
> > cvs -d :pserver:zaren@(host):/usr/local/cvsrepos login
> CVS password:
> cvs login: authorization failed: server (host) rejected access to
> /usr/local/cvsrepos for user zaren

That means that either your specified root (/usr/local/cvsrepos) doesn't
exactly match one of the --allow-root= options on the server, the
specified username (zaren) doesn't exist, or the password is wrong. 
Check the server's syslog for messages from CVS (it logs them with the
facility LOG_DAEMON and priority LOG_NOTICE; if your syslog supports the
LOG_AUTHPRIV facility, it also logs there with additional information). 
If you're using the CVSROOT/passwd file, make sure the actual file
contains what you think it does.

-Larry Jones

You should see me when I lose in real life! -- Calvin


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: pserver problem, still

2002-09-19 Thread James P. Schmidt

I've confirmed all my configs are correct, and that the path to cvs can be
seen by everyone... re-built the repository, making sure ownership and
permissions are correct... made sure the passwd file is correct... ugh,
and just enjoyed a quick city-wide power outage (yay for "continue
interrupted message"!)... and I STILL can't connect via pserver:

> cvs -d :pserver:zaren@(host):/usr/local/cvsrepos login
CVS password:
cvs login: authorization failed: server (host) rejected access to
/usr/local/cvsrepos for user zaren

The Cederqvist suggests telnetting to the server to troubleshoot:

One good debugging tool is to "telnet servername 2401". After
connecting, send any text (for example "foo" followed by return). If
CVS is working correctly, it will respond with

cvs [pserver aborted]: bad auth protocol start: foo

which I did:

> telnet (host) 2401
Trying (host)...
Connected to (host).
Escape character is '^]'.
xxx
cvs [pserver aborted]: bad auth protocol start: xxx

Connection closed by foreign host.


So it appears that the server *is* working correctly, but it still won't
let me connect.  I'm going a bit buggy trying to figure out why this still
isn't working.  Any other idea from someone with more experience? :)

  "It's the information age --+---+
   everything gets saved  |UCE/UBE not welcome at this address|
   except for the human soul."|see http://tinyurl.com/jhb for info|
Rev. Matthew Carey, Vision Temple +---+






___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: pserver problem

2002-09-12 Thread Larry Jones

James P. Schmidt writes:
> 
> > cvs -d :pserver:(user@host):/usr/local/cvsrepos login
> (Logging in to (user@host))
> CVS password: 
> cvs [login aborted]: unrecognized auth response from (host): Unknown
> command: `pserver'

That means that your newly created server doesn't support pserver mode
for some reason.  On the server machine, run CVS with a bogus command:

/usr/um/bin/cvs xxx

That will give you a list of the valid commands -- you'll note that
pserver isn't in the list.  If "server" isn't on the list either, the
problem is that configure couldn't find your TCP/IP socket library.  If
it is, then the problem is that configure couldn't find the crypt()
function that's used for encrypting passwords for pserver.  Check your
configure output and post it here if you can't figure out how to fix it.
You may also want to check with some knowledgeable Solaris people to see
if crypt() is in a special library or if you have to install some
special package to get it.

> Hmm, I just noticed that tcpwrappers appear to be in use on this machine.
> Changing /etc/inetd.conf to
> 
> cvspserver  stream  tcp nowait  root/usr/sbin/tcpd
> /usr/um/bin/cvs cvs --allow-root=/usr/local/cvsrepos pserver

That's incorrect -- you need to get rid of the "cvs" when using
tcpwrappers:

  cvspserver  stream  tcp  nowait  root  /usr/sbin/tcpd /usr/um/bin/cvs 
--allow-root=/usr/local/cvsrepos pserver

> and... I get a different error:
> 
> cvs [login aborted]: recv() from server (host): EOF

That implies that tcpwrappers denied your connection.  Check your
hosts.allow and hosts.deny files for the appropriate rules.  I strongly
suggest getting it working without tcpwrappers first so you minimize the
number of things that can go wrong.

-Larry Jones

Life's a lot more fun when you're not responsible for your actions. -- Calvin


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



pserver problem

2002-09-12 Thread James P. Schmidt

I'm getting the following response when trying to log into my newly
created cvs server via pserver:

> cvs -d :pserver:(user@host):/usr/local/cvsrepos login
(Logging in to (user@host))
CVS password: 
cvs [login aborted]: unrecognized auth response from (host): Unknown
command: `pserver'

/etc/inetd.conf is configured exactly as it's described in Karl Fogel's
CVS book:

...
cvspserver  stream  tcp nowait  root/usr/um/bin/cvs cvs
--allow-root=/usr/local/cvsrepos pserver

...

Hmm, I just noticed that tcpwrappers appear to be in use on this machine.
Changing /etc/inetd.conf to

cvspserver  stream  tcp nowait  root/usr/sbin/tcpd
/usr/um/bin/cvs cvs --allow-root=/usr/local/cvsrepos pserver

and... I get a different error:

cvs [login aborted]: recv() from server (host): EOF


This is running on Solaris 8.  Any clues as to why this isn't working, or
what I might still have misconfigured?

  "It's the information age --+---+
   everything gets saved  |UCE/UBE not welcome at this address|
   except for the human soul."|see http://tinyurl.com/jhb for info|
Rev. Matthew Carey, Vision Temple +---+



___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: PServer problem

2001-09-14 Thread Larry Jones

[EMAIL PROTECTED] writes:
> 
> cvs server: cannot open /root/.cvsignore: Permission denied
> cvs [server aborted]: can't chdir ( /root ): Permission denied

Upgrade to the current release of CVS (1.11.1p1), which you can get from
www.cvshome.org, or go search the archives for this very common problem.

-Larry Jones

Honey, are we out of aspirin again? -- Calvin's Dad

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: PServer problem

2001-09-12 Thread christian liesch

[EMAIL PROTECTED] wrote:
> 
> Hi,
> 
> I have a Problem with a cvs pserver. After a cvs login, which was
> successful, I can't run a cvs checkout. Other commands like cvs
> commit or cvs update are successful, too.
> 
> I get the following error:
> 
> cvs server: cannot open /root/.cvsignore: Permission denied
> cvs [server aborted]: can't chdir ( /root ): Permission denied
> 
> Our admin's don't want to give us read permission on /root/.
> How can I solve the problem otherwise?
 
Look in the FAQ on the www.cvshome.org page. They say: 
"This is a *very* common common problem. Read the "Troubleshooting"
section of the Cederqvist (CVS Manual). Pay special attention to the
subsection titled, "Trouble making a connection to a CVS server". The
manual is located online at http://cvshome.org/docs/manual.";

hope this help
best regards
Christian
___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



PServer problem

2001-09-12 Thread Stefan_Zimmer

Hi,

I have a Problem with a cvs pserver. After a cvs login, which was
successful, I can't run a cvs checkout. Other commands like cvs
commit or cvs update are successful, too.

I get the following error:

cvs server: cannot open /root/.cvsignore: Permission denied
cvs [server aborted]: can't chdir ( /root ): Permission denied

Our admin's don't want to give us read permission on /root/.
How can I solve the problem otherwise?

Thanks
 ZingeL

Re: Pserver problem!

2001-05-24 Thread Larry Jones

=?iso-8859-1?Q?Ivens=20Porto?= writes:
> 
> CVS password:
> cvs login: failed to open /home/ivens/.cvspass for reading: No such file
> or directory
> cvs [login aborted]: fatal error: exiting
[...]
> The interesting thing is that if i make a:
> 
> touch ~/.cvspass
> 
> and try to login again again, it works.

That's a known bug in the current release that's already been fixed in
the development version.  Your work-around is correct.

-Larry Jones

The authorities are trying to silence any view contrary to their own!
-- Calvin

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Pserver problem!

2001-05-24 Thread Ivens Porto

I'm trying to use the pserver access method to my repository but i'm having
the following problem after the login:

---
CVS password:
cvs login: failed to open /home/ivens/.cvspass for reading: No such file
or directory
cvs [login aborted]: fatal error: exiting
---

The pserver is configured with the options -f and --allow-root in inetd.conf.
Also i'm not using the cvs passwd file, and there's no readers and writers
files. (I'm running cvs-1.11.1p1 in a Slackware box).

The interesting thing is that if i make a:

touch ~/.cvspass

and try to login again again, it works.

Anyone knows what's going on?


Ivens Porto
Open Systems Engineering - OSE
Uberlandia - MG - Brasil
[EMAIL PROTECTED]
[EMAIL PROTECTED]




___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: pserver problem

2001-05-03 Thread Peter Ajamian

kanakpalli chandrashekhar wrote:
> 
> thank you larry i used the perl script given in karl
> fogel book. i entered the password generated by script
> in cvsroot/passwd file. when i am trying from other
> machine it is give :fatal error . can u explain me the
> format .

Try the CVSpwd program located at http://www.pajamian.dhs.org for fully
automated passwd and readers files management.

Regards, Peter

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: pserver problem

2001-04-25 Thread Larry Jones

chandra shekhar writes:
> 
>  I set up the pserver on my build
>  machine. and i added cvspserver 2401/tcp in /etc/services and also 
> made changes in inted.conf file and rebooted the machine. when i am 
> connecting from other machine it is asking for password and when i am 
> entering it is accepting it and making a .cvspass file but when i am 
> checking out it is giving .
>  :FATAL ERROR
>  ,aborting :no such user.

You haven't given many details, but my guess is that you have a
CVSROOT/passwd file with an incorrect format.

-Larry Jones

My life needs a rewind/erase button. -- Calvin

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: pserver problem

2001-04-25 Thread kanakpalli chandrashekhar

thank you larry i used the perl script given in karl
fogel book. i entered the password generated by script
in cvsroot/passwd file. when i am trying from other
machine it is give :fatal error . can u explain me the
format .

thanks
-chandra
--- Larry Jones <[EMAIL PROTECTED]> wrote:
> chandra shekhar writes:
> > 
> >  I set up the pserver on my build
> >  machine. and i added cvspserver 2401/tcp in
> /etc/services and also 
> > made changes in inted.conf file and rebooted the
> machine. when i am 
> > connecting from other machine it is asking for
> password and when i am 
> > entering it is accepting it and making a .cvspass
> file but when i am 
> > checking out it is giving .
> >  :FATAL ERROR
> >  ,aborting :no such user.
> 
> You haven't given many details, but my guess is that
> you have a
> CVSROOT/passwd file with an incorrect format.
> 
> -Larry Jones
> 
> My life needs a rewind/erase button. -- Calvin


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: pserver problem

2001-04-25 Thread Larry Jones

kanakpalli chandrashekhar writes:
> 
> thank you larry i used the perl script given in karl
> fogel book. i entered the password generated by script
> in cvsroot/passwd file. when i am trying from other
> machine it is give :fatal error . can u explain me the
> format .

http://cvshome.org/docs/manual/cvs_2.html#SEC30

It should be:

username:password

or:

username:password:local_username_to_run_as

Note that this is *not* the same format as /etc/passwd.

-Larry Jones

I think your train of thought is a runaway. -- Calvin's Mom

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



pserver problem

2001-04-25 Thread chandra shekhar

hi ,
 I set up the pserver on my build
 machine. and i added cvspserver 2401/tcp in /etc/services and also 
made changes in inted.conf file and rebooted the machine. when i am 
connecting from other machine it is asking for password and when i am 
entering it is accepting it and making a .cvspass file but when i am 
checking out it is giving .
 :FATAL ERROR
 ,aborting :no such user.
 Can u help me with this. 
 thanks
 -Chandra shekahr



___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: odd pserver problem

2001-04-18 Thread Larry Jones

mm rao writes:
> 
> I am sorry. You mean this option is there no more in
> cvs-1.11 or it applies to all sub directories as well?

The -d option is still there, but CVS no long updates any of the
CVS/Root files when you use it.

-Larry Jones

Hmm... That might not be politic. -- Calvin

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: odd pserver problem

2001-04-18 Thread mm rao

I am sorry. You mean this option is there no more in
cvs-1.11 or it applies to all sub directories as well?
--- Larry Jones <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] writes:
> > 
> > The cvs-1.11 NEWS file says,
> > 
> > The -d command line option no longer updates the
> CVS/Root file.
> > 
> > Can you please explain me what it exactly meant?
> 
> CVS questions should be sent to [EMAIL PROTECTED],
> not to me personally.
> 
> In some previous releases of CVS, if you did some
> CVS command with an
> explicit -d global option in an existing working
> directory, CVS would
> change the CVS/Root file in that directory (but
> *not* any
> subdirectories) to match the -d option.  That let
> you change the name of
> the server or the connection method, but since it
> didn't update any of
> the subdirectories, it didn't really work in
> general.
> 
> -Larry Jones
> 
> Is it too much to ask for an occasional token
> gesture of appreciation?!
> -- Calvin


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



RE: odd pserver problem

2000-12-12 Thread Hanser, Kevin

Ok, I'm an idiot.  I skimmed the section and missed the part that pertained
to my situation.  Found it now, 

Thanx

Kevin

-Original Message-
From: Hanser, Kevin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 10:35 AM
To: '[EMAIL PROTECTED]'
Subject: FW: odd pserver problem



Hmmm... this just tells me about setting up the pserver.  Which I already
have done.
Doesn't really relate to the situation I described...

That's ok, I figured out that if I add the passwd file to the checkoutlist
file, it gets updated properly.  Apparently the passwd file isn't one of the
standard administrative files?

Kevin

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 11, 2000 3:25 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: odd pserver problem


Hanser, Kevin writes:
> 
> I've been doing a 'checkout CVSROOT', and then editing the passwd file,
and
> then committing it back into the repository.  But it appears that doesn't
> update the actual passwd file??  What is the proper way to edit the passwd
> file in the CVSROOT dir to get it to update?

See the very last paragraph of:

http://www.cvshome.org/docs/manual/cvs_2.html#SEC30

See also:

http://www.cvshome.org/docs/manual/cvs_2.html#SEC32

-Larry Jones

I thought my life would seem more interesting with a musical
score and a laugh track. -- Calvin

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



FW: odd pserver problem

2000-12-12 Thread Hanser, Kevin


Hmmm... this just tells me about setting up the pserver.  Which I already
have done.
Doesn't really relate to the situation I described...

That's ok, I figured out that if I add the passwd file to the checkoutlist
file, it gets updated properly.  Apparently the passwd file isn't one of the
standard administrative files?

Kevin

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 11, 2000 3:25 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: odd pserver problem


Hanser, Kevin writes:
> 
> I've been doing a 'checkout CVSROOT', and then editing the passwd file,
and
> then committing it back into the repository.  But it appears that doesn't
> update the actual passwd file??  What is the proper way to edit the passwd
> file in the CVSROOT dir to get it to update?

See the very last paragraph of:

http://www.cvshome.org/docs/manual/cvs_2.html#SEC30

See also:

http://www.cvshome.org/docs/manual/cvs_2.html#SEC32

-Larry Jones

I thought my life would seem more interesting with a musical
score and a laugh track. -- Calvin

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: odd pserver problem

2000-12-11 Thread Larry Jones

Hanser, Kevin writes:
> 
> I've been doing a 'checkout CVSROOT', and then editing the passwd file, and
> then committing it back into the repository.  But it appears that doesn't
> update the actual passwd file??  What is the proper way to edit the passwd
> file in the CVSROOT dir to get it to update?

See the very last paragraph of:

http://www.cvshome.org/docs/manual/cvs_2.html#SEC30

See also:

http://www.cvshome.org/docs/manual/cvs_2.html#SEC32

-Larry Jones

I thought my life would seem more interesting with a musical
score and a laugh track. -- Calvin

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



RE: odd pserver problem

2000-12-11 Thread Hanser, Kevin

Hmmm... I think I've found part of my problem.
I modified the config file to set
SystemAuth=no
and I noticed that other users couldn't log in anymore ... clue #1.

So I was looking thru the actual /cvs/master/CVSROOT dir, and I noticed that
the passwd
file was not updated.  It was still the older(est?) version.'

I've been doing a 'checkout CVSROOT', and then editing the passwd file, and
then committing it back into the repository.  But it appears that doesn't
update the actual passwd file??  What is the proper way to edit the passwd
file in the CVSROOT dir to get it to update?

Thanx

Kevin  

-Original Message-
From: Hanser, Kevin [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 11, 2000 1:57 PM
To: '[EMAIL PROTECTED]'
Subject: odd pserver problem


I am experiencing an "odd" problem with a pserver install of CVS.  I have
cvs installed, and working just fine for all users except one.  All the
users are set up the same...  that's why I can't figure out why this _one_
person can't login.  I keep getting :

cvs login: authorization failed: server  rejected access to
/cvs/master for user truefreak

This is the only user that gets that error.  I have a passwd file set up,
and I've copied and pasted the passwords for the users from the /etc/shadow
file.  (using same passwords as system login...)
my /CVSROOT/passwd file looks something like this:

user:passwordstuff:cvsuser

(I'm mapping each user to the cvsuser, who owns the /cvs/master directory
tree and everything in it)

each user logging in is also a member of the cvs group, which is the group
that owns the directory.

I only get this error with this one user.  I've tried deleting the user
account, and re-creating it even, and I still get the same error.  I've
created other users that work fine...
I'm kinda puzzled on this one.



___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



odd pserver problem

2000-12-11 Thread Hanser, Kevin

I am experiencing an "odd" problem with a pserver install of CVS.  I have
cvs installed, and working just fine for all users except one.  All the
users are set up the same...  that's why I can't figure out why this _one_
person can't login.  I keep getting :

cvs login: authorization failed: server  rejected access to
/cvs/master for user truefreak

This is the only user that gets that error.  I have a passwd file set up,
and I've copied and pasted the passwords for the users from the /etc/shadow
file.  (using same passwords as system login...)
my /CVSROOT/passwd file looks something like this:

user:passwordstuff:cvsuser

(I'm mapping each user to the cvsuser, who owns the /cvs/master directory
tree and everything in it)

each user logging in is also a member of the cvs group, which is the group
that owns the directory.

I only get this error with this one user.  I've tried deleting the user
account, and re-creating it even, and I still get the same error.  I've
created other users that work fine...
I'm kinda puzzled on this one.


Kevin Hanser
System Administrator
ShopsForMe.com
[EMAIL PROTECTED]



___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: pserver problem

2000-06-24 Thread Mike
Title: Re: pserver problem


Please see my Linux tutorial at:

http://www.michael-amorose.com/cvs/

Michael C. Amorose
Author FireUtils for Macintosh
Author Sound Core for Macintosh
Author Goo Library for Macintosh
FireWire Watch Webmaster
http://www.fireutils.com
http://www.soundcore.com
http://www.michael-amorose.com/goolibrary
http://www.michael-amorose.com/firewire
---

At 11:09 AM -0500 6/24/00, Chris Koyl wrote:
I am having
problems with my CVS server setup . I get the following error when I
run any cvs commands from a remote client:
 
CVS server:
cannot open /root/.cvsignore: Permission denied
CVS [server aborted]: can't chdir(/root): Permission
denied
 
With jCVS
the "test" option returns successfully and I can create
projects but I still get the first line of the error listed above. I
have tried both jCVS and WinCVS clients and the same error
occurs...must be my server configuration. I have no problems
locally.
 
First,
 
Server OS:
Linux 6.2
cvs server:
1.10.8 client/server
compile
note: src/options.h ---> commented out
CVS_BADROOT
 
Now, my
inetd.conf file looks like this:
 
cvspserver
stream tcp nowait root /usr/local/bin/cvs cvs
--allow-root=/opt/cvs/gtsdev pserver
 
the
services file:
 
cvspserver
2401/tcp
 
cvs config
file:
 
SystemAuth=no
 
I have a
passwd file in $CVSROOT/CVSROOT that contains something like
this:
 
developer::cvsuser
 
I created
the passwd file with Apache's htpasswd and the users listed in the
file are general users of the systems but the passwords are
different. I have tested putting in the wrong password and it's
authenticating correctly. No problem in
connecting.
 
My best guess as to the cause to the problem is the
setup of the cvsuser account. It just doesn't seem that the process
is changing from user root to the cvsuser. However, when I add a
project remotely and then check the directory created in $CVSROOT
it's owner is cvsuser.cvsadmin...don't figure.
 
I bet if
changed the root directory to have extended permissions I could get
it to work...that's just way wrong! "Not going to do it
;)"
 
-Chris
 
 
 
 
 
 




pserver problem

2000-06-24 Thread Chris Koyl



I am having problems with my CVS server setup . I 
get the following error when I run any cvs commands from a remote 
client:
 
CVS server: cannot open /root/.cvsignore: 
Permission deniedCVS [server aborted]: can't chdir(/root): Permission 
denied
 
With jCVS the "test" option returns successfully 
and I can create projects but I still get the first line of the error listed 
above. I have tried both jCVS and WinCVS clients and the same error 
occurs...must be my server configuration. I have no problems 
locally.
 
First,
 
Server OS: Linux 6.2
cvs server: 1.10.8 client/server
compile note: src/options.h ---> commented out 
CVS_BADROOT
 
Now, my inetd.conf file looks like 
this:
 
cvspserver stream tcp nowait root 
/usr/local/bin/cvs cvs --allow-root=/opt/cvs/gtsdev pserver
 
the services file:
 
cvspserver 2401/tcp
 
cvs config file:
 
SystemAuth=no
 
I have a passwd file in $CVSROOT/CVSROOT that 
contains something like this:
 
developer::cvsuser
 
I created the passwd file with Apache's htpasswd 
and the users listed in the file are general users of the systems but 
the passwords are different. I have tested putting in the wrong password 
and it's authenticating correctly. No problem in connecting.
 
My best guess as to the cause to the problem 
is the setup of the cvsuser account. It just doesn't seem that the process is 
changing from user root to the cvsuser. However, when I add a project remotely 
and then check the directory created in $CVSROOT it's owner is 
cvsuser.cvsadmin...don't figure.
 
I bet if changed the root directory to have 
extended permissions I could get it to work...that's just way wrong! "Not going 
to do it ;)"
 
-Chris
 
 
 
 
 
 


Re: pserver problem again

2000-06-22 Thread Darryl VanDorp

Mike et all.

The only thing I would add to Mike's little how-to is that
the final step... Reboot is unecessary.  And those of 
you like me who have uptimes of like 200 days etc.
dont' like rebooting.  Especially interrupting service.

On Redhat you probably just have to restart
inetd by either: 
killall -HUP inetd 
or do:
/etc/rc.d/init.d/inet restart


Regards,
Darryl
Linux, because you can't do a sig like this in Windoze
1:45pm  up 5 days, 22:58,  0 users,  load average: 1.00, 1.00, 1.00
(yeah only 5 days because i recompiled the kernel)








Re: pserver problem again

2000-06-21 Thread Mike

Linux has a few differences with the UNIX versions listed in the 
"Open Source" book. For a complete step-by-step procedure on how to 
setup CVS server under Linux, see my website:

http://www.michael-amorose.com/cvs/

Best Regards,

Michael C. Amorose
Author FireUtils for Macintosh
Author Sound Core for Macintosh
Author Goo Library for Macintosh
FireWire Watch Webmaster
http://www.fireutils.com
http://www.soundcore.com
http://www.michael-amorose.com/goolibrary
http://www.michael-amorose.com/firewire
---

At 6:16 PM -0400 6/21/00, [EMAIL PROTECTED] wrote:
>Hi, I know this is a FAQ issue.  However, I'm too dumb to figure this out
>(maybe I should not touch this linux stuff :) ).  I have been working on
>this pserver problem last week and read all the email regarding this issue.
>Here is what's happened:
>
>cvs server is 1.8.10 at redhat linux 6.1
>I did all the standard things in Open Source Development with CVS book.  I
>tried "telent localhost 2401" to make sure inetd started properly.  When I
>login from remote (another redhat linux 6.1) cvs client (1.8.10), I got
>
>cvs login: cannot open /root/.cvspass: Permission denied
>cvs [login aborted]: could not open /root/.cvspass: Permission denied 
>
>I knew this is due to a broken inetd problem that is discussed between larry
>and noey.  However, I tried both lines in inetd.conf and none of them work.
>
>cvspserver stream tcp nowait root /usr/bin/env - /usr/bin/cvs -f
>--allow-root=/usr/local/cvsrepos pserver
>
>cvspserver stream tcp nowait root /usr/bin/env env - /usr/bin/cvs -f
>--allow-root=/usr/local/cvsrepos pserver
>
>Cederqvist's trouble shooting session also discuss exact same problem.  I
>applied a cvs.wrapper file copied from Hamid Ghassemi (in his question about
>memory error) trying to unset the HOME environment variable.
>
>Now, my inetd.conf has a line like this:
>cvspserver stream tcp nowait root /usr/local/bin/cvs.wrapper
>
>cvs.wrapper sets to executable and contains the following:
>#!/bin/sh
>echo `date` >> /tmp/cvs.log
>unset HOME
>exec /usr/bin/cvs -f --allow-root=/usr/local/cvsRepos pserver
>
>In the last line, I tried both "exec" and "exec -".  I still get the
>permission denied error.  Apparently, cvs still use "/root" as home
>directory.
>
>Can you help me to see where is my problem?  Do I need to remove existing
>"/root/.cvspass" file? 
>
>Other Info:
>I have always signed up as root on the server box. All files I created are
>owned by root. I did not use passwd file in CVSROOT/ directory (yet).
>
>When attempting to connect to cvs server, I use a command like this:
>$cvs -d :pserver:user@domain:/usr/local/cvsRepos login
>if I issue this command as root (from the client side), I can pass the login
>in (without the permission denied error) but failed at "cvs co myproj"
>command.




Re: pserver problem again

2000-06-21 Thread Larry Jones

[EMAIL PROTECTED] writes:
> 
> cvs login: cannot open /root/.cvspass: Permission denied
> cvs [login aborted]: could not open /root/.cvspass: Permission denied  
> 
> I knew this is due to a broken inetd problem that is discussed between larry
> and noey.  However, I tried both lines in inetd.conf and none of them work.

By "none of them work", do you mean you still get the above errors or
does something else happen?  Did you remember to send a SIGHUP signal to
inetd to force it to reread the configuration file after you changed it?

-Larry Jones

It seems like once people grow up, they have no idea what's cool. -- Calvin




pserver problem again

2000-06-21 Thread JYang

Hi, I know this is a FAQ issue.  However, I'm too dumb to figure this out
(maybe I should not touch this linux stuff :) ).  I have been working on
this pserver problem last week and read all the email regarding this issue.
Here is what's happened:

cvs server is 1.8.10 at redhat linux 6.1
I did all the standard things in Open Source Development with CVS book.  I
tried "telent localhost 2401" to make sure inetd started properly.  When I
login from remote (another redhat linux 6.1) cvs client (1.8.10), I got 

cvs login: cannot open /root/.cvspass: Permission denied
cvs [login aborted]: could not open /root/.cvspass: Permission denied  

I knew this is due to a broken inetd problem that is discussed between larry
and noey.  However, I tried both lines in inetd.conf and none of them work.

cvspserver stream tcp nowait root /usr/bin/env - /usr/bin/cvs -f
--allow-root=/usr/local/cvsrepos pserver

cvspserver stream tcp nowait root /usr/bin/env env - /usr/bin/cvs -f
--allow-root=/usr/local/cvsrepos pserver

Cederqvist's trouble shooting session also discuss exact same problem.  I
applied a cvs.wrapper file copied from Hamid Ghassemi (in his question about
memory error) trying to unset the HOME environment variable.

Now, my inetd.conf has a line like this:
cvspserver stream tcp nowait root /usr/local/bin/cvs.wrapper

cvs.wrapper sets to executable and contains the following:
#!/bin/sh
echo `date` >> /tmp/cvs.log
unset HOME
exec /usr/bin/cvs -f --allow-root=/usr/local/cvsRepos pserver

In the last line, I tried both "exec" and "exec -".  I still get the
permission denied error.  Apparently, cvs still use "/root" as home
directory.

Can you help me to see where is my problem?  Do I need to remove existing
"/root/.cvspass" file?  

Other Info:
I have always signed up as root on the server box. All files I created are
owned by root. I did not use passwd file in CVSROOT/ directory (yet). 

When attempting to connect to cvs server, I use a command like this:
$cvs -d :pserver:user@domain:/usr/local/cvsRepos login
if I issue this command as root (from the client side), I can pass the login
in (without the permission denied error) but failed at "cvs co myproj"
command.




Re: [Q] Setting up Pserver problem

2000-06-16 Thread Derek R. Price

Larry Jones wrote:

> didn't somehow get a  at the end of the line) -- if there's nothing
> wrong, then there must be something funky going on with tcpd.  (For what
> it's worth, I've run CVS under tcpd on my BSD/OS 4.0.1 system without
> any problem.)

Works fine on both my Linux boxes too.

Derek

--
Derek Price  CVS Solutions Architect
mailto:[EMAIL PROTECTED] OpenAvenue ( http://OpenAvenue.com )
--
Underwear should be worn on the inside.
Underwear should be worn on the inside.
Underwear should be worn on the inside...

  - Bart Simpson on chalkboard, _The Simpsons_






Re: login with pserver problem, need help

2000-06-12 Thread Larry Jones

[EMAIL PROTECTED] writes:
> 
> The repository works fine locally
> When I try to use it from another machine
> the  cvs login command tells me
> [login aborted] recv() from server inenco: EOF
> I try telnet inenco 2041 and everything looks fine

You don't say what version of CVS you're running -- my crystal ball
tells me it's 1.10.6, which has a broken pserver.  Update to the current
interim release (1.10.8) from www.cvshome.org.

-Larry Jones

You know how Einstein got bad grades as a kid?  Well MINE are even WORSE!
-- Calvin




Re: login with pserver problem, need help

2000-06-11 Thread Ondrej Popp

hmmm can it be that your portnumber is wrong?
the standard pserver port is 2401 and not 2041...

Ondrej

[EMAIL PROTECTED] wrote:
> 
> I am instaling a cvs server.
> I am new to cvs
> The repository works fine locally
> When I try to use it from another machine
> the  cvs login command tells me
> [login aborted] recv() from server inenco: EOF
> I try telnet inenco 2041 and everything looks fine
> 
> Please help me how to fix this message
> 
> Diego Saravia
> [EMAIL PROTECTED]
> 
> by the way if someone wants to help the machine is inenco.unsa.edu.ar
> CVSROOT=/usr/local/cvsroot
> there is a login name "dsa" without any password
> 
> thanks in advance

-- 
  
||   
||   
|   http://www.geocities.com/SiliconValley/Lakes/6150| 
||   
 _  ||  _
/ ) || ( \   
  _( (_ |  _  E-mail: [EMAIL PROTECTED]_  | _) )_ 
 (((\ \)|_/ )( \_|(/
/)))
   \_/ /  \ \_/  
   \  /\  /  
\   _/  \_   /   
/__/  \__\




RE: login with pserver problem, need help

2000-06-11 Thread John Cyriac

hi,
i had the same problem. which i havent yet solved. if you get a solution,
please let me know
-john

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 11, 2000 3:51 PM
To: [EMAIL PROTECTED]
Subject: login with pserver problem, need help


I am instaling a cvs server.
I am new to cvs
The repository works fine locally
When I try to use it from another machine
the  cvs login command tells me
[login aborted] recv() from server inenco: EOF
I try telnet inenco 2041 and everything looks fine


Please help me how to fix this message

Diego Saravia
[EMAIL PROTECTED]

by the way if someone wants to help the machine is inenco.unsa.edu.ar
CVSROOT=/usr/local/cvsroot
there is a login name "dsa" without any password

thanks in advance





login with pserver problem, need help

2000-06-11 Thread dsa

I am instaling a cvs server.
I am new to cvs 
The repository works fine locally
When I try to use it from another machine
the  cvs login command tells me
[login aborted] recv() from server inenco: EOF
I try telnet inenco 2041 and everything looks fine


Please help me how to fix this message

Diego Saravia
[EMAIL PROTECTED]

by the way if someone wants to help the machine is inenco.unsa.edu.ar
CVSROOT=/usr/local/cvsroot
there is a login name "dsa" without any password

thanks in advance




Re: [Q] Setting up Pserver problem

2000-06-07 Thread Larry Jones

Eric / Chang-Cheng, Chao writes:
> 
> cvs [login aborted]: unrecognized auth response from 192.168.1.7: CVS
> commands are:

That indicates that you gave CVS a subcommand that it didn't recognize
(i.e., ``cvs fleeble'' will produce this error message but just ``cvs''
won't).  Check the inetd.conf line very carefully (and check that you
didn't somehow get a  at the end of the line) -- if there's nothing
wrong, then there must be something funky going on with tcpd.  (For what
it's worth, I've run CVS under tcpd on my BSD/OS 4.0.1 system without
any problem.)

-Larry Jones

All this was funny until she did the same thing to me. -- Calvin




Re: [Q] Setting up Pserver problem

2000-06-07 Thread rfertig


Eric / Chang-Cheng, Chao wrote:
> > > cvs [login aborted]: recv() from server ..x.xxx:
Connection
> > > reset by peer
> >
> > That usually indicates that inetd was unable to start the server for
> > some reason -- check your syslog for error messages.
> >

> The error seems to come from the tcpdwrapper.

> If I change the entry I have in inetd.conf from
> "cvspserver stream tcp nowait root /usr/sbin/tcpd /usr/local/bin/cvs \
>--allow-root=/usr/local/newrepos pserver" to "cvspserver stream tcp
> nowait root /usr/local/bin/cvs cvs \
>--allow-root=/usr/local/newrepos pserver", I can log in fine.  What
could
> be causing the problem?

The same happend to me. I can't connect to the server while using tcpd, but
I can do if I remove the tcpwrapper-command in inetd.conf.
I didn't found the cause for that (since I have no time for exploring).

Bye, Rene





Re: [Q] Setting up Pserver problem

2000-06-06 Thread Eric / Chang-Cheng, Chao

Larry Jones wrote:

> Eric / Chang-Cheng, Chao writes:
> >
> > cvs [login aborted]: recv() from server ..x.xxx: Connection
> > reset by peer
>
> That usually indicates that inetd was unable to start the server for
> some reason -- check your syslog for error messages.
>

Thanks for the advice. I checked that inet is started properly. Now, I
receives another error message whenever I try to log in:

cvs [login aborted]: unrecognized auth response from 192.168.1.7: CVS
commands are:

Note that there is nothing after the colon.

The error seems to come from the tcpdwrapper.

If I change the entry I have in inetd.conf from
"cvspserver stream tcp nowait root /usr/sbin/tcpd /usr/local/bin/cvs \
   --allow-root=/usr/local/newrepos pserver" to "cvspserver stream tcp
nowait root /usr/local/bin/cvs cvs \
   --allow-root=/usr/local/newrepos pserver", I can log in fine.  What could
be causing the problem?

>
> > 2.  put in "cvspserver stream tcp nowait root /usr/sbin/tcpd
> > /usr/local/bin/cvs --allow-root=/usr/local/newrepos pserver" into
> > /etc/inetd.conf
> [...]
> > Finally, I use "cvs -d :pserver:cvs_user@cvs_server:/usr/local/cvsroot
> > login" to login into the cvs server.
>
> Note that the repository you've specified doesn't match the --allow-root
> in inetd.conf -- that shouldn't cause this problem, but it will cause
> problems later on.
>
> -Larry Jones
>
> You don't get to be Mom if you can't fix everything just right. -- Calvin




Re: [Q] Setting up Pserver problem

2000-06-06 Thread Larry Jones

Eric / Chang-Cheng, Chao writes:
> 
> cvs [login aborted]: recv() from server ..x.xxx: Connection
> reset by peer

That usually indicates that inetd was unable to start the server for
some reason -- check your syslog for error messages.

> 2.  put in "cvspserver stream tcp nowait root /usr/sbin/tcpd
> /usr/local/bin/cvs --allow-root=/usr/local/newrepos pserver" into
> /etc/inetd.conf
[...]
> Finally, I use "cvs -d :pserver:cvs_user@cvs_server:/usr/local/cvsroot
> login" to login into the cvs server.

Note that the repository you've specified doesn't match the --allow-root
in inetd.conf -- that shouldn't cause this problem, but it will cause
problems later on.

-Larry Jones

You don't get to be Mom if you can't fix everything just right. -- Calvin




[Q] Setting up Pserver problem

2000-06-06 Thread Eric / Chang-Cheng, Chao

Hi,

I'm having some problems setting up Pserver.  I have done all the steps
described in the book titled "Open Source Developement With CVS" but
after I entered the password, I always get this error message:

cvs [login aborted]: recv() from server ..x.xxx: Connection
reset by peer

What could be the problem?

The steps that I had done is as follow:
1.  made sure that /etc/services has such a line:
cvspserver2401/tcp
2.  put in "cvspserver stream tcp nowait root /usr/sbin/tcpd
/usr/local/bin/cvs --allow-root=/usr/local/newrepos pserver" into
/etc/inetd.conf
3. re-started inetd by running /etc/rc.d/init.d/inet
4.  Created a passwd file under CVSROOT/
5.  The format of my password file look like this
cvs_user:encrypted_password:system_user_name

Finally, I use "cvs -d :pserver:cvs_user@cvs_server:/usr/local/cvsroot
login" to login into the cvs server.

That's all I have done

Did I miss any steps?

Also, if I want to use SSH for login, what extra steps do I have to do?

Thanks
Eric




Re: pserver problem in moving from 1.10 to 1.10.8

2000-05-08 Thread Larry Jones

[EMAIL PROTECTED] writes:
> 
> Thanks heaps..this means..my CVSROOT/passwd file format would look like this?
> 
> :

Yep.

-Larry Jones

I've never seen a sled catch fire before. -- Hobbes




Re: pserver problem in moving from 1.10 to 1.10.8

2000-05-07 Thread Aditya . Sanghi




Larry,

Thanks heaps..this means..my CVSROOT/passwd file format would look like this?

:

Aditya




[EMAIL PROTECTED] writes:
>
> $cvs status -v readme.txt
> setgid failed: Not owner
> cvs status: authorization failed: server  rejected access

If you're going to run pserver as a non-root user, you *must* use a
CVSROOT/passwd file to map all of the cvs users to the user you're
running pserver as.

> I think i dont have the latest version of the server.c file (as I had to
> manually make the change on line 5084 instead of 5114 in your patch).
> How do I know what revision of server.c i am using? How do i get the latest
cvs
> tarball with any patches? I've got cvs 1.10.8

The patch was against the current development version, but `patch'
should have been able to apply it to 1.10.8 (with an offset).  There
isn't any way to tell what version of a particular file you've got
(unless you've got it checked out from the public CVS repository), but
it presumably matches the CVS release you've got.  There haven't been
any releases since 1.10.8, so the only way to get anything more recent
is to check out the current development release from the CVS repository
(details are at http://www.cyclic.com.), but you shouldn't need to do
that.

> P.S. -> Making sure i've got it right...
> on AIX, the initgroups(3) system call, prints a message on stderr and return
an
> error when the underlying call to setgroups fails.

Exactly.  There's no reason to print a message, it should just return
the error.

-Larry Jones

He just doesn't want to face up to the fact that I'll be
the life of every party. -- Calvin







Re: pserver problem in moving from 1.10 to 1.10.8

2000-05-05 Thread Larry Jones

[EMAIL PROTECTED] writes:
> 
> $cvs status -v readme.txt
> setgid failed: Not owner
> cvs status: authorization failed: server  rejected access

If you're going to run pserver as a non-root user, you *must* use a
CVSROOT/passwd file to map all of the cvs users to the user you're
running pserver as.

> I think i dont have the latest version of the server.c file (as I had to
> manually make the change on line 5084 instead of 5114 in your patch).
> How do I know what revision of server.c i am using? How do i get the latest cvs
> tarball with any patches? I've got cvs 1.10.8

The patch was against the current development version, but `patch'
should have been able to apply it to 1.10.8 (with an offset).  There
isn't any way to tell what version of a particular file you've got
(unless you've got it checked out from the public CVS repository), but
it presumably matches the CVS release you've got.  There haven't been
any releases since 1.10.8, so the only way to get anything more recent
is to check out the current development release from the CVS repository
(details are at http://www.cyclic.com.), but you shouldn't need to do
that.

> P.S. -> Making sure i've got it right...
> on AIX, the initgroups(3) system call, prints a message on stderr and return an
> error when the underlying call to setgroups fails.

Exactly.  There's no reason to print a message, it should just return
the error.

-Larry Jones

He just doesn't want to face up to the fact that I'll be
the life of every party. -- Calvin




Re: pserver problem in moving from 1.10 to 1.10.8

2000-05-04 Thread Aditya . Sanghi




Larry,

Hi! I changed the source according to your suggestion and the following happened
 ->

$cvs status -v readme.txt
setgid failed: Not owner
cvs status: authorization failed: server  rejected access

Please let me know if you need more information about my setup

I think i dont have the latest version of the server.c file (as I had to
manually make the change on line 5084 instead of 5114 in your patch).
How do I know what revision of server.c i am using? How do i get the latest cvs
tarball with any patches? I've got cvs 1.10.8

Thanks heaps,
aditya

P.S. -> Making sure i've got it right...
on AIX, the initgroups(3) system call, prints a message on stderr and return an
error when the underlying call to setgroups fails.

Larry Jones wrote ->
Whoever wrote the initgroups(3) function decided that
it wasn't sufficient to just return an error if the underlying call to
setgroups fails, he or she decided to print a message to stderr as well!
This, of course, is a complete travesty.  If you have source code, it's
easily fixed; in either case, you should submit a bug report to whoever
maintains your OS.






[EMAIL PROTECTED] on 05/05/2000 06:17:07
  
  
  
 To:  [EMAIL PROTECTED]   
  
 cc:  Aditya Sanghi/Net@Saville, [EMAIL PROTECTED] 
  
  
      
 Subject: Re: pserver problem in moving from 1.10 to 1.10.8   
  







Larry Jones writes:
>
> I strongly suggest kicking the IBM machinery so that it eventually gets
> fixed, but in the meantime, you can use the following (unofficial and
> unlikely to be adopted into the main source tree) patch:

Sorry, that escaped prematurely.  Here's the patch:

diff -u -r1.227 server.c
--- server.c2000/05/04 19:21:10 1.227
+++ server.c2000/05/04 19:22:09
@@ -5114,7 +5114,7 @@
 }

 #if HAVE_INITGROUPS
-if (initgroups (pw->pw_name, pw->pw_gid) < 0
+if (geteuid() == 0 && initgroups (pw->pw_name, pw->pw_gid) < 0
 #  ifdef EPERM
/* At least on the system I tried, initgroups() only works as root.
   But we do still want to report ENOMEM and whatever other

-Larry Jones

Another casualty of applied metaphysics. -- Hobbes






Re: pserver problem in moving from 1.10 to 1.10.8

2000-05-04 Thread Larry Jones

Larry Jones writes:
> 
> I strongly suggest kicking the IBM machinery so that it eventually gets
> fixed, but in the meantime, you can use the following (unofficial and
> unlikely to be adopted into the main source tree) patch:

Sorry, that escaped prematurely.  Here's the patch:

diff -u -r1.227 server.c
--- server.c2000/05/04 19:21:10 1.227
+++ server.c2000/05/04 19:22:09
@@ -5114,7 +5114,7 @@
 }
 
 #if HAVE_INITGROUPS
-if (initgroups (pw->pw_name, pw->pw_gid) < 0
+if (geteuid() == 0 && initgroups (pw->pw_name, pw->pw_gid) < 0
 #  ifdef EPERM
/* At least on the system I tried, initgroups() only works as root.
   But we do still want to report ENOMEM and whatever other

-Larry Jones

Another casualty of applied metaphysics. -- Hobbes




Re: pserver problem in moving from 1.10 to 1.10.8

2000-05-04 Thread Larry Jones

[EMAIL PROTECTED] writes:
> 
> e.g.
> cvs [update aborted]: unrecognized auth response from goanna: setgroups: Not
> owner
[...]
> Larry, i know you told me that could be a hideous AIX bug. Is there an easier
> workaround than moving the IBM machinery to send out an AIX patch?

I strongly suggest kicking the IBM machinery so that it eventually gets
fixed, but in the meantime, you can use the following (unofficial and
unlikely to be adopted into the main source tree) patch:




pserver problem in moving from 1.10 to 1.10.8

2000-05-03 Thread Aditya . Sanghi




Hi CVSers HLP!!

Operating System : AIX 4.3
CVS Mode : pserver
CVS Version : 1.10

We used to get the following irritating warning from cvs server on runnning
every cvs command.

e.g.
cvs update: warning: unrecognized response `setgroups: Not owner' from cvs
server


Now i've (tried) to move to CVS 1.10.8 and I cant run any cvs command!!

e.g.
cvs [update aborted]: unrecognized auth response from goanna: setgroups: Not
owner


The entry in /etc/inetd.conf is as follows:

cvspserver stream   tcp nowait  cvsowner /path/to/cvs/bin/cvs cvs
--allow-root=/path/to/cvs/repository pserver

(The pserver runs as cvsowner not root).


Larry, i know you told me that could be a hideous AIX bug. Is there an easier
workaround than moving the IBM machinery to send out an AIX patch?

thanks in advance,
aditya