Ubuntu :: Wrote A Script That Displays Last Login Times For All Users

May 24, 2010

After a lot of work, I think I have successfully written a script that displays the last login times of all users on a system. It gets the list of users from the directories in the /home folder and then finds the latest entry from the 'last' command for their login times. This may be a useful script for admins out there

I am not at all sure this is the best way of doing this or that there aren't ways that this script fails. At the moment, there are no users on my test system who haven't logged in so I am not actually sure that feature works. I imagine it does though. Please feel free to copy/use and/or criticize/correct. I would love it if we can make this script better. Take a look:

Code:

View 3 Replies


ADVERTISEMENT

Ubuntu Installation :: Unplanned Visits To Login Window - Taken To Login Screen Three Times

Aug 18, 2010

I have used Ubuntu since 7-4; I now have 10.4. However, in the last week I have been taken to the login screen three times. This could be potentially calamitous. Ctrl+Alt +Backspace have by default been disable since 9-4. There is no way I am pressing atl+Prtscr +K. I wonder if there is a new zap command in 10.4, and if so, how to disable it. I have never found the need to go back back to the login window. I am generally using the command line when doing this.

View 1 Replies View Related

Ubuntu :: Login To Xfce The Screen Goes Black - Flickers A Few Times Then It Brings Back To The Login Screen

Apr 12, 2011

My last setup (years ago) ran fluxbox so because it was familiar I installed it as a secondary to xfce right off the bat. I download a lot of different stuff because I like to try out all the apps I can find but somewhere I broke something. I can still run fluxbox fine, but nither the Xubuntu nor Xfce sessions will run now. Last thing I remember changing was pulse audio(removed it for an experiment I was trying with jack audio), not sure if it is connected but when I try to login to xfce the screen goes black, flickers a few times then it brings me back to the login screen.

I tried failsafe but everytime I do my monitor gives me a "frequency out of range" error. I tried purging and reinstalling xubuntu desktop and xfce settings but I am thinking its my xorg config. My laptop is a Toshiba satellite M305D-s4830 with ATI Radeon 3100 mobile graphics card and I am running Xubuntu 10.10. Unfortunately I also broke the screen, so right now I am stuck with an external monitor till I get a new one.

View 1 Replies View Related

Ubuntu Servers :: SSH Login Displays Stats Of Server Twice?

May 4, 2010

This is a very trivial thing, but when I SSH into my newly updated 10.04 server, the stats of the server are displayed on the screen twice. How can i fix it to just display once? This is what it is doing.Quote:Linux xxxxx 2.6.32-21-generic-pae #32-Ubuntu SMP Fri Apr 16 09:39:35 UTC 2010 i686 GNU/LinuxUbuntu 10.04 LTS

Welcome to Ubuntu!
* Documentation: https://help.ubuntu.com/
System information as of Tue May 4 08:41:22 EDT 2010

[code]....

View 9 Replies View Related

Ubuntu :: Plymouth Displays For About 1-2 Seconds Then Shows Login Screen?

Oct 28, 2010

Well this problem has been here since Lucid. When I start up my computer and select Ubuntu, I get a blinking underscore for about most of the start up time for Ubuntu. Then It quickly shows the nice Ubuntu Loading Screen (Plymouth) for about two seconds, then it gets to the login screen. I am using the Open Source ATI drivers, I believe the open drivers are called "radeon".

View 5 Replies View Related

General :: Login Prompt Never Displays On RH Running In VM?

Jun 2, 2011

Linux version 2.6.18-194.el5 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Tue Mar 16 21:52:43 EDT 2010Am using VWware ESX to host this guest operating system. When it clears post, the screen goes to the red background you typically see right before the login prompt comes up... but it never does. If the machine made it on the wire I can putty to it, but through deploying these, the machine isn't always on the wire and I need to be able to use VMware's viewer to gain access to it

View 2 Replies View Related

General :: Only Limited Users Should Login In NIS (not All Nis Users) RHEL 5.4?

Aug 1, 2011

i have a NIS master server and 4 NIS clients. out of 4 nis clients two are acting as login servers ie users will login and do all their stuffs and the remaining two are application servers. But sometimes users login into applications servers and started doing all their developer's job. i want to allow only a limited number of users tointo this application users not all the users who are all part of the nis domain.all the systems are running RHEL 5.4 on hp's proliant x86_64 based servers. Please advice me how should i proceed? enabling ip tables is not possible in my environment.

View 1 Replies View Related

