From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <547A388C.2030006@gr13.net> Date: Sat, 29 Nov 2014 22:20:12 +0100 From: "Enrico Weigelt, metux IT consult" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: 9fans@9fans.net References: <546981BE.90704@gr13.net> <547A2280.4020407@gr13.net> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Factotum vs SASL Topicbox-Message-UUID: 2f1ead96-ead9-11e9-9d60-3106f5b1d025 On 29.11.2014 20:46, erik quanstrom wrote: Hi, >> So, how would a Plan9 solution for these usecases look like ? > > plan 9 doesn't pretend that the hostowner doesn't fully control the box, > so it doesn't attempt to prevent the hostowner from e.g. turning wireless > on and off. In my scenario, I'm (more precisely: the account I'm using) not the hostowner, just a plain user - in Unix terms: non-root). But that account has the special privileges of controlling the network connections. Other accounts may only choose from a predefined list of connections. The network itself is controlled by some separate service (eg. network manager - which eg. comes quite handy for travelers, etc). Now we need to decide which accounts may control it or just see some status. A traditional unix/linux approach (for local-only) would be handling that via groups and file permissions for the command sockets. The decision then would be done on login time, as the uids and gids are set here. For a plan9-alike approach, I could imagine something where the factotums handle everything, so the service finally just sees an pseudo-user or role, and the host-factotum does the translation, based on some table (similar to /etc/group). For the network-manager example, there could be roles like "network-admin", "network-ctrl", "network-stat". Maybe we could even extend the factotum protocol, so it directly supports roles. hmm, seems that all needs some deeper thoughts ... cu -- Enrico Weigelt, metux IT consulting +49-151-27565287