Solved

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

Posted on 2004-10-15
6
215 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Assess most serious Linux privilege escalation bug 17 149
Sendmail STARTTLS error 37 79
How to learn Linux? 10 43
Linux/Apache File Ownership/Permissions 1 53
Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

910 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

23 Experts available now in Live!

Get 1:1 Help Now