OpenSUSE Install :: 11.4 - Displays Blank Login Screen?

Aug 13, 2011

I have opensuse 11.4 installed with both gnome and kde. These are the things I did before the problem:

1. changed the login screen to oxygen login screen

2. Then I logged off and when again logging in, I chose the session as Metacity.

But unfortunately, the the blank splash screen appeared and it didnt get into the desktop. Then I did a hard restart (By pressing the power button). Since then, I cannot login. The login screen is blank left only a active mouse pointer. Even booting into failsafe also didnt work.

By the way, I have chosen the option of directly logging in without password prompt at login. (during installation)

Only a week before i did a clean install since i corrupted the grub, dont wanna install again.

View 8 Replies View Related

General :: Red Hat 5.2 Samba Login - Displays A Blank Page

Mar 2, 2010

I am fairly new to Red Hat. I installed it yesterday but i cannot login as root in the webadmin login page. I entered my root username and password and it just seem to sit there forever and after a while it displays a blank page. I verified that all the necessary services have started. I have been troubleshooting this since yesterday with no luck.

View 6 Replies View Related

Ubuntu :: Login Sound Plays 4 Times In A Row?

Sep 14, 2010

Ubuntu login sound plays 4 times in a row.

View 2 Replies View Related

Ubuntu :: Forum Login Times Out While Composing A Post?

Oct 9, 2010

I've used the forums infrequently, being more of a mailing list kind of guy. But I'm currently tinkering with an old laptop I got as a "gift" which doesn't have an ethernet port, And if I wanted to use my cable modems usb connection to apt-get etc for the installed Ubuntu Lucid, I had to disconnect my router. This pc isn't yet configured with my mail client etc... So I thought I'd try the forum again...I noticed that using: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3 Which has not been modified yet (except to add the scroogle search bar) I keep timing out.

IEI logged in to ubuntu forums, found an existing thread related to something I'd like to do with it.clicked on quote, and began composing a followup. When I was ready to preview the thread I got an error that said I wasn't logged in. and suggested I use some included form to try again. The form looked like it wanted my username and password but wouldn't let me enter the required info into the blank fields... I had to simply log in again with the login link at the top of the forum page, and use the back button (alt+leftarrow) several times until my reply was recovered so that I could preview, fix typos & submit..I searched the forum for "forum login timeout" and found one relevant post which appeared to say the only reason it's OP had a problem was do to making changes to his copy of firefox but that it was fixed ([solved]) without saying how he fixed it. There was a reference to using about:config which is beyond my skill level...How does one keep the from login session from timing out while one's browser still has an open window to what was a logged in forum page anyway

View 9 Replies View Related

Ubuntu Security :: Keyring Login Prompts Multiple Times

Nov 9, 2010

It's been awhile since I've been on here. I suppose that can be considered a good thing, since I made the completely transfer to Ubuntu three months ago and everything's been running completely smoothly. Anyway, security is a pretty big thing to me. I usually change the root password, take sudo off (and default gksu, not gksudo), encrypt my hard drives, etc... One thing I also do is create a separate password for my login keyring. I don't mind having to enter one extra password at login, but it started prompting two times, and now three. It's the same password every time, so my question is..

View 4 Replies View Related

Ubuntu :: Keyring Requests Password 3 Times On Login Since Upgrade

Nov 14, 2010

When I boot up my password is requested three separate times by the keyring. Sometimes if I have left my computer to boot up it will actually be requested four times. I get the impression it relates to start up programs, for example if I leave it so that it requests the password a fourth time, at the same time the wifi connection settings pop up requesting the wifi password. I remember having a similar problem before and I think I was able to set a program as always having access to the keyring once logged in, but I can't remember or find how to do this. The programs that are maximized on startup are; transmission, liferea. Docky and gnome-do are also arranged to load on startup.

View 9 Replies View Related

General :: SSH Login - For Additional Users After Password-less Login Setup

Feb 10, 2010

I've set up password-less login for user1 on a Ubuntu machine to login automatically into a Fedora box using the publickey authentication method. Everything is working smoothly. Now, there is a user2 on Fedora but he does not have an account on Ubuntu.

I tried to login as user2 from Ubuntu to but got the following error :

Code:

Predictably neither scp or sftp work either. I have several questions as a result.

1.Is the SSH server rejecting user2 login because I am inadvertently using user1 keys (as I am logged in as user1) ?

2. Do I need to have a user2 account on Ubuntu and public/private key authentication setup with Fedora for user2 to be able to login ?

