Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Oct 2002 10:48:22 -0800
From:      Adam Weinberger <adamw@FreeBSD.ORG>
To:        David Banning <david@skytrackercanada.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: question on su use
Message-ID:  <20021030184822.GY197@vectors.cx>
In-Reply-To: <20021030131610.A32093@skytrackercanada.com>
References:  <20021030131610.A32093@skytrackercanada.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>> (10.30.2002 @ 1016 PST): David Banning said, in 0.4K: <<
> I am attempting to create a simple user shell executable which will
> execute a root command.
> 
> Executing;
> 
> 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?
>> end of "question on su use" from David Banning <<

you can try su root -c killall squid
or you can use sudo ::)

- -Adam


- --
Adam Weinberger
adam@vectors.cx
adamw@FreeBSD.ORG

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE9wCl2o8KM2ULHQ/0RAnLIAJ9mAyb7Zyc0tFdKrga/PFjI1d18gwCg1/5Z
LYVvkjUIGlOAHX/YiNWGK6U=
=edqO
-----END PGP SIGNATURE-----

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?20021030184822.GY197>