Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Oct 2002 02:42:21 +0100
From:      Roman Neuhauser <neuhauser@bellavista.cz>
To:        David Banning <david@skytrackercanada.com>
Cc:        questions@freebsd.org
Subject:   Re: question on su use
Message-ID:  <20021031014221.GS18364@freepuppy.bellavista.cz>
In-Reply-To: <20021030131610.A32093@skytrackercanada.com>
References:  <20021030131610.A32093@skytrackercanada.com>

next in thread | previous in thread | raw e-mail | index | archive | help
# david@skytrackercanada.com / 2002-10-30 13:16:10 -0500:
> I am attempting to create a simple user shell executable which will
> execute a root command.
> 
> su root killall squid
> 
> requests root's password, and then issues a;
> 
> killall: /usr/bin/killall: cannot execute binary file
> 
> while killall executes by root no problem.
> Any idea what's going on here?

    it's not documented particularly well, only in the EXAMPLES section
    of su(1):

    su root -c "killall squid"

-- 
If you cc me or take the list(s) out completely I'll most likely ignore
your message.      see http://www.eyrie.org./~eagle/faqs/questions.html

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?20021031014221.GS18364>