problems with portupgrade under non-root user
- From: "Julian C. Dunn" <lists@xxxxxxxxxxxx>
- Date: Mon, 26 Feb 2007 11:29:19 -0500 (EST)
I want to set up a FreeBSD system so that all portupgrades are done by a "portbld" user, which has restricted 'sudo' rights to execute only portupgrade-related commands. To that end, I did the following:
$ sudo chown -R portbld:portbld /usr/ports
$ sudo chown -R portbld:portbld /var/db/sup/ports-all
$ cd /usr/ports && sudo -u portbld make update
(cvsup runs)
(add 'portbld' to sudoers with NOPASSWD: ALL for now)
$ sudo -u portbld portupgrade -s dovecot
Unfortunately this last step doesn't work: ruby dumps core:
Making all in doc
cat dovecot-config.in|sed "s|moduledir=|moduledir=/usr/local/lib/dovecot|"
dovecot-config** Listing the failed packages (*:skipped / !:failed)
! mail/dovecot (dovecot-1.0.r22) (Permission denied)
---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
/usr/local/sbin/portupgrade:2084: [BUG] Segmentation fault
ruby 1.8.5 (2006-12-25) [i386-freebsd6]
Abort trap: 6 (core dumped)
Any ideas here?
- Julian
[ Julian C. Dunn <jdunn@xxxxxxxxxxxx> * "You can throw confetti, ]
[ WWW: www.aquezada.com/staff/julian * but you're still going ]
[ PGP: 91B3 7A9D 683C 7C16 715F * through the motions, baby" ]
[ 442C 6065 D533 FDC2 05B9 * - Aimee Mann ]
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: problems with portupgrade under non-root user
- From: Sergey Matveychuk
- Re: problems with portupgrade under non-root user
- Prev by Date: Re: Pentium 640 and Enhanced SpeedStep
- Next by Date: Re: problems with portupgrade under non-root user
- Previous by thread: anoncvs1
- Next by thread: Re: problems with portupgrade under non-root user
- Index(es):