Gentoo Archives: gentoo-user

From: "Linlin Yan (颜林林)" <yanlinlin82@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Why is iptables-xml (in net-firewall/iptables) in /usr/bin/ rather than /sbin/
Date: Tue, 22 Oct 2013 14:59:34
Message-Id: CA+YjnUt19x=3eo83_vusGikUw95O5COmONGEnNQvK+phT1RC-A@mail.gmail.com
In Reply to: Re: [gentoo-user] Why is iptables-xml (in net-firewall/iptables) in /usr/bin/ rather than /sbin/ by Michael Orlitzky
1 I see. Thanks for the explanation!
2
3
4 On Tue, Oct 22, 2013 at 10:15 PM, Michael Orlitzky <michael@××××××××.com> wrote:
5 > On 10/22/2013 10:02 AM, Linlin Yan (颜林林) wrote:
6 >> Hi there,
7 >>
8 >> After net-firewall/iptables-1.4.16.3 (amd64) installed, I occasionally
9 >> found that it put iptables-xml ('s symbolic link) in /usr/bin/, but
10 >> other tools (like iptables-restore and iptables-save) are not. Is
11 >> there any trick about this?
12 >>
13 >
14 > The others are in /sbin because,
15 >
16 > a) They can't be run by anyone other than root
17 >
18 > b) You want them available at boot time
19 >
20 > But as a normal user, suppose I have an old iptables-save dump lying
21 > around. There's no problem with me running iptables-xml on it, since
22 > that will just read a file and write some XML to stdout. No special
23 > privileges necessary.
24 >
25 >