You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, December 25th 2006, 2:13pm

Remove Switch User From K Menu

Does anyone know how to remove Switch User from the K Menu?

editing kdmrc did not work for me.

bram85

Professional

Posts: 948

Location: Eindhoven

Occupation: Software Engineer

  • Send private message

2

Thursday, December 28th 2006, 10:29am

RE: Remove Switch User From K Menu

What did you edit in the KDM configuration?

Make sure you replace the line

Source code

1
ReserveServers=:1,:2,:3


with

Source code

1
ReserveServers=:1
Bram Schoenmakers
KDE Netherlands (www.kde.nl)

3

Thursday, December 28th 2006, 11:10am

that is what I edited, and it did not work.

[General]
ConfigVersion=2.3
ConsoleTTYs=tty1,tty2,tty3,tty4,tty5,tty6
PidFile=/var/run/kdm.pid
ReserveServers=:1
ServerVTs=-7
StaticServers=:0

This post has been edited 1 times, last edit by "smithxi" (Dec 28th 2006, 11:12am)


4

Monday, January 1st 2007, 7:55pm

Not works here..

EasyTarget

Beginner

Posts: 2

Location: Amsterdam

  • Send private message

5

Saturday, January 6th 2007, 3:03pm

User switching does not work on all systems

Same problem for me, the kdmrc lines from bram have no discernable effect and what I would really like is to not have any of the 'Switch User' options appear in KDM, or the KDE menu, or the Screen Locked dialog.

My desire for this is very practical, my graphics hardware/drivers combo cannot handle switching between X consoles, the entire graphics system locks up hard and I'm left with two choices, borrow my neighbours laptop to SSH in and shutdown, or hit the power switch.

I have several casual users (Parents and kids) for this system and while I can educate them that clicking 'Switch User' is fatal, it would be better if I could just disable it.. They already have quite a lot to remember and handle coping with the switch from windoze :-)

If there is no such function, should I put in a Bug/Enhancement request for it?

Basically I feel like I have a 'Make System Unusable' button that is being prominently displayed in my users KDE menu, and whenever the screen is locked.

PS: This is also true for [CTL-ALT-F1,2,3] etc, but that does not concern me since it's a geeky thing to do, and geeks can handle lockups etc..
PPS: This would not be necesscary if consle switching worked under X for all hardware, But that is a different fight/argument.

This post has been edited 1 times, last edit by "EasyTarget" (Jan 6th 2007, 3:07pm)


6

Sunday, January 7th 2007, 12:42am

If you use ReserveServers=:1, you still have an extra X-server available for [switch user] (e.g. you then have server :0 and server :1 available)

So you should keep the option completely blank (e.g.: ReserveServers= )

Be aware that some distros, like suse, also store configurations in /etc/opt/kde3/share/config.

Blanking the option ReserveServers= does not get rid of the switch user option, but since you can't start another X-session with kdm, there is nowhere to switch to.

There is a catch however, if you are logged in at tty1-6, [switch user] will offer that one to switch to.
Perhaps you can avoid that by blanking this option in kdmrc:

# TTYs (without /dev/) to monitor for activity while in console mode.
# Default is ""
ConsoleTTYs=tty1,tty2,tty3,tty4,tty5,tty6


To ensure that the changes are used in kdm, it might be a good idea to restart XDM with rcxdm restart

Regards, Rinse
Help mee om KDE 3.5.5 in het Nederlands te vertalen

EasyTarget

Beginner

Posts: 2

Location: Amsterdam

  • Send private message

7

Tuesday, January 9th 2007, 2:15pm

Thanks Rinse! I did indeed have ReserveServers=:1 in my config, I´ve set it blank and switching users is no longer possible; even though the menu entries are still there they give no alternatives than the current session.
I left ConsoleTTYs as is, It´s rare that there will be any console TTYs in use while my guests are at the system.

I´m still of a mind to check for/submit a RFE asking for a switch to remove the switch user menu entries from KDM, it would still be a better solution. Best would be for ATI to pull their finger out and get console switching working with their drivers, or better still to open source them, and let us do it. :P

8

Tuesday, March 27th 2007, 7:35pm

Well, I found 2 solutions for this:

1. In Kubuntu, choose the recovery option you will be logged as root and start the KDE with startx command. The Switch User is not shown at Kmenu.

2. Get a distro shipping with KDE 3.3: Debian Sarge, CentOS or Linspire/Freespire.

9

Tuesday, March 27th 2007, 8:06pm

option 1 starts linux in the non grafical mode.

Dunno wich runlevel debian/ubuntu uses for that, but on redhat/suse/mandriva, it is runlevel 3.

I'dd suggest to choose a non grafical runlevel in stead of starting in recoverymode or failsafe mode.

recovery/failsafe modes often turn off stuff like acpi, dma, apic, etc. etc, making your system less functional..

also using kde as root is not a good idea.

be aware that users can always start new sessions with the command startx -- :1
(or :2, :3, etc. depending on how many sessions already run_
Help mee om KDE 3.5.5 in het Nederlands te vertalen