Ubuntu :: Start Kdm - Gdm - X After Unprivlaged User Logs In
Sep 10, 2010
I'm running ubuntu server on a home server which runs samba, ftp, and bittorrent 24/7. there is no need to be using the graphics capabilities of the system by having a desktop environment active 24/7 so to save power when i'm not using the desktop, i stop the kdm/gdm and x. This can be done easily by sudo start/stop kdm/gdm/x etc., but there are users in my home who are unprivileged on this computer but who would still like to use it from time to time and rather than having me login every time and start x for them, I would like to find an automatic solution to the problem.
I tried setuid scripts (which i found out fast didn't work), I tried compiling a small c program (again, setuid then start x) which i couldn't get to work, I also tried looking for a signal to send upstart when a specific user logs in so the appropriate environment could start but couldn't find one. I've only just started getting into upstart scripting and despite what I know.
I've searched the web and these forums and I don't seem be the only one with this problem yet I couldn't find a cure for it; 2 users are logged in, one of them logs out and the screen goes blank. Nothing works except shutting off the computer manually.Does anyone know if a cure has been found for this problem by now?
I'm a bit of a unix noobie trying to manage a small ubuntu server. I want to run a bash script automatically after an ssh user logs in. For example, after they log in and the default welcome message is displayed, I want to run a script that displays some server statistics since the last session. I made an alias to the script, and I could run it manually after I log in, but it's a bit of a hassle. Is there any way I could do this?
We have a backup program that works with HP's ultrium tapes that whenever it's failing it's sending an error to the root's system logs. Now if I run mutt as root I can see the system logs and it's very easy to pinpoint any backup error messages. Is there any way to copy all these system messages to another user as well so that someone with no root access could run mutt as well and check for these logs daily?
I recently installed Suse Linux enterprise Desktop 11 on my box. I created an user and logged in first time into a GNOME session without any problems. Last time I logged in I selected the session as TWM and that got me into the T windows manager just fine. Now when I log out and try to log back into a GNOME session, it will still log me into the TVM sessionI have tried restarting the boxHowever, when I remote log in to the machine it will let me get on the GNOME session just fine. I'm guessing this is probably a really simple fix, however I am a Linux newbie and doing a google search isn't yielding me what I'm looking for.
When I try to play a video in vlc, totem or banshee, it immediately logs me out. Sometimes this happens when I try to full screen the video. This seems to happen only after upgrading to ubuntu 11, and happens for multiple kinds of files, like avi and m4v. The motherboard is Asus a8v-mx. How to fix my ubuntu installation
Here are the relevant entries from syslog: 21:12:27 enlightenment kernel: [488.157457] powernow-k8: Hardware error - pending bit very stuck - no further pstate changes possible May 1 21:12:27 enlightenment kernel: [488.158634] powernow-k8: transition frequency failed May 1 21:12:27 enlightenment kernel: [488.264015] powernow-k8: failing targ, change pending bit set May 1 21:12:27 enlightenment kernel: [488.306466] agpgart-amd64 0000:00:00.0: AGP 3.0 bridge May 1 21:12:27 enlightenment kernel: [488.306489] agpgart-amd64 0000:00:00.0: putting AGP V3 device into 8x mode .....
I'm trying to set up automatic recording of user sessions when they login without their knowledge. I tried sticking the script command into /etc/profile and but that didn't really work. I also tried /etc/bashrc but that had the same affect.I have also tried setting the shell in /etc/passwd to SHELL=/bin/bash /usr/bin/script -q /testing.txt.
When I start my ubuntu linux system it automatically logs into a user (not root) in graphical mode and it does not asking for any password. when I try to go to the command prompt the password is required. How do I give password for my user. The provider installed the system and not me..
I've recently installed Fedora 14 (x86_64) on my Alienware m15x laptop which has a NVIDIA GTX 260m onboard. Now I have followed leigh123linux's guide to installing those drivers on F14. The installation is a success and everything seems to be in working order, until the system randomly logs the user out and/or restarts the session with no warning. The screen goes black and the nvidia logo appears and then its back to the login screen again. This can happen many times with no apparent stop insight. This does not happen with the default F14 drivers that come with the installation, I have tried several re installations of the Fedora OS and several re installations of the NVIDIA driver, i still have the same problems.
I am trying to give access to ONE single user to start and shutdown tomcat server. The problem being, when I enter syntax: username ALL= /etc/init.d/tomcat5, /usr/local/tomcat/webapps, PASSWD:ALL This gives the user access to start and stop tomcat but also gives user access to start and stop other services within /etc/init.d - such as httpd etc... What is the proper way to give user access to start and stop service, and limiting that power to only one service....
I've done a fresh install of Karmic 9.10. I'm running on an ASUS laptop (Core 2 Duo, 2GB RAM, NVIDIA GeForce 7300). Problem: When shutting down via the In Indicator applet (i.e. top right menu where one of the options is "Shut Down..."), the system seems to log out the user instead. Then at the user login screen, I have to select "shut down" from there before the laptop powers off. I've also discovered that from the GNOME desktop if I open a terminal and do "sudo shutdown -h now", the system powers off as expected without any further action. Seems like a permissions problem even though the account is the administrator and is the account used for sudo actions.
When I try to login as me - it gets pretty far but then something happens and automatically logs out. This happens in Gnome, Kde too. Now - I have no problem logging in a Root. Is there a way I can try to stop the login process before it kicks me out, or is there a way to look at some files to tell me what's going on?
On our app server the logs from the Sybase Mobilink service get logged to /var/log because of that I did a chmod a+rx /var/log and all is well until.... the next day QA logs in goes to check the logs and gets:
Whats a way to start the cod server as a specified user on system boot. Whats the best way for me to do this? The cod server is located in the users home directory
I'm trying to get rid of gnome as much as possible since I consider it bloated. I have everything according to my taste but when I boot I need to start x by hand (through xinit) and I would like it to start automatically.
So I created a script in /etc/init.d/ to do that. If I just execute xinit on the script it runs X as root (we all know that's highly not recommended), so I tried su - username -c "xinit" to no avail. However if I start another program, say rtorrent, like that (replacing xinit with rtorrent) it works perfectly.
What do I need to do start X under a username on login? I don't want a login manager just to do something which I am so close to do.
I want to start a daemon as another user, but it doesn't seem to work. What I'm trying to do is run svnserve (subversion server) as the apache user.
The following works, but it's run as the root user in this case
Code: svnserve -d -r /var/www/svn --pid-file /var/run/svnserve.pid Trying to run as apache user doesn't work Code: su apache -c "svnserve -d -r /var/www/svn --pid-file /var/run/svnserve.pid"
IF - a logged-on user wasn't properly logged off - the system is restarted - the same user attempts to log in
[Code].....
This seems repeatable, and happened on 2 different PCs.
When logged into Gnome as another user and trying to sudo a backup of the borked user's home before attempting a repair, a ".gvfs" file is reported "in use" and can't be copied.
It happened to me quite a few times, due to crash or more often power failure, or my sudo-errors. I now keep a few spare virgin sudo-enabled cloned accounts just in case one dies that way.
Recently I deleted files from my root/share folder in an attempt to remove a program which had made the system virtually unusable. Upon reboot of the system I accessed the partition I had just edited and I found that I was unable to login using the login manager, every time I hit login it just returns me to the same screen displaying the message: unable to start session.
I recently installed debian 8 stretch with xfce. Since the first time I boot, I have problem starting my X session: from lightdm I always attemped 2 or 3 times before it login (it returned me on lightdm prompt after a short splash screen).
Now it stopped working: the only way I can start xsession is running startx as root. When I try as user it starts the "splash" and return me to the tty with this error message:
Code: Select allServer terminated with error (1). Closing log file(EE)
This is my ~/.local/share/xorg/Xorg.0.log
Code: Select all[ 27.703] X.Org X Server 1.18.2 Release Date: 2016-03-11 [ 27.704] X Protocol Version 11, Revision 0 [ 27.704] Build Operating System: Linux 3.16.0-4-amd64 i686 Debian [ 27.704] Current Operating System: Linux debian 4.3.0-1-686-pae #1 SMP Debian 4.3.5-1 (2016-02-06) i686
[Code] .....
And this is my /etc/X11//Xsession
Code: Select all#!/bin/sh # # /etc/X11/Xsession # # global Xsession file -- used by display managers and xinit (startx) # $Id: Xsession 967 2005-12-27 07:20:55Z dnusinow $
[Code] ....
and this the .xsession-errors:
Code: Select allXsession: X session started for lucatastrophe at Tue Mar 29 10:21:09 CEST 2016 localuser:lucatastrophe being added to access control list openConnection: connect: No such file or directory cannot connect to brltty at :0 dbus-update-activation-environment: setting MAIL=/var/mail/lucatastrophe
[Code] ...
I try to reconfigure Xorg but the Xorg -configure command result in another segmentation fault.
I think that the problem could be related with old configuration (when I install this version of debian I maintain the /home partition and my previous OS was debian 7 with xfce).
on the risk of starting another OO thread I would like to share my problem to resolve it... (found this 'challenge' nowhere on the forum) installed openoffice apps on my F11 64-bit box through add/remove software until some time ago everything worked well for all users now with one specific user OO hangs upon startup when opening a file (only displaying splash screen, nothing further). this user is nowhere blocked intentionally
to resolve I did:tried other users, all works well (starting from menu, opening files in Nautilus by double-click) renamed ~/.openoffice.org to ~/.openoffice.org.bak so new prefs are created, but new attempt results the same (freeze upon start) copied ~/.openoffice.org from well-run user, but new attempt results the same (freeze upon start)
installed gnumeric as an alternative but I like to bring this to a happy ending.giving enough eyeballs the solution must be out here somewhere
How can I start the vncserver serivce before any uesr log in? because I only have one screen now what I already did is when I log in the vncserver service going to be startup, but I want it can start before I log in. I try the "chkconfig --level 345 vncserver on" but after I reboot, I still cannot access the system before I have a log in action.
I want to start VB in headless mode. It is possibe to tell VB to run the VM with a useraccount, but i will asked after his password. So it is not possible to run it in runnlevel 2 and 3.
As root, firefox shows that no plugins are installed - does not see flash-plug. For the other user the flash-plugin is there however it only load for the first instance and then will only start again if I reload the page.
Yes I am new to Linux - I have just installed Centos 5.3 and via yum install adobe flash-plugin - lots of searching on the web to get this far.