Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 2003 13:52:45 -0700
From:      "Crist J. Clark" <crist.clark@attbi.com>
To:        cyrille.lefevre@laposte.net, freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/50739: Maintainer update: astro/setiathome (nobody->setiathome)
Message-ID:  <20030411205245.GA84569@blossom.cjclark.org>
In-Reply-To: <20030411200506.GA36868@gits.dyndns.org>
References:  <200304090512.h395CGrJ014714@freefall.freebsd.org> <20030411200506.GA36868@gits.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 11, 2003 at 10:05:06PM +0200, Cyrille Lefevre wrote:
[snip]

> Hi,
> 
> someone reports me that the newer wrapper don't work w/ an account
> using the csh as the login shell such as the default root account.
> I don't see this problam since my root account uses a bourne like
> shell.
> 
> so, could you replace 'su -fm' by 'SHELL=/bin/sh su -fm' in
> files/setiathome.sh.

That will not fix the problem. The shell spawned by su(1) will still
be the user's login shell. At least that's what my understading of
su(1) and some quick tests show.

How about,

		( echo "\
			cd ${seti_wrkdir}/${i} || exit; \
			.
			.
			.
			done > /dev/null" |
		su -fm ${seti_user} /bin/sh ) &

Not pretty, but it should do what you want.
-- 
Crist J. Clark                     |     cjclark@alum.mit.edu
                                   |     cjclark@jhu.edu
http://people.freebsd.org/~cjc/    |     cjc@freebsd.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030411205245.GA84569>