DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 27th July 2008
darken darken is offline
Port Guard
 
Join Date: May 2008
Posts: 30
Thanked 0 Times in 0 Posts
Default xfce

Slt,
I am obliged to pass in mode(fashion) console to restart the machine.les buttons put out(switch off) and restart who(which) display in XFCE when we close the session, but about is the administrator of session, they always remain tinted. He indeed has to have there a manip which allows to activate them.
Reply With Quote
  #2   (View Single Post)  
Old 27th July 2008
nihonto nihonto is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 65
Thanked 1 Time in 1 Post
Default

Hi there,

as far as I understand your posting you cannot shut down a xfce-session by using the buttons. Instead you have to switch to the console - right?

If this is your problem the following steps should solve it:

You have to edit /etc/sudoers to give the according right. This is a special file that you have to edit (as root) with a special command:

# visudo

... now add the following line somewhere in the appropriate section (doesn't really matter where, as long as it's there):

%users ALL=NOPASSWD:/usr/libexec/xfsm-shutdown-helper (this is the path under OpenBSD, maybe it's a little different under FreeBSD)

Effect is immediate, you don't even need to restart anything. And your User has to be in the group "users".

One last hint: Before you try to edit /etc/sudoers by visudo, you have to get used to the text editor "vi" (if you haven't used it before).

Here you find a detailed description of this solution.

Last edited by nihonto; 27th July 2008 at 10:28 AM.
Reply With Quote
  #3   (View Single Post)  
Old 31st July 2008
tano tano is offline
Port Guard
 
Join Date: Jul 2008
Posts: 16
Thanked 1 Time in 1 Post
Default

I have been able to edit the sudoers file with the regular 'ee'... No problems at all.

In FreeBSD the path is usr/local/etc/sudoers (you should -of course - edit it as root)
Reply With Quote
  #4   (View Single Post)  
Old 31st July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is online now
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,052
Thanked 198 Times in 156 Posts
Default

You should set EDITOR to ee and use visudo if you want to use ee to edit the sudoers file, not edit sudoers file directly.
From visudo(8):

Code:
       visudo edits the sudoers file in a safe fashion, analogous to vipw(8).
       visudo locks the sudoers file against multiple simultaneous edits, pro-
       vides basic sanity checks, and checks for parse errors.	If the sudoers
       file is currently being edited you will receive a message to try again
       later.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #5   (View Single Post)  
Old 31st July 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Thanked 25 Times in 24 Posts
Default

Not on FreeBSD but on OpenBSD:
xfce does not always gets the sudoaers right (greyed shutdown and restart).
However, once sudo has been used on any other app (even CLI), the functions are available.

On FreeBSD, with both GNOME and xfce, the GNOME sudoers functions are available, at the cost of not beeing available to xfce.
When on FreeBSD, GNOME is not installed (sort of as about everything gets installed for xfce "deps"), xfce has access to the sudoers functions.

Must have to do with some other security thinghies a la policykit, fam, gamin, ...
won't keep me awake at nights.
__________________
da more I know I know I know nuttin'
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: Lightest XFCE - Making XFCE lighter and faster vermaden Guides 27 2nd September 2010 12:24 PM
Xfce. Why didnt anyone tell me? neurosis FreeBSD Ports and Packages 4 21st October 2008 03:10 PM
Installing Xfce rex FreeBSD General 9 4th September 2008 04:46 AM
Autostart Xfce ninjatux FreeBSD General 8 16th June 2008 06:47 AM
Xfce on OpenSolaris aleunix Solaris 0 4th June 2008 06:23 AM


All times are GMT. The time now is 11:02 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick