Solved

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

Posted on 2004-10-15
6
214 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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
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 …
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.

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now