Slackware :: Telinit 4 - Kdm - Open Console Session Prevents Shutdown - 64 13.37
Jun 4, 2011
I have a question regarding runlevels, shutdown procedure and KDM. I am on a freshly installed Slackware64 13.37 multilib system. The default runlevel in /etc/inittab is set to 3: multiuser w/o X.
Now, I log in as root and issue the command:
Code:
As expected, KDM starts up, and I log in to KDE (or another WM/DE) as a normal users. When I am finished, I either issues
Code:
In Konsole or click on Shutdown in the KDE menu. The shutdown process is initiated, as expected, but then it stops, and a window alerts me, that there is a session open by user 'root'. If I click OK, the machine is finally shut down.
Now, if I interpret this correctly, the behaviour of Slackware64 13.37 has changed here, compared to 13.1. In previous versions, the root seesion was closed, when I changed the runlevel to 4 with the telinit command. Now, the session remains open, obviously.
My question is: Is this the correct behaviour, and isn't this a security whole? An unnoticed (!) open root session while I am surfing the web as an unprivileged user in KDE could be dangerous, I think...
Is it misconfiguration in my system, or is this the way it should be?
View 2 Replies
ADVERTISEMENT
May 13, 2010
I do a clean install of slackware64 13.1 beta1 with KDE and switch default runlevel to 4 in /etc/inittab.
I try to login in kdm, I always come back to the login....
I try this with default runlevel 3 and an .xinitrc with "ck-launch-session startkde" .. works without problems, so I switch back to default runlevel 4, now i can login and only get the error "Cannot open ConsoleKit session: Unable to open session..."
Here are some logs
syslog
Code:
Code:
View 2 Replies
View Related
Jul 14, 2011
I have been looking for a lightweight bandwidth monitoring app and came across bmon. It does what I need. However it has an interesting way of exiting.
when it is running and you close it down it ask you 'Really quit (y/n)' and does not shut down. I am used to just right clicking on my desktop and selecting 'leave' when it comes to shutdown time.
A few times now the laptop hangs on shutdown if bmon is open. I guess it is due to the app asking if it should shutdown. Is there a way to disable the app asking or alternatively nuke it for sure with some script on shutdown.
I could search the relevant konsole running the app and go thru the steps to shut it down but sometimes I am in a hurry and it doesn't feel like the way to go anyhow?
View 3 Replies
View Related
Jun 18, 2010
Since installing Lucid, I find that the shutdown button doesn't work (does nothing) if the OpenOffice.org quickstarter is running. To shutdown I either have to kill the quickstarter or run shutdown manually from a terminal window. Hibernation doesn't work either, although suspension does.
View 7 Replies
View Related
May 4, 2011
I've recently started using Linux Mint (version 10) on a Dell Mini 1012 netbook. I'm using a loop device to mount a file on a NAS but whenever this loop device is mounted and has been accessed, my machine fails to shutdown.
Firstly I mount a share on the NAS using cifs (the NAS is aimed at Windows machines so doesn't support NFS). I have a sparse file on the share (which I created using Cygwin in Windows, using the dd command).
I used losetup to create a loop device and formatted it as reiserfs.This works and I can successfully use the mount point. I'm using it with Backintime.If I try to shutdown my machine without unmounting the loop device, shutdown hangs.
These messages just keep repeating and the system never shuts down.So I assume the problem is something to do with unmounting the CIFS/loop device.If I unmount the loop device all is fine. I don't need to unmount the cifs share.Any ideas on how to resolve? Should I add a script to run during shutdown (i.e linked from /etc/rc0.d and /etc/rc6.d) to sync and unmount the loop device? Or is there a better solution?
View 1 Replies
View Related
Apr 11, 2010
The following message comes up when I boot up: Logging in user Warning: Cannot open ConsoleKit session: Unable to open session: Launch helper exited with unknown return code 0. When I press OK, the system completes the start up and everything looks normal. But when I try to connect to internet, I get the following message:
KNetworkManager cannot start because the installation is misconfigured. System DBUS policy does not allow it to provide user settings; contact your system administrator or distribution. KNetworkManager will not start automatically in future. If I reboot the system, I logg in successfully. So far the problem has appeared approximately upon every second time I boot up. Rebooting the system seems to take care of it.
Don't know what info is of interest. I'm using
Opensuse 11.2
KDE 4.4.2 (Factory)
After upgrade from 4.4.1 to 4.4.2 it worked fine for a week or so.
View 9 Replies
View Related
Apr 12, 2010
hypothetically speaking, can i write a script in which a telnet session is opened and then some more commands are forwarded to that session?
View 4 Replies
View Related
Aug 29, 2011
I have RDP working fine on my machine, however when I am signed in locally to the machine, I get the "console" session, which is fine, but when I want to RDP from another machine, I am put into a separate session, instead of "taking over" the console session.Is there a way to do this, similar to how RDP works on a windows machine?I have tried running the mstsc /console command, but I still get stuck into a non-console session.
View 1 Replies
View Related
Jul 11, 2011
I'd like to remotely administer my Linux machine at home whilst I'm at work. Only ports 80 and 443 are avaiable, through an HTTP proxy. I don't want to install tunnelling software.What I really need is something that'll run on my server and display a console inside a web browser.
View 3 Replies
View Related
Aug 13, 2011
I have a logitech wireless keyboard/mouse, but just lost the tiny usb wireless receiver.
I want to use my laptop as the keyboard for the other machine (Ubuntu 10.10) until I replace the keyboard and mouse.
Is it possible to control the console session's keyboard over ssh? I only want keyboard control, I don't want to use something like VNC because the video is too slow.
EDIT: I'd like to be clear that I want to be able to control gui applications running on the console session, so something like unix screen won't
View 3 Replies
View Related
Mar 2, 2011
I have logged as e.g. user1 via ssh into my machine. Then I perform `su -` to switch to root user and I don't see debug messages which are normally displayed when I log as root via system console.How to display console messages in ssh session ?
View 1 Replies
View Related
Jan 27, 2010
I have configured a squid proxy; it's running, but there was a problem: it does not provide service to client side.
The error was: "could not connect to session manager" "cannot open the network socket"
View 1 Replies
View Related
Oct 27, 2010
Is any way to detect a keypress event in a console session? Preferebly without needing the application to be running in the foreground
View 2 Replies
View Related
Jun 16, 2009
My hard drive's file system has become totally mucked up. I had a few partitions on it, 0 is XP, 1 is vista, 2 is Debian, and 3 is the data. I know that it's this hard drive because when I disconnect it, any liveCD runs ok. After failing to boot puppy linux (liveCD), xp (bootmgr not found), debian (ended in kernal panic), I tried GPARTED. The xp and vista partitions are listed as existing, but they show a problem flag, gparted says they are corrupt, and they are not listed as having a start, end, or any data. However, the main data partition does list a start, end, size, and data space used.
I need to either format those or get into something that will let me access the data partition. Gparted either hangs on boot or doesn't recognise the mouse so I can't reformat the bad partitions. Are there any programs that will ignore the bad partitions and let me access the good ones? Any time I go into a linux distro it either ends up in kernel panic or the mouse doesn't respond. It's hard to explain. With GPARTED, sometimes it hangs at the third line, sometimes it fails at "mounting hard drives", and sometimes it makes it to the GUI but I can't use the mouse. Debian alternates between these as well.
If I keep trying it looks like I can boot, and it will recognise the partitions, but I can't use the mouse. I'm kind of familar with bash, is there a way to start up the terminal with no gui? If I could get a terminal up with a hotkey in the GUI or just start up from a terminal (no gui), I could type mv dev/sda3/ or whatnot. If I could get into a terminal of gparted I could format the bad parts of the drive to see if that would work. Otherwise it looks like I'm going to have to zero out the drive with the WD diag tool. The data isn't life or death, but it would save me some time.
View 3 Replies
View Related
Aug 16, 2009
I use:
OpenSuse 11.1 with KDE.
I wish: no session restoring on login and no confirmation dialog on logout � i.e. OpenSuse should never ask me, if I click on �shutdown� and always start with new session.
I do: So, in �System Settings� -> �Advanced�-Tab -> �Session Manager� I choose follow options:
General:
NO Confirm Logout
NO Offer shutdown option
On Login:
YES Start with an empty session
Default shutdown option:
YES Turn off computer
(finally, it goes disabled)
The problem is:Now I can't shutdown my computer by clicking the �Shutdown� in main menu. I can click it hundred times � nothing happens. Could anybody explain me, why???
As an experiment:If I choose �YES Confirm Logout� and click the �Shutdown�, I will see the confirmation dialog, but with only one option - �Logout�.
View 2 Replies
View Related
Aug 4, 2011
I'm running Ubuntu 11.04 on an IBM Thinkpad T60, when I try to Logoff, Restart, or Shutdown the system just goes to a black screen and I'm forced to do a hard reset to restart the system. I did a reinstall and things seemed to be working fine until I applied updates and reloaded my package list from my previous install then I got the same conditions as before. I suspect that this my be a result of a bad package or update. What I want to know is if their is a way to display console text of the shutdown process so I can see where the system hangs and possibly remove the problem application. I have an AMD 64 bit desktop running with the same package lists and have no issues I suspect it is a hardware specific issue for the laptop or an error with a 32 bit install.
View 1 Replies
View Related
Sep 26, 2010
The umount command sync and release the USB device (pen drive or external HD) from the filesystem, but does not shutdown it, like Nautilus does with the safe remove. How can i properly shutdown it from the command line?
View 7 Replies
View Related
Nov 3, 2010
I tested 10.10 LIVE CD Gnome version.
I did some disk operations on NTFS and FAT volumes.
It worked well.
When I wanted to shutdown from the right upper corner icon,
I got a black screen saying:
(process:272) GLib-WARNING **: getpwuid_r(): failed due to unknown user id (0)
it does not take any keyboard, incl cont+alt+del
may it be a bug?
View 2 Replies
View Related
Jun 28, 2011
I've been beating my head against this one for a few months.I have FF set to start show a blank page at startup - yet it remembers all my previous sessions instead. I've been through the about:config page to try and fix it, but it still won't start fresh after a shutdown.
View 4 Replies
View Related
Nov 14, 2015
I'v installed wmctrl to have a terminal on desktop and I'v configure it with a script I'v found online.I'v add the script to startup menu interface from xfce (I don't know the us name cause I'v it version on system language), when I shutdown I'v save the session, and on the next log in seems that it is run twice, so if I disable the save session button when I log of but in that case it run in the previous status (dir/position)and I want that it run from startup menu from script file....so when I save the session where it save the status??...how can I skip that it run twice with the script running at startup???
#! /bin/bash
xfce4-terminal --hide-menubar --hide-borders --hide-toolbars --title=descon && wmctrl -r descon -e 0,90,10,500,500 && wmctrl -r descon -b add,sticky,below && wmctrl -r descon -b add,skip_pager,skip_taskbarFirst xfce4-terminal
View 0 Replies
View Related
Apr 5, 2010
For some reason the shutdown/hibernate/logout options has disappeared from the Indicator session. I can still set my status in EmpathyI have tried reverting to gnome panel defaults (gconftool --recursive-unset /apps/panel && killall gnome-panel), removing and readding and I've checked synaptics and it seems I have everything indicator-related installed.
View 2 Replies
View Related
Jun 11, 2011
I have done 3 clean installs for this problem and it remains, i don't want to do it from the terminal..(Buttons exists but they won't work...)
View 3 Replies
View Related
Oct 12, 2009
I just upgraded Fedora 10 to Fedora 11. When I rebooted I just had a flashing cursor. So I typed Ctrl-Alt-F2 to open a console window on booting. That worked fine. I was going to edit xorg.conf because I suspected the problem was related to haveing installed the latest Linux NVIDIA drivers (and custom kernal) in Fedora 10 before upgrading to Fedora 11. But, I decided to edit the run level in /etc/inittab first. Unfortunately, I fat fingered run level 3 to runlevel 333. No when booting I get hung up with the error "telinit: illegal run level 333". When I try to use Ctrl-Alt-F2 to open a console window on booting now it doesn't work. How to get into a console window with this error?
View 1 Replies
View Related
Aug 11, 2010
difference between init and telinit?
View 2 Replies
View Related
Jan 26, 2010
I just installed my machine with ubuntu 9.04. When I run "init 3" or "telinit 3", nothing happens. I need to exit the X server to install a video driver.
View 3 Replies
View Related
Feb 1, 2010
Just installed Fedora 12 on a P4 IBM. Everything installed fine. Then, I rebooted, installed updates, and installed a few simple programs (emacs, ssh server). I rebooted since some kernel updates had been made. I can't login anymore. I get a brief message at GDM that says "unable to open session" after I enter my password. Root also doesn't work, but I figured out that root logins are disabled. I found something that recommended disabling selinux, so I reboot with selinux=0 parameter. That still didn't fix the problem, but did initiate selinux to re-label everything on the next boot.
My next thought was that maybe my password got corrupted, so I went into single usermode. I ran passwd justin, so I know that my password is correct. I still can't login via GDM or on a tty.
EDIT: I was also thinking I might need to uninstall something that I did; however, networking is disabled in single usermode, and if I init 3, then I get a login prompt that I can't open. Is there a way that I can enable root login? That might be a starting point to see if it's my user account or a general login problem.
View 4 Replies
View Related
Oct 31, 2010
My Fedora 12 box got that error after some updates on it.
I can login but it's prompting that error and everything will be a black space.
But still no good.
According to the log messages, the ConsoleKit session isn't initializing. I can't paste the logs here coz it's on another laptop.
I could think of just upgrading it to Fedora 13 but there's no way I can backup all of my files on it. Is it just safe to upgrade it?
View 1 Replies
View Related
Mar 11, 2011
Since doing an update (Kubuntu 10.04), this message appears when attempting to log in;
Quote:
Warning: cannot open ConsoleKit session: Unable to open session: the permission of the setuid helper is not correct.
After clicking ok on the above warning, the system logs in, but gives 2 error messages;
- removed sound devices
- KNetworkManager cannot start because the installation is misconfigured. System DBUS policy does not allow it to provide user settings. contact your system administrator or distribution. KNetworkManager will not start automatically in future.
View 2 Replies
View Related
Mar 8, 2011
when I type:
Code:
After the command has run (verified with atq) I cannot attach to screen using "screen -r" and ps shows screen is not running:
Code:
why the 'at' command can't start screen in the background for me to attach to later?
Noticed screen is actually returning "Must be connected to a terminal." to logs. Does 'at' not provide a terminal?
View 5 Replies
View Related
Dec 20, 2010
i wanna use the x11-forwarding feature to connect me to an open session. is that possible? i have a linux-machine on which runs the jdownloader. the jdownloader is only as java-gui-only-tools available. so it runs always on a open x11-session on the linux-machine. i wanna configure this tool from everywhere. how can i make this? (if it is possible i wanna use x11-forwarding).
View 1 Replies
View Related