Solved

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

Posted on 2004-10-15
6
218 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
[X]
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
  • 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux boot cd to do hardware report on PC? 3 80
LINUX backups with VEEAM 8 156
Install XRDP on Ubuntu Server 16.10 x64 3 62
Shrink Linux Swap File Size CentOS 10 28
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 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