3. Is there a method I can use to password login as user2 from Ubuntu to Fedora (even though there is no user2 account on Ubuntu) AND still keep password-less login for user1 or do I have to have password-less login for both ?

At present the only way to access the user2 account from Ubuntu is to SSH using the user1 account and then su to user2.

View 3 Replies View Related

General :: Let A User Be Able To Login Via Telnet A Max Number Of Times Equal To 2?

Jan 25, 2011

If I only want to let a user be able to login via telnet a max number of times equal to 2 how would I go about doing this?I have found this little tid bit:per_source = 2but that only allows 2 connections from the same source (i.e. network) and that would not work. For some reason our telnet sessions are not dying off after a user has shutdown their PC and then the next time they login it adds another telnet session.

1. user1 31300 /dev/pts/409
2. user1 27539 /dev/pts/539
3. user1 18042 /dev/pts/316

[code]....

View 4 Replies View Related

CentOS 5 Networking :: CVS Server - Login Works But Update Times Out

Jul 6, 2009

I run a CentOS 5.1 using VMServer on XP. From home I can successfully 'cvs login' to my CVS server. But starting 'cvs update', the connection times out.

Netstat shows the connection as established:
# netstat -an | grep 2401
tcp 0 0 192.168.1.35:58651 85.25.xx.xx:2401 ESTABLISHED
CVS server is domain managed with dnsalias service (dyndns.org)

Using the same computer at work (other ISP) I have no problems - cvs update works just fine.
Can I assume that it is not a port/firewall issue, since "cvs login" is successful? Any clues where to start diggin'?

View 3 Replies View Related

Debian Configuration :: Udev Times Out Resulting In 3 Min Boot Times

Jan 21, 2016

My systemd-udev-settle.service is failing for some reason.

systemctl status systemd-udev-settle.service -a output
Code: Select all● systemd-udev-settle.service - udev Wait for Complete Device Initialization
   Loaded: loaded (/lib/systemd/system/systemd-udev-settle.service; static)
   
[ode]...

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

View 6 Replies View Related

Ubuntu :: Enable Auto-login For Some Users And Not Others?

Jan 18, 2010

Meaning when I turn on the computer, it automatically logs into the family account; and they never need to enter any passwords.Second, under System -> Administration -> Users and Groups (users-admin from terminal) there is a "Don't ask for password on login" option (toggle) which is desirable for this family account. However, I have never seen this option enabled, but always grayed out. Is there any way to enable this option?In short, I want:1) For the family account never to require a password on login.2) Automatically log into the family account on boot.

View 2 Replies View Related

Ubuntu :: Limit Users In Login Screen?

Jun 13, 2010

I have a fair number of users created for running processes (apache, oracle, etc) and they appear in the login screen when I boot. Is there a way to not display them?

View 4 Replies View Related

General :: Check Which Users Have Login Access On Ubuntu 10.0.4?

Aug 25, 2010

I created some users on my Ubuntu 10.0.4 machine a long time ago (whilst experimenting). Some of these users can login to the system, and others were prevented from login in. I can't remeber which ones can login. I have the following questions:

How do I find out which users may login to the machine? How may I disable an existing user account from login in? How may I re-enable a previously (login) disabled user account so it an login again?

View 3 Replies View Related

Ubuntu :: Change The Order In Which Users' Names Appear In GDM Login?

Aug 18, 2010

Can someone tell me if it is possible to change the order in which users' names appear in the GDM login screen? And if so, how to change it?

View 1 Replies View Related

Ubuntu :: Multiple X Sessions - Auto Login 2 Different Users

Oct 11, 2010

I have a small problem regarding multiple X sessions. I want 2 X sessions started automatically on boot with 2 different users auto logged in and 2 different sessions running.

On first X session I would like to have gnome running with user1
On second X session I would like to have xbmc running with user2
So far my computer logs user1 in to a gnome session via gdm on boot. But then I have to launch a tty, log in as user2 and then start xbmc in a new X session.

How to make it work? I would also love to have the second X session active after boot. I am running Ubuntu 10.04.

View 1 Replies View Related

Ubuntu :: Hide Users On GRUB Login List?

Nov 29, 2010

When you boot up Ubuntu, you are presented with the login screen, with a list of users that can access the machine. I want to be able to only show certain users in that list, and hide others.

View 1 Replies View Related

Debian :: List Users At Login?

Oct 20, 2010

Just installed Debian on a laptop. I'm not a Linux noob, been running Ubuntu / Kubuntu / Fedora elsewhere for a while. But first time with Debian (Gnome). [Broadly pretty happy so far. It may supplant Kubuntu on my desktop as the latter seems a bit of a resource hog.]I want the login screen to offer a list of users.I've tried System > Administration > Login Window > Localand chosen Themed with face browser from the dropdown marked Style:I'm using Bijou (though I've also tried some of the others) as my theme, in case that makes any difference.I haven't got any pictures set up for users. It's not particularly that that I want, just a list of users to choose from rather than having to type in your username each time. It's a family setup, no big security worries, so easing typing would be nice.

View 5 Replies View Related

General :: Additional Users Can't Login?

Jun 16, 2010

I've recently installed Ubuntu 10.4 - and used it quite successfully as the adminstrator user. But when I add additional users they can't login - to be exact, their password is accepted, and they get a screen with nothing except Ubuntu's pink/purple background.The mouse pointer moves around but clicking the mouse does nothing.

View 14 Replies View Related

Software :: GDM: Users Disappeared From Login Box?

Jan 14, 2011

PC conked out the day before I was due to leave the country, so in the few hours I had to try and knock up a solution, I set up a very old second machine in the house running openSUSE 11.3 with XFCE. I'd previously replaced the default login display manager with GDM, which evidently has various bugs. Aside from the cursor continually spinning around showing as busy, when I added a new user account for my parents, the login box showed two entries under my own name. It's only on hovering the mouse over the latter entry that my parents' username shows up. Anyway, I had to explain this and a million other quirks to them in a rush, but the system was all working and they managed to get me an email from it the following day.

Since then, however, when they reach the login screen they say there is just an image of a computer monitor, with the OS version and domain, but no usernames to choose from or other options anywhere, and hence they can find no way to login. I have no remote access to the machine and can only talk over the phone. I suggested a few key combos to see if anything happened, and they booted once in failsafe mode, but no luck.

What could have happened? Is there a key that would show the users again? Perhaps there's a way to get to a console login, but could they get back to a GUI easily after that? nfortunately my parents are really not adept at these things and every instruction I give has to be repeated endlessly after which they usually get it wrong a couple of times first, so trying to do anything administrative or more clever than a few key presses or mouse clicks is going to be nigh on impossible. Running a live CD would be likely out of the question since they'd need to change the BIOS boot order first

View 4 Replies View Related

Red Hat :: Local Users Can't Login / Resolve It?

Feb 7, 2011

I have an RHEL 5.3 system where NIS logins are working perfectly, but authentication doesn't seem to be working for non-root local users. I can't login either remotely or at the console with a local user, and I can't even su to them unless I'm doing so from root (i.e. when no password is required).

I've reset the password, I've deleted and recreated the user, and nothing. nsswitch.conf does have "files" listed as part of the config, which was really the main place I'd have assumed the issue could be. su gives "incorrect password", and ssh gives "userauth failure". /var/log/secure shows "su: pam_listfile(su:auth): Refused user <username> for service su", and same for the ssh attempts (with ssh in for su, of course). I've reviewed my pam.d files, and they seem to be the same as on a working machine, but I'm not 100% conversant with pam so I might be missing something.

View 1 Replies View Related

Ubuntu :: Use Cron To Schedule A Script Wrote?

Nov 28, 2010

I'm trying to use cron to schedule a script I wrote.in the terminal I'm typing sudo cronbut i get this message back.cron: can't lock /var/run/crond.pid, otherpid may be 3332: Resource temporarily unavailablewhat's going on here? how can I schedule my script to run?

View 2 Replies View Related

Ubuntu Networking :: Handle The Node Users Login With Permission?

Jul 16, 2010

i have a ubuntu server and no of nodes.give me any suggesions for how to handle the node users login with my permission?.i mean than they can switching on and boot the system but the system want to stay in unusable stage.After getting my permission they can operate the system.

View 2 Replies View Related

Ubuntu :: Scripts In Bash And Perl - Users Hasn't Been Able To Login

Jul 29, 2011

I've been asked to do certain jobs doing scripts in bash and perl. So this time they asked me to check which users hasn't been able to loggin. DONE with Code: lasb Now they asked me to show how many times all the users have input certain Bash Commands like

Code: Ls Cd pwd I was wondering if there was a command of something that could show me how many times those commands has been used, I already know I can see all input with Code: history Sorry I'm really new to this, been working with this for a couple of weeks, and its really interesting.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved