Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I get an "rejected acces to DIR for user USER" message, when I try an "cvs login" to my local cvs... BUT everything works just fine, when cvs is set to run as root...

Im running FreeBSD 7.2, here is my config:

/etc/inetd.conf:

cvspserver  stream  tcp nowait  cvs(*)      /usr/libexec/tcpd   /usr/bin/cvs -f --allow-root /tmp/cvs_root pserver

(*) when I set it to root, everyting works just fine

/etc/passwd:

cvs:*:241:241:cvs Owner:/:/usr/sbin/nologin

/etc/group:

cvs:*:241:kriscom

kriscom's ENVIRONMENT:

CVSROOT=:pserver:kriscom@localhost:/tmp/cvs_root

and finally /tmp/cvs_root file permissons:

ls -alsn /tmp/cvs_root/
total 6
2 drwxr-xr-x   3 241  241   512 Aug 20 13:22 .
2 drwxrwxrwt  58 0    0    2048 Aug 20 13:31 ..
2 drwxrwxr-x   3 241  241  1024 Aug 20 13:22 CVSROOT

I did initialized the repository with

su cvs
cvs -d /tmp/cvs_root init

any ideas? thanks in advance!

here is the nmap output

nmap -p cvspserver 127.0.0.1

Starting Nmap 5.50 ( http://nmap.org ) at 2011-08-22 17:50 UTC
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000094s latency).
PORT     STATE SERVICE
2401/tcp open  cvspserver

Nmap done: 1 IP address (1 host up) scanned in 1.18 seconds
share|improve this question
    
I think you are confusing it with module names/paths which are relative to CVS' root... –  krzysiek Aug 22 '11 at 16:10
add comment

1 Answer 1

It's better to not touch /etc/passwd and /etc/group manually, since they are not actually used by most userspace programs. Use pw(8) (preferred) or adduser(8). Can you show nmap -p csvpserver 127.0.0.1 output? If it shows that port is closed than inetd is just unable to resolve "cvs" username and start cvs and you need to add user with one of utils mentioned above.

share|improve this answer
    
oh... I think I did used pw at that time... If I didnt, would a reboot help?... see above for the nmap output... : ) –  krzysiek Aug 22 '11 at 15:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.