From owner-freebsd-questions Wed Dec 8 11:10:25 1999 Delivered-To: freebsd-questions@freebsd.org Received: from trixie.teamspirit.com (trixie.teamspirit.com [204.94.66.2]) by hub.freebsd.org (Postfix) with ESMTP id 22A5C151D4 for ; Wed, 8 Dec 1999 11:10:22 -0800 (PST) (envelope-from preeper@cts.com) Received: from sgt361.teamspirit.com (dt2-blk1-hfc-0251-d1db0ca7.rdc1.sdca.coxatwork.com [209.219.12.167]) by trixie.teamspirit.com (8.9.2/8.9.1) with SMTP id LAA09932 for ; Wed, 8 Dec 1999 11:56:57 -0800 (PST) Message-Id: <3.0.5.32.19991208105154.04572390@crash.cts.com> X-Sender: preeper@crash.cts.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Wed, 08 Dec 1999 10:51:54 -0800 To: freebsd-questions@freebsd.org From: Jerry Preeper Subject: chroot and permissions problem Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have submitted to the proftpd list now and still haven't gotten any response, I'm hoping someone here might be able to help. I know it might be a tad off-topic, but not completely since it seems to be something to do with a permissions problem somewhere. I just upgraded to proftpd-pre9 which seems to have broken my chroot scheme that was working fine before with pre2.... I hope someone can help... For each user, I have an ftponly shell that they get assigned to when the account is set up and they are chrooted in the password file like thus... ambooks:pass.:6101:6101::0:0:Bookmaster:/www/domain/htdocs/books/america/./: /bin/ftponly This keeps the ambooks user in his directory and not allow them to cd up... which is working fine. ambooks is a member of the group books. However, what's not working is the permissions on files and such for the user books - this user is chrooted to /www/domain/htdocs/books/ (one level above the user ambooks) and should be able to add, edit, delete files for them or anyone who is a member of books, such as ambooks. This worked in pre2 but not in pre9 - now I get a permission denied error when user books tries to overwrite a file owned by user:group ambooks:books In my /usr/local/etc/proftpd.conf file I have these pertinent entries: DefaultRoot ~ ftponly DefaultRoot ~ books AllowOverwrite on In my /etc/group file, I have this entry books:*:6100:ambooks,books books is both a user and a group I'm not running virtual hosts, and there are a number of DefaultRoot directives (21) which worked prior to the pre9 upgrade. Anyone have any ideas of why the user books would get a permission denied error trying to overwrite or upload files belonging to user:group ambooks:books Jerry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message