Date: Sun, 31 Dec 2000 14:53:58 +0200 From: "Acidia Atrocity" <acidia@kolumbus.fi> To: "G D McKee" <freebsd@gdmckee.com> Cc: <questions@freebsd.org> Subject: Re: how to override secure_path in 4.2-stable Message-ID: <000c01c07328$c0898d20$03018ea8@autumn.atrocity.fi>
next in thread | raw e-mail | index | archive | help
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 <freebsd@gdmckee.com>
To: Acidia Atrocity <acidia@kolumbus.fi>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000c01c07328$c0898d20$03018ea8>
