info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird Error


From: Larry Jones
Subject: Re: Weird Error
Date: Mon, 23 Apr 2001 11:33:34 -0400 (EDT)

address@hidden writes:
> 
> And when I checkout the modules file using 'cvs checkout CVSROOT' edit and
> try to check it in cvs gives me an error:
> ]# cvs [commit aborted]: cannot commit files as 'root'
> whats the deal?

Because "root" is typically used by multiple people, CVS by default
doesn't allow root to do commits unless it can figure out who you really
are, since it wouldn't be possible to know who really made the changes
otherwise.  To try to figure out who you really are, CVS tries
getlogin(), $LOGNAME, and $USER, in that order; the first one that
returns a value is used (of course, if the value returned is "root", it
doesn't do any good).  Typically, if you log in as yourself and then su
to root, getlogin() will return your real username and everything will
work.  If you're determined to do commits as root, look for CVS_BADROOT
in src/options.h and follow the directions there.

> Oh one more question, how do i set cvs up in server mode??

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

-Larry Jones

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]