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

[ossec-dev] Re: cvs issue



one way to fix it is to give g+w and g+s

On 8/27/06, gentuxx <gentuxx@xxxxxxxxx> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Daniel Cid wrote:
>
> Hi Charlie,
>
> You were supposed to have write permissions (just like everyone else with
> cvs access). Looking at the permissions for this file, it has rw for
> everyone
> in the ossec-web group (which you are). I know Meir committed some stuff
> lately and he has the same permissions as you... I will double check
> the server lately to see if there is anything that I am missing..
>
> *Meir, Ahmet or Rafael, can you guys try a cvs commit? Just to see
> if anyone else has this problem...

FWIW, I think I might have figured out the issue, but I'm not sure as
I'm still relatively new to CVS, and I'm not 100% positive about some of
the inner workings.  But, I took a look at the /usr/cvsroot directory on
dev.ossec.net, and the perms are 0755 for the ossec-hids
module/directory.  So only dcid can add/modify files at the "virtual"
root.  Relative to the actual CVSROOT, I was trying to modify a file
(BUGS) at that level, which, the file itself *does* have sufficient
permissions.  However, if you look closely at the error, the following line:

`/usr/cvsroot/ossec-hids/,BUGS,': Permission denied

...indicates to me that it's trying to write a new file (,BUGS,), which
falls back to the perms of the parent directory (IIRC), before it
replaces 'BUGS,v' with the modified version.  So, since the ossec-web
group doesn't have write perms to the /usr/cvsroot/ossec-hids directory,
it fails when attempting to create the file.

Make sense?

I was able to more or less confirm this by add'ing and commit'ing the
config2xml file to the ${CVSROOT}/ossec-hids/contrib directory, which
worked fine.

>
> Thanks!
>
> --
> Daniel B. Cid
> dcid ( at ) ossec.net
>
> On 8/26/06, gentuxx <gentuxx@xxxxxxxxx> wrote:
>>
> Hi Daniel, et al.
>
> I just wanted to check if/what permissions were set on the cvs.  I tried
> a trivial commit and it failed:
>
> Checking in BUGS;
> /usr/cvsroot/ossec-hids/BUGS,v  <--  BUGS
> new revision: 1.11; previous revision: 1.10
> cvs [server aborted]: could not open lock file
> `/usr/cvsroot/ossec-hids/,BUGS,': Permission denied
> cvs commit: saving log message in /tmp/cvssXTMdg
>
> Here's the log:
> Description:
> Added link to bugzilla.
> Reviewed by:
> Charlie (gentuxx@xxxxxxxxx)
> Bug:
>
> It's cool if I don't have commit access, I don't think there's anything
> that I can really contribute to the code, itself - at least not yet.
> But I just wanted to make sure things were as they're supposed to be.
> ;-)
>
> -C
>
> --
> gentux
> echo "hfouvyyAhnbjm/dpn" | perl -pe 's/(.)/chr(ord($1)-1)/ge'
>
> gentux's gpg fingerprint ==> 5495 0388 67FF 0B89 1239  D840 4CF0 39E2
> 18D3 4A9E
>>

- --
gentux
echo "hfouvyyAhnbjm/dpn" | perl -pe 's/(.)/chr(ord($1)-1)/ge'

gentux's gpg fingerprint ==> 5495 0388 67FF 0B89 1239  D840 4CF0 39E2
18D3 4A9E
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE8SZRTPA54hjTSp4RAk6LAKDEDpoy2NqWc5Ub+fppnfR5hQ2WcACgmWrW
5T0OsXVl6bCtfj+btiQyTSk=
=mYlA
-----END PGP SIGNATURE-----


OSSEC home | Main Index | Thread Index


OSSEC project: www.ossec.net.
Mailling list information: http://www.ossec.net/en/mailing_lists.html.