From owner-freebsd-xfce@FreeBSD.ORG Mon Oct 15 17:02:18 2012 Return-Path: Delivered-To: xfce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 28657C51 for ; Mon, 15 Oct 2012 17:02:18 +0000 (UTC) (envelope-from duchateau.olivier@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id EF5898FC08 for ; Mon, 15 Oct 2012 17:02:17 +0000 (UTC) Received: by mail-pb0-f54.google.com with SMTP id rp8so5460755pbb.13 for ; Mon, 15 Oct 2012 10:02:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ERb+hm/GpI4wz9SpVQZ5ojggwQCWCe0PybSawDyR8bQ=; b=dRAVzIZDOLui5GLk0frnKRdXoQG3dGMYRUsmi13552vmbVugy0Bmvk3q8ZyGgNlthO BsWk7d8IROI57fGeR61hLnljunBgCaUYkiTSA6ApYFXK6WQsdM3lODw8COolp4rKKiFR HyJMg/DfvnrrrQVjFhw9h0Md5EwYKcUK42yJ/4V0YHiDT2CQ7g+e+GmTpDrCoy6pNzL6 4MdPMNaY5e0lMhWh9QuxwcacBkhRYiUlufe6bpN+dFXo3SUpuV7bUjWMz9k7AH/g43p0 u9n5GV3Ejdm5sJrBpOvz5tUGkNwa81m82JF9nVFlChvfcZbbqzkxqw8Y5B9hprB+a4k+ GUiA== MIME-Version: 1.0 Received: by 10.68.189.5 with SMTP id ge5mr39117932pbc.1.1350320537732; Mon, 15 Oct 2012 10:02:17 -0700 (PDT) Received: by 10.66.193.164 with HTTP; Mon, 15 Oct 2012 10:02:17 -0700 (PDT) In-Reply-To: References: Date: Mon, 15 Oct 2012 17:02:17 +0000 Message-ID: Subject: Re: restart and shutdown permissions From: Olivier Duchateau To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 Cc: xfce@freebsd.org X-BeenThere: freebsd-xfce@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: XFCE for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2012 17:02:18 -0000 How do you launch your session ? With xinitrc file provides by x11-wm/xfce4-session or with your own xinitrc. What's your login manager ? You must use login manager which supports sysutils/consolekit. Like x11/slim, x11/gdm (there's an issue with x11/xdm). What's main group of your user ? You can test with this line: Identity=unix-user:name_of_user 2012/10/15 Warren Block : > Despite having my user as a member of wheel and operator groups, and having > this in > /usr/local/etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla: > > [Restart] > Identity=unix-group:operator > Action=org.freedesktop.consolekit.system.restart > ResultAny=yes > ResultInactive=yes > ResultActive=yes > > [Shutdown] > Identity=unix-group:operator > Action=org.freedesktop.consolekit.system.stop > ResultAny=yes > ResultInactive=yes > ResultActive=yes > > The user still can't restart or shut down with the xfce buttons. The X > session ends, but that's it. It's the same as logout. > > From a terminal window, the user can run shutdown -r now or shutdown -p now > and it works. Those buttons were not enabled until I installed sudo, but it > may be some other permissions thing. I didn't think sudo was required for > this. > > What is missing? > _______________________________________________ > freebsd-xfce@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-xfce > To unsubscribe, send any mail to "freebsd-xfce-unsubscribe@freebsd.org" -- olivier