LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 06-28-2004, 10:11 AM   #1
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Rep: Reputation: 30
gnome logout/ more options


All I want to do is to change the Gnome logout prompt. If I am in as root then I get a box, when choosing logout from the menu, with the options of reboot, shutdown, or logout. When I am in as me, user, all I get is logout. How do you change this in Gnome 2.6 to show all the options? Or Gnome 2.4?
Thanks in advance.
 
Old 06-30-2004, 06:36 PM   #2
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
About a year ago, when I still used Gnome (2.4, I think), I had similar problem. I don't remember all the details anymore but I think I did something like this:

First, setuid /sbin/shutdown. (This is a security risk! A safer way is to install Super http://olympus.het.brown.edu/cgi-bin...an1/super.1.gz and use it instead.)

Then

# mkdir /var/lock/console
# touch /var/lock/console/username
# chattr +i /var/lock/console/username

(where 'username' of course is YOUR username).

Don't know if this works for Gnome 2.6, though. (There may be yet some surprises. I seem to rember Debian wanting to remove /var/lock/console/username during reboots. You just need to work that out yourself. )
 
Old 06-30-2004, 07:08 PM   #3
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
For 2.4, there are unofficial packages that have been patched to add the extra options for the logout screen.

http://jarno.gmxhome.de/gdm-shutdown/logout.html.

I don't think there is anything for 2.6 though.
 
Old 07-04-2004, 04:20 PM   #4
teek
Member
 
Registered: Jun 2004
Location: The Netherlands; Dordrecht
Distribution: Arch (at the moment)
Posts: 110

Rep: Reputation: 16
I've got the same problem, all I want is that I can shutdown as a user, somehow after installing dropline gnome this is possible but not after a standard install.. I've searched the whole wide web and nothing. Chmodding /sbin/shutdown doesn't work, creating a shutdown.allow file neither (allthough i don't know if i did that correctly). Does anybody know an answer to this problem??
(BTW, I use Slack 10)
 
Old 07-05-2004, 03:32 PM   #5
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
There are several hacks in available in attempting to logout from gnome. I haven't tried any of them, so I can't confirm if they work. It involves messing with /var/run/console.

A search on google will give you some answers:

http://www.google.com/search?q=%2Fva...-8&sa=N&tab=gw
http://groups.google.com/groups?q=/v...-8&sa=N&tab=wg
http://gnome-hacks.jodrell.net/hacks.html?id=31



Edit: Dead Parrot's hack works, at least on Debian.

Supposing your user is named user1
Code:
touch /var/lock/console/user1
chattr +i /var/lock/console/user1
chmod +4755 /sbin/halt
You will get the same log out options that you do in root for user1. I tried it on Gnome 2.6


Last edited by comp12345; 07-05-2004 at 03:54 PM.
 
Old 07-05-2004, 09:58 PM   #6
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Original Poster
Rep: Reputation: 30
it worked!!!
touch /var/lock/console/user1
chattr +i /var/lock/console/user1
chmod +4755 /sbin/halt

Thanks!!! now I have the options I wanted.
Thanks again.
 
Old 07-06-2004, 08:38 AM   #7
teek
Member
 
Registered: Jun 2004
Location: The Netherlands; Dordrecht
Distribution: Arch (at the moment)
Posts: 110

Rep: Reputation: 16
Doesn't work on slackware I could shutdown as a user though when I had dropline gnome installed. But I fell in love with xfce. Maybe I should just install dropline gnome again. I should after that be able to shutdown as a user also in xfce. Well thanx for the suggestions anyway!
edit: oh now I see I'm in a debian thread.. sorry!

Last edited by teek; 07-06-2004 at 08:39 AM.
 
Old 07-06-2004, 03:14 PM   #8
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
For xfce, you don't need to install gnome. Set UID on xfce4-shutdown and then add your user to shutdown.allow.
Code:
chmod u+s xfce4-shutdown
On my system, the files are located at
Code:
/usr/sbin/xfce4-shutdown
/etc/xfce/shutdown.allow
 
Old 07-08-2004, 04:24 PM   #9
teek
Member
 
Registered: Jun 2004
Location: The Netherlands; Dordrecht
Distribution: Arch (at the moment)
Posts: 110

Rep: Reputation: 16
I've got it and it was not difficult at all...
I just did gdmconfig and activated "show actions" in the "security" tab.
Now when I log out I can reboot and shutdown from the gdm interface.
Perfect, thanx a lot for all the suggestions I've certainly learned a lot!
I'll go and tell the people in the other treads now
CU around.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
need VNC to allow 'logout/login' from Gnome (gnome & VNC runs fine) spudler Linux - Networking 3 11-14-2004 11:02 AM
gnome logout options and numlock ? YBA^[x] Slackware 4 08-08-2004 10:30 AM
change Gnome logout to show more options jaa1180 Libranet 0 06-14-2004 09:22 AM
On gnome / x logout run "logout" ?? once here Linux - Software 1 01-09-2004 03:53 PM
no reboot options after first logout in mandrake 9.1 hobylinux Linux - Software 1 08-17-2003 06:59 PM


All times are GMT -5. The time now is 04:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration