Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cvs checkout setuid failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
msulli1355
Apprentice
Apprentice


Joined: 24 Nov 2005
Posts: 179
Location: OKlahoma, USA

PostPosted: Wed Sep 26, 2012 6:30 pm    Post subject: cvs checkout setuid failed Reply with quote

I have a programming project stored on a CVS server on my LAN. A few months ago I had to completely reinstall the Gentoo system on that machine. I hadn't worked on the project since before that, but I restored the backups I had of /etc, /home, and the /var/lib/cvsd. Anyway, this was, as I said, a few months ago. The cvs server is running. I can log in. I just can't check out the project:

michael@camille ~ $ cvs login
Logging in to :pserver:michael@carter.espersunited.com:2401/root
CVS password:
michael@camille ~ $ cvs checkout ourrpg
setuid failed: Operation not permitted
michael@camille ~ $


I cannot figure this out! Here's my config:

carter ~ # cat /etc/cvsd/cvsd.conf

RootJail /var/lib/cvsd
Uid cvsd
Gid cvsd
Nice 1
Umask 027
Limit coredumpsize 0
PidFile /var/run/cvsd.pid
Listen 192.168.2.2:2401
MaxConnections 10
Log syslog info
Repos /root

carter ~ # grep cvsd /var/log/messages
Sep 26 09:28:30 carter cvsd[13392]: connection from 192.168.2.3 48060
Sep 26 09:28:30 carter cvsd[13392]: cvs command exited with exit-status 1
Sep 26 09:28:36 carter cvsd[13392]: connection from 192.168.2.3 48061
Sep 26 09:28:36 carter cvsd[13392]: cvs command exited with exit-status 0
Sep 26 09:28:45 carter cvsd[13392]: connection from 192.168.2.3 48062
Sep 26 09:28:45 carter cvsd[13392]: cvs command exited with exit-status 1
Sep 26 10:15:21 carter cvsd[13392]: connection from 192.168.2.3 48152
Sep 26 10:15:21 carter cvsd[13392]: cvs command exited with exit-status 1
Sep 26 10:19:45 carter cvsd[13392]: connection from 192.168.2.3 48153
Sep 26 10:19:45 carter cvsd[13392]: cvs command exited with exit-status 1
Sep 26 10:20:33 carter gpasswd[13860]: user michael added by root to group cvsd
Sep 26 10:21:06 carter cvsd[13392]: connection from 192.168.2.3 48154
Sep 26 10:21:06 carter cvsd[13392]: cvs command exited with exit-status 1
Sep 26 10:36:37 carter distccd[13055]: (dcc_job_summary) client: 192.168.2.2:46302 COMPILE_OK exit:0 sig:0 core:0 ret:0 time:290ms i686-pc-linux-gnu-gcc cvsd.c
Sep 26 10:39:08 carter cvsd[13392]: caught signal SIGTERM (15), shutting down
Sep 26 10:39:08 carter cvsd[13392]: version 1.0.7 bailing out
Sep 26 10:39:08 carter cvsd[4014]: version 1.0.7 starting
Sep 26 10:39:08 carter cvsd[4014]: listening on 192.168.2.2 2401
Sep 26 10:39:08 carter cvsd[4014]: accepting connections
Sep 26 10:39:18 carter cvsd[4014]: connection from 192.168.2.3 48478
Sep 26 10:39:18 carter cvsd[4014]: cvs command exited with exit-status 1
Sep 26 10:39:22 carter cvsd[4014]: connection from 192.168.2.3 48479
Sep 26 10:39:22 carter cvsd[4014]: cvs command exited with exit-status 0
Sep 26 10:39:28 carter cvsd[4014]: connection from 192.168.2.3 48480
Sep 26 10:39:28 carter cvsd[4014]: cvs command exited with exit-status 1
Sep 26 10:40:45 carter cvsd[4014]: caught signal SIGTERM (15), shutting down
Sep 26 10:40:45 carter cvsd[4014]: version 1.0.7 bailing out
Sep 26 10:40:45 carter cvsd[4076]: version 1.0.7 starting
Sep 26 10:40:45 carter cvsd[4076]: listening on 192.168.2.2 2401
Sep 26 10:40:45 carter cvsd[4076]: accepting connections
Sep 26 10:40:52 carter cvsd[4076]: connection from 192.168.2.3 48482
Sep 26 10:40:52 carter cvsd[4076]: cvs command exited with exit-status 1
Sep 26 11:51:37 carter cvsd[4076]: connection from 192.168.2.3 48488
Sep 26 11:51:37 carter cvsd[4076]: cvs command exited with exit-status 1
Sep 26 11:57:21 carter gpasswd[4623]: user michael added by root to group cvsd
Sep 26 11:58:07 carter cvsd[4076]: connection from 192.168.2.2 50133
Sep 26 11:58:07 carter cvsd[4076]: cvs command exited with exit-status 0
Sep 26 11:58:18 carter cvsd[4076]: connection from 192.168.2.2 50134
Sep 26 11:58:18 carter cvsd[4076]: cvs command exited with exit-status 1
Sep 26 13:15:58 carter cvsd[4076]: connection from 192.168.2.3 48823
Sep 26 13:15:58 carter cvsd[4076]: cvs command exited with exit-status 0
Sep 26 13:16:06 carter cvsd[4076]: connection from 192.168.2.3 48824
Sep 26 13:16:06 carter cvsd[4076]: cvs command exited with exit-status 1

