Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

how to remove logout option and leave shutdown/reboot option to RH logout button

Posted on 2004-10-15
6
217 Views
Last Modified: 2013-12-16
i am building a Linux machine using RH 8.0.  i've got two seperate desktops, one for the user and one for the administrator.  i'm required to set the user's id to automatically login on boot so that my users won't have to remember a username & pwd.  in doing this, i also need to eliminate the option of logging out of the machine as that user.  (i'm using a seperate session for the administrator)  i have the logout button on the taskbar.  i need to do one of two things.  i either need to eliminate the logout options, keeping the shutdown & reboot options, or i need to make it so that if the logout option is selected, the user is automatically logged right back into the machine.  i've looked at modifying the .bash_logout file to do the latter but i have no experience with these shell scripts.  thanks in advance for any help.
0
Comment
Question by:kris-mayco
  • 4
  • 2
6 Comments
 
LVL 6

Expert Comment

by:blkline
ID: 12324414
I think you want to edit /etc/X11/gdm/gdm.conf.

The comments I found there:
[daemon]
# Automatic login, if true the first local screen will automatically logged
# in as user as set with AutomaticLogin key.
AutomaticLoginEnable=false
AutomaticLogin=
                                                                                                                             

0
 
LVL 6

Expert Comment

by:blkline
ID: 12324439
I just tested this with my system:

AutomaticLoginEnable=true
AutomaticLogin=klinebl

I did an init 3, then init 5 to restart GDM and it came right up as my user.
0
 
LVL 6

Accepted Solution

by:
blkline earned 350 total points
ID: 12324476
Another change -- you also need to change:
# Timed login, useful for kiosks.  Log in a certain user after a certain
# amount of time
TimedLoginEnable=true
TimedLogin=klinebl
TimedLoginDelay=10

If you don't the users can log out.  If you make the change, then the user will be automatically logged in after the time delay, allowing you to log in as another user prior to then.

0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:kris-mayco
ID: 12348131
i will definately use the timed login.  already tested it and it works pretty good.  i had already been using the autologin listed in the first comment.  i'm still being told that i need to remove the logout option from the logout box that appears.  got any ideas on how to do that?  thanks a ton for your help.  
0
 
LVL 6

Expert Comment

by:blkline
ID: 12351044
I don't have a RH8 box to test this and I'm just going on memory here.  You can remove the log off button on the task bar by simply right-clicking on it and select remove from panel.

Removing it from the start-up menu is a different story.  From what I could find on the net, you should look here:

/etc/X11/desktop-menus/applications.menu

I woudn't be too excited about removing it from the menu -- what if you want to log off the user (to reset all of his/her programs) or want to log on as adminsitrator?   You'll need to be able to log the user off.
0
 

Author Comment

by:kris-mayco
ID: 12359932
thanks for your help.  the end goal is to not have a logoff button at all and setup two sessions so that an administrator would hit "ctr alt f8" to get to the login screen to logon as root.  this isn't exactly what i think is best but what my boss says is best so not much i can do about it.  considering have the users i work with can't use a mouse we have to make it as secure as possible.  between the timer and the menus i should find a viable solution.  thanks
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question