From owner-freebsd-questions Sun Dec 31 4:51:27 2000 From owner-freebsd-questions@FreeBSD.ORG Sun Dec 31 04:51:24 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from smtp1.kolumbus.fi (smtp1.kolumbus.fi [193.229.0.36]) by hub.freebsd.org (Postfix) with ESMTP id A620237B402 for ; Sun, 31 Dec 2000 04:51:23 -0800 (PST) Received: from autumn (a45d14hel.dial.kolumbus.fi [212.54.29.45]) by smtp1.kolumbus.fi (8.9.0/8.9.0) with SMTP id OAA12034; Sun, 31 Dec 2000 14:51:16 +0200 (EET) Message-ID: <000c01c07328$c0898d20$03018ea8@autumn.atrocity.fi> From: "Acidia Atrocity" To: "G D McKee" Cc: Subject: Re: how to override secure_path in 4.2-stable Date: Sun, 31 Dec 2000 14:53:58 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Yes I've always used vipw. The problem really is that _secure_path denies the homedirectory to be anywhere else than in primary disk, and I can't find where to override that. My main goal is to make a user that can only connect via ftp, and Im going to chroot/ftpchroot the user to my other disk. But in chroot I cannot define WHERE the root is, it checks it from passwd and when stat tries to open ~/.login_conf it fails, no matter what rights the file has. ~/Acidia -----Original Message----- From: G D McKee To: Acidia Atrocity Date: 31 December 2000 02:44 Subject: Re: how to override secure_path in 4.2-stable Hi Have you tried editing the passwd file using vipd and not just the normal version of vi. G D McKee ----- Original Message ----- From: Acidia Atrocity To: questions@FreeBSD.ORG Sent: Saturday, December 30, 2000 9:18 PM Subject: how to override secure_path in 4.2-stable I have a freebsd 4.2-stable (just cvsupped) and I encountered a problem here. I had a user which's home directory was set to a different hard drive and directory, and it worked fine in 4.1-release. Now it complains that it cannot stat the .login_conf in the new homedirectory. The complaint comes from _secure_path. I've not been able to find any clues how to disable that. If I login with the user thats homedir is moved, it says no home, logging in with "/". The users homedir is made with adduser, and it creates the user/homedir successfully and the user has proper access to the dir/hd. My primary disk is at /dev/wd0, and the one I'm trying to use as home is /dev/wd1s1 Any ideas? /etc/login.conf does not provide help. requirehome=false doesnt seem to have any effect (ran cap_mkdb of course). ~/A To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message