Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 226
  • Last Modified:

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

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
kris-mayco
Asked:
kris-mayco
  • 4
  • 2
1 Solution
 
blklineCommented:
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
 
blklineCommented:
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
 
blklineCommented:
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
kris-maycoAuthor Commented:
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
 
blklineCommented:
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
 
kris-maycoAuthor Commented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now