If there is any other information I can provide to help diagnose this problem, please tell me...
Back to top
View user's profile Send private message
msulli1355
Apprentice
Apprentice


Joined: 24 Nov 2005
Posts: 179
Location: OKlahoma, USA

PostPosted: Sun Sep 30, 2012 11:00 pm    Post subject: Reply with quote

Some more data:

carter ourrpg # /etc/init.d/cvsd stop
* Stopping cvsd ... [ ok ]
carter ourrpg # cvsd -d
cvsd: debug: reading config file (/etc/cvsd/cvsd.conf)
cvsd: debug: done reading config file
cvsd: debug: cvscmd: /bin/cvs
cvsd: debug: cvsargs[0]: cvs
cvsd: debug: cvsargs[1]: -f
cvsd: debug: cvsargs[2]: --allow-root=/root
cvsd: debug: cvsargs[3]: pserver
cvsd: debug: cvsenv[0]: HOME=/
cvsd: debug: cvsenv[1]: PATH=/bin
cvsd: debug: cvsenv[2]: SHELL=/bin/sh
cvsd: debug: cvsenv[3]: TMPDIR=/tmp
cvsd: debug: cvsenv[4]: CVSUMASK=027
cvsd: version 1.0.7 starting
cvsd: debug: binding 192.168.2.2 2401 family=2 socktype=1 protocol=6
cvsd: listening on 192.168.2.2 2401
cvsd: debug: chroot(/var/lib/cvsd) done
cvsd: debug: nice(1) done
cvsd: debug: setgroups(0,NULL) done
cvsd: debug: setgid(1022) done
cvsd: debug: setuid(106) done
cvsd: debug: cvs command to execute: '/bin/cvs -f --allow-root=/root pserver'
cvsd: accepting connections
cvsd: connection from 192.168.2.3 49176
cvsd: debug: fork() succeeded (child pid=6032)
cvsd: debug: limit coredumpsize to 0(soft) and 0(hard)
cvsd: debug: select() failed (ignored): Interrupted system call
cvsd: cvs command exited with exit-status 0
cvsd: connection from 192.168.2.3 49178
cvsd: debug: fork() succeeded (child pid=6040)
cvsd: debug: limit coredumpsize to 0(soft) and 0(hard)
cvsd: debug: select() failed (ignored): Interrupted system call
cvsd: cvs command exited with exit-status 1

michael@camille ~ $ cvs login
Logging in to :pserver:michael@carter.espersunited.com:2401/root
CVS password:
michael@camille ~ $ cvs checkout ourrpg
setuid failed: Operation not permitted
Back to top
View user's profile Send private message
msulli1355
Apprentice
Apprentice


Joined: 24 Nov 2005
Posts: 179
Location: OKlahoma, USA

PostPosted: Sun Sep 30, 2012 11:18 pm    Post subject: Reply with quote

I commented out the RootJail line in cvsd.conf and now whenever I try to log in (or do anything with the cvs client) I get:

michael@camille ~ $ cvs login
Logging in to :pserver:michael@carter.espersunited.com:2401/root
CVS password:
cvs [login aborted]: unrecognized auth response from carter.espersunited.com: cvs: cannot open /root/CVSROOT/config: Permission denied

carter ~ # ls -l /var/lib/cvsd/root/CVSROOT/config
-rwxrwxr-x 1 cvsd cvsd 4082 Sep 26 10:38 /var/lib/cvsd/root/CVSROOT/config

Those permissions SHOULD be correct, shouldn't they? I start the server with /etc/init.d/cvsd start/restart, so it's running as user cvsd...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum