Dear Binand and gurus at LIH,

I did create the file cvspserver as per Binand's
sugesstions in the directory /etc/xinetd.d.

I also have rwx rights to all users on  all the files
and the directory CVSROOT under /usr/local/cvsroot
which is my cvs root.So there is universal read write
execute access to the world.

For root user I have expoerted the env. varoables
CVSROOT=:pserver:root@localhost:/usr/local/cvsroot in
/etc/profile and as
CVSROOT=:pserver:username@localhost:/usr/local/cvsroot

in /home/.bash_profile.
I restarted the xinetd daemon and then ran cvs login
for the root user and it gave me following error:

cvs login: authorization failed : server loaclhost
rejected access to /usr/local/cvsrootfor user root.

Why there is authorisation failure?

I do have a symlink to /etc/passwd file from the file
passwd file in /usr/local/cvsroot/CVSROOT directory.

The only change I have in cvspserver file in
/etc/xinetd.d directory is as follows:

env     = HOME=/usr/local/cvsroot
server_args = --allow-root=/usr/local/cvsroot pserver

which is diffrent than what Binand has sugessted.I
could not get the followinfg part from Binand's mail:

"Also, the env = line is important, because of the way
xinetd sets HOME for programs that it spawns. One can
have as many --allow-root entries  as required."


One thing more which I could not get from Dr.Sani's
mail is that he had asked to set the permissions to
file history in $CVSROOT/CVSROOT directory.

Can someone eleborate on it.
Please let me know if I am missing/doing something
very fundamental.



Regards,

Prasad




--- "Binand Raj S." <[EMAIL PROTECTED]> wrote:
> On Wed, Dec 26, 2001 at 01:05:13AM -0800, Prasad
> Paranjape wrote:
> > I ahve instlled cvs in PCQRHL7.1.I have made
> necessary
> > changes in xinetd.conf as mentioned in article by
> > Dr.Tariq Sani in Dec.2001 PCQuest magazine.He
> mentions
> > that the entries are to be done in inetd.conf but
> > xinetd is extended inetd so I made entries in
> > xinetd.conf.I aso created the link to /etc/passwd
> file
> > using "ln -s /etc/passwd passwd" from directory
> > /usr/local/cvsroot/CVSROOT.
> > I have expoeted the Env Variable CVSROOT in
> > .bash_profile as mentioned in the article.
> 
> I should have x-posted this errata to Dr. Sani's
> article here.
> 
> You have to fix the --allow-root argument, and also
> restart xinetd.
> 
> Date: Mon, 17 Dec 2001 12:03:57 +0530
> From: "Binand Raj S." <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Article on CVS in PCQ Dec 2001
> 
> Hi All,
> 
> There is this nice introductory article on CVS in
> PCQ Dec. 2001 issue
> by Dr. Tarique Sani. Though well written and would
> serve as a painless
> initiation to CVS, there is one error(?) that I
> noticed.
> 
> Recent versions of many popular linux distributions
> use xinetd (including
> PCQLinux 7.1). The inetd setup detailed in the
> article is not appropriate
> for xinetd, and it will not work.
> 
> For xinetd, one needs a file
> /etc/xinetd.d/cvspserver as:
> 
> # default: off
> # description: pserver is the CVS server. This runs
> on port 2401.
> 
> service cvspserver
> {
>       socket_type     = stream
>       protocol        = tcp
>       wait    = no
>       user    = root
>       server  = /usr/bin/cvs
>       env     = HOME=/var/cvsroot
>       server_args = --allow-root=/var/cvsroot/block
> pserver
>       disable = no
> }
> 
> Adjust the --allow-root option for your use. Also,
> the env = line
> is important, because of the way xinetd sets HOME
> for programs that
> it spawns. One can have as many --allow-root entries
> as required.
> 
> Binand
> 
> _______________________________________________
> linux-india-help mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/linux-india-help


__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to