Ubuntu :: Shut Down Or Reboot While Another User Was Logged In?
Mar 30, 2010
How come you can shut down or reboot from the gui w/o needing root privelages, but if I enter "shutdown -h now" on the command line I am met with "shutdown: Need to be root".
Also- somewhat unrelated to my first question- I recall when I first started Ubuntu-ing, if I wanted to shut down or reboot while another user was logged in, I'd need to enter my password- but it doesn't do that anymore. Two users can be logged in with multiple applications open, and if I reboot or shutdown, it just goes for it? (using 9.04, for now...)
when I log in, I can move the mouse, but nothing else. The whole user interface is unresponsive and absolutely no keystroke works. It is probably not because of my hardware (hp 2710p) because logging in as root (with only slightly different Gnome configuration) does work well. I assume it is because of some error inside the Gconf. There is always an error when starting Gnome that an entry could not be read, including some bunches of ~30 question marks. If it is useful, I can give you the whole message literally.
I haven't changed data inside Gconf, but I did have it open when I was installing a program, and then the console did show the message with the question marks for the first time (while processing some "trigger" post-install). I think the program I was installing was drapes (for changing desktop wallpapers in Gnome). Strangely Gnome did startup correctly afterwards for a couple of times (always showing the above-mentioned error). I have no idea what change made it suddenly stop working yesterday.
The differences in Gnome configuration between the working root and the unresponsive user account are, as far as I can tell from memory: changed theme (elegant-brit), wallpaper, fonts, globalmenu in the panel, installed - added to panel - uninstalled drapes.The rest is the same for the root account. I can still log in to the shell as the normal user, but "startx" leads to the disabled graphical interface. As I said, the graphical interface works well when I use the root shell. I can't access the internet from the user shell unfortunately (if I need to, I will figure out how to set up wlan in the shell).
I have a very annoying problem with my Lucid (installed with ubuntustudio's alternate dvd). Two out of four times when I log in my account has some restrictions. I can't mount devices on nautilus and the shutdown button won't be displayed. If I log out and log in I see the restrictions again. Only restarting (with "sudo shutdown -r now" or so) may give me a normal session. On the console works everything normal. I mean i can sudo with my password.
I am trying to login to a redhat server via VNC. This used to work until I reloaded the box. Although I had previously logged in directly to the box, then I could vnc to it remotely. The service is running, netstat states the ports are open and listening.I can ssh to the box, and ran the usual commands to start the services.So my question is. Do I need to have a local user logged in before I can VNC, if so how can I do that via the command line.If this is not required for a local user to be logged in, what am I missing. Other than VNC, which other services do I need to start.
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.
I have a pc where I run ubuntu 10.10 and on this pc i have installed vlc and on boot i start the vlc http interface. Therefor I created the file /etc/init.d/vlc. The file seems like this:
[URL]
and I also updated rc.d. Vlc starts on boot as desired I also can send commands like in_play the file (a playlist) is loaded and reguarding the status.xml the file is played. But when no user is logged in I hear no sound. When I perform a login on the machine there is first still no sound but when I send e.g. the pl_next command or call in_play again then there is sound. Sadly the pc shouldn't be attached to a monitor and therefor I can't perform a login everytime so I need sound, when noone is logged in. Why is there no sound?
I recently installed FC14 as my server and is able to ssh and vnc into the server when locally logged in. If i logged out (at login screen) then i cant ssh or vnc into the server. It is pointless to have a server if i am not able to remote in via ssh and vnc.
I have recently installed Opensuse 11.4 on my desktop. And also upgraded my gnome-2 to gnome-3. Its works nice and I am enjoying it. Only the biggest problem I am facing is, if I lock the screen and leave my desk for couple of hours then user gets logged out automatically. Which is resulting all the documents and applications gets closed. I am unable to work in my desktop now.
I am running a mail server with combination of dovecot,sendmail and squirremail as web client. I want to change the password of the user if he/she not logged in for 21 days.
$ who -a system boot 2010-09-06 09:48 run-level 2 2010-09-06 09:48 last=
[code]....
looks as though this is the culprit, but...
$ kill 5485 -bash: kill: (5485) - No such process
This process doesn't exist in the /proc folder or the output of ps. Does anyone know how this happened, and how to remove this ghost user from my system without a complete reboot? I think I have seen a similar thing on a RedHat machine ages ago but I have never figured out how to log out these ghost users.
$ uname -a
Linux ubuntu 2.6.24-28-server #1 SMP Wed Aug 25 16:07:16 UTC 2010 i686 GNU/Linux
on my netbook I've tried to make possible for my user to shutdown without needing a password. battery could run low when I'm not in front of it. Editing sudoers has allowed my user to shutdown the system, but Gnome still prompts me for the root password whenever root is logged in too. That's usually the case, because to avoid entering the root password multiple times whenever I need elevated privileges and not wanting to cache the root password, I keep a Root Terminal always open.
I'm looking for a user-friendly way to change the password of a user that is *not* currently logged into the machine. We have a machine that is used by a number of users with a low level of tech savvy. The machine gets logged in as a generic user which works for most purposes, but due to a management requirement, we need Firefox to be run under an account set up for the individual user. I've gotten that bit to work fine, but what I can't figure out is a friendly (GUI) way to allow users to change their own password while the machine is logged in as the generic user. I would like to use gnome-passwd, but I've been unable to figure out how to get it to run for a user other than the logged-in generic user.
Is possible to send a message (popup window or something) to local user logged into X (xdm, fluxbox) from console ? For example: user1 is logged and using X/fluxbox, user2 logging into the same box by ssh to console. Now - what user2 have to do to send message to user1 ?
I am trying to see the last 5 mails in a single window that the rootuser has sent to a particular normal user.However,I am not able to do so.Is there any command that can display the last 5 mails in a single window sent to a particular user?
I use tomcat as my server platform in Ubuntu for a war file. I know in order to get real time information about how many user are logged in, we can count how many active sessions exist by a SessionCounter code. However, I have to permit HttpSessionListener in web.xml of tomcat. From other users' experiences, the configuration is complexed and has some errors.
Here's the link:
[URL]
In order to get users'ip, in jsp, use request.getremotehost() or request.getremoteaddress() by editing the jsp file. I wonder if there's some open source software to use for these two purposes.
Is there a way gnome can allow a remote desktop / VNC connection if no user is logged in? If the server gets rebooted I can't access it (remote desktop / VNC). Someone physically has to go there and log in. Surely there must be a way as gnome is running just waiting for a login.
I want to be able to create a php webpage that will show the logged in users files and how full their home directory is (roaming profiles). The php side isn't a problem....the problem is how do i determine the username of the user who is logged into Linux not the webpage itself?
What i want is when the user opens this page, it knows who they are already. I have seen this done on an intranet at work (don't know what OS it is running on tho) where I login to the network, view the page and it says my name.
I was doing some rather lengthy procedures using a terminal. Then I wrote script using Kate, and input it into that terminal, and then realized that I was logged in as a normal user in that terminal as opposed to a superuser, which is how I was logged in at the other terminal. I've never noticed this before because I've never done anything that takes this long.
Is there any way to link all terminal sessions in such a way that they all show me logged in as the same user? I don't even know if this is even important, but I don't want to risk losing any things that I had done.
We have 4 servers having rhel 5.2. We have several users logged in on one of them. We have nis server/client running on them and have common home area mounted on all of them. Now we want to disable/block the accounts of the users who have not accessed our servers in last 2 months from today.What logic should we apply to do so? We were checking stat of .bashrc of each user but is not correct logic. We are going to write shell script for the same. We dont want to do anything in users home area or their files.
I have a problem with my 10.10 32bit installation. The shut down window repeated appears within a few seconds of use, and this is not user-invoked. The shut down screen just pops up within a few seconds after logging in. It even occurs at the login screen. Once it appears, it'll repeatedly close & reopen. I tried using 10.04 bit (which I normally use on my other computers), and have the same results. This is a new computer that I just bought Intel Atom 330 (1.6GHz, dual-core), full specs in the link [URL] with a 4GB stick of RAM
[URL]
I've already ran a memory test, and it's totally ok.Here's a video clip of what I am experiencing on my screen.
This is the set up I have: PC downstairs by a tv, with 3TB of storage containing my media, connected to the tv too. HTPC upstairs by another tv and connected to it. A few laptops and other desktops around the house which are windows based
I want the downstairs pc to act as a file server and to run my torrent client, it is running Ubuntu desktop version and has xbmc installed too for use with the tv. The upstairs htpc has xbmc live on and will access the media from the file server. What I am looking to do is to be able to log into my ubuntu machine remotely from a laptop running windows so I can manage the files and add torrents for download etc, but for this to be a complete remote session, rather than taking control over what is already being shown on the downstairs pc, like VNC does in windows.
I have two user accounts set up on the main ubuntu machine, the admin account and a media user account which is set to go straight to xbmc after log in. Also how can I make sure that the media drives are automatically mounted to allow access if the admin user is not logged in?
the problem i have is that when i enter my username, the output (my real name) does not display in the output.txt. instead it displays in putty. so when i run my script in putty it shows the message to enter username and after i enter my username my real name appears below it. i want it to show in the output.txt
Offlate I installed F11 i586 on my laptop. F11 shares the hard disk with Vista Home Premium 32-bit. The problem is that when running F11 (or even Ubuntu), my system shut off suddenly(not a normal OS shut down, but a sudden power off without any warning). This could have been a hardware trouble(heating) but it doesn't happen with Vista. Machine specifications: Maker: Toshiba Model: Satellite L305D-S5881 AMD Turion X2 Dual Core Mobile Processor RM-70 3072 MB 800 MHz SDRAM I don't want to open up my machine unnecessarily, if it isn't a hardware issue. I am not sure how to verify the bit length of the machine and the OS and does it create a compatibility issue ? Your advise would be highly appreciated.
But I've gotten as far as getting davfs to work on RH Linux. However, on SuSE I'm logged in as root, but when I issue the mount command I'm getting "user davfs2 does not exist". (I was getting "group davfs2 does not exist", so I created the group (groupadd davfs2) then added the user davfs2 to the new group by following the instructions at The Nerdrium : Linux : Creating Groups.
The command I'm issuing is: mount -t davfs http://.....
I get challenged for credentials, but after I enter them I get the "user davfs2 does not exist" message.
I have a Red Hat 4 server with Sungard Luminis installed on it. I was following some instructions on setting up Luminis to start at boot. One of the steps was modifying the sudoers file. Since modifying the sudores file, I am no longer able to "su" to root when logged in as a normal user. When doing so, I get su: incorrect password after putting in the password. I have another server with the exact same setup, broken one is test, the other is production, that works just fine. I made no changes to my production server. I've been looking at different things all day and the only difference I have found between the two are the results I get from running rpm -q --verify coreutils. Running that on my prodution server returns nothing. Results from my test server are below. Is this what is causing my problems? If so, what's the fix? I haven't found that yet. I've checked /etc/pam.d/su, both servers are the same.