From owner-freebsd-questions@freebsd.org Wed Jul 26 01:32:37 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 46084DADBBD for ; Wed, 26 Jul 2017 01:32:37 +0000 (UTC) (envelope-from jd1008@gmail.com) Received: from mail-it0-x244.google.com (mail-it0-x244.google.com [IPv6:2607:f8b0:4001:c0b::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 08EF36FCFF for ; Wed, 26 Jul 2017 01:32:37 +0000 (UTC) (envelope-from jd1008@gmail.com) Received: by mail-it0-x244.google.com with SMTP id r9so9820559ita.3 for ; Tue, 25 Jul 2017 18:32:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=z0f7SqTE/v1eo9/+wITdZg6DW4kSipu6v8QpCBml/kw=; b=dvYJUUfSX3/m+N4YtjzFSqPpwJ9J50djPeO1rybGf3dQiCUrxBiSUhiwwnBK7+SL5k W4cWrirYl4yhl5/0CoYK+Pf12vkpplEkDpIpTG80PrWgQsGBNdIWvgNItlBmCob9xeQP Yas3B69feR2SdaqqZZnBXvhJq4yWfes1Fu2HYXQygpHeFf56+VNjanm6kos67sS34pfq byUjI38RwL7XxApvZnzMsRCD6qtwH2uTsDjbgWCQ0KtG6zdl4S6D4redWtyMiTQbElUW h2eVHj4yge+4xYebmWzxVBnc+ZVqbzUge5xqkupeEbkeVHY9Zi74bybQEj5SXFCsaWwI 5fqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=z0f7SqTE/v1eo9/+wITdZg6DW4kSipu6v8QpCBml/kw=; b=G4MDi7BwDAPoKlNVtxS6gJizXaTP98QHcZwwylKCSyuiG8pudyK44IcQz5iDzYoy3P cbEdmxor+jXJFzYz1HlLjEr/M3GTclvJ7kG2PAxMDdrizZ7SGU0DLeaKQNBg4qByUQZ5 t0Bj3bZN0klTCW+oEJE9zxyvhc3wTbxykGQKpFmt7rIPytW0Cw5eTvkSAkOH1lss0OoK 34lAz6qYPv6/0towp37Gi0G3tF/fizfXzbXMhWMqDMnN1jjvpbzfa3aNXU7bJVEMV8g9 mNkliIyd3ANOamW8EbSLa5sv/L99k0hyUN3VteYJoP3tBIzB+xE3TYGKdHJ9+jndKqfS o3yA== X-Gm-Message-State: AIVw111xMWOft2wzNWa/MGDBLX+YhG1QaK2k2jYh4OANIXEoZVTQ4c3O WnLXKlIqf+D7aX1d X-Received: by 10.36.170.69 with SMTP id y5mr12632695iti.143.1501032756159; Tue, 25 Jul 2017 18:32:36 -0700 (PDT) Received: from localhost.localdomain (50-243-4-3-static.hfc.comcastbusiness.net. [50.243.4.3]) by smtp.googlemail.com with ESMTPSA id 77sm3074470itw.3.2017.07.25.18.32.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Jul 2017 18:32:35 -0700 (PDT) Subject: Re: FreeBSD-11, Mate, Terminal, Gvim To: freebsd-questions@freebsd.org References: <20170725210647.6f4c8fcd.freebsd@edvax.de> <20170725215338.41ea83f0.freebsd@edvax.de> <20170725230437.88caf5bd.freebsd@edvax.de> <20170725231936.3f571dbc.freebsd@edvax.de> <86o9s8w5ja.fsf@elm.localnet> From: JD Message-ID: <5977F134.2020804@gmail.com> Date: Tue, 25 Jul 2017 19:32:36 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 MIME-Version: 1.0 In-Reply-To: <86o9s8w5ja.fsf@elm.localnet> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jul 2017 01:32:37 -0000 On 07/25/2017 03:49 PM, Carl Johnson wrote: > Polytropon writes: > >> On Tue, 25 Jul 2017 21:14:40 +0000, Manish Jain wrote: >>> I found the perfect way to do this : - ) >>> >>> Here is the preparation (as normal user) : >>> >>> su -m root -c 'pw usershow my_normal_user_name &&\ >>> touch /var/xauth.extract && \ >>> chown my_normal_user_name /var/xauth.extract' >>> >>> [ $? -eq 0 ] && xauth extract /var/xauth.extract $DISPLAY >>> >>> Here is the follow-up (as root) : >>> >>> xauth merge /var/xauth.extract >>> >>> Now run whatever X stuff you want as root : - ) >> Yes, working with xauth is much more comfortable than >> setting $DISPLAY and using "xhost +" to wide open. :-) > I just have /root/.Xauthority as a symbolic link to ~/.Xauthority for my > user login. I think that should be safe for me as the sole user on this > system, and I don't have to fool with xhost. On Fedora, root does not need normer user permission to run gui apps. Very DANGEROUS :(