General :: A Script That Will Display Only The Last Login Of Each User With The Date And Year?
Apr 20, 2010
This is on an old machine that is running Solaris 7. I know that I can run the command script 'last' to get a list of who has logged in. When I do that I get a very long list of lines like:
username pts/4 100.32.11.123 Wed Dec 6 18:30 - 18:40 (00:09)
I see that the year is not posted. I have about 11 years worth of logins where users have logged in multiple times over several years.
So, here is what I need: I only need the date of the very last time a person logged in. I also need the year of that last login.
script that will do this? Something with output like
username1 pts/4 100.32.11.123 Wed Dec 6 2005 18:30 - 18:40 (00:09)
username2 pts/4 110.33.11.18 Tue Apr 20 2009 8:30 - 9:30 (01:00)
username3 pts/4 10.32.11.18 Mon Jun 12 2008 1:30 - 2:40 (01:10)
username4 pts/4 110.33.12.19 Sat Oct 10 2001 00:12 - 00:13 (00:01)
...
View 4 Replies
ADVERTISEMENT
Apr 11, 2011
I want the last login information whenever I log in through FTP.
This is possible for normal console and SSH logins by configuring in /etc/login.defs file. But I am not able to view the last login information when FTP is used.
View 5 Replies
View Related
May 13, 2010
I use an email program that shows the date as, 10-4-26.....which means the year 2010 (10) April (4) 26th day.
How do I change the date format so that it's- Month-Day-Year?
I want this changed system wide so all dates are shown in the format I want.
View 2 Replies
View Related
Apr 13, 2010
I don't use office apps often and I'm using Open Office to put donations entries into a yearly statement for a non profit organization, and I can't figure out how to do a year-to-date column that will sum each line to the lines before it.How would I accomplish the year-to-date column using a formula, to add the previous year to date and the amount.
View 1 Replies
View Related
Apr 4, 2011
i want in the website they ask to enter some input.Code:echo -e "<p>Please Enter Year : c</p> "read Yearif i use this command it will ask the user to enter year in command. but what i want is they ask the user to enter year in web browser.
View 14 Replies
View Related
Jun 4, 2010
I am not sure if anyone here has any experience with Kaspersky Anti-Virus for Linux but my problem relates to that product.
I am running 11.2 openSUSE and after installing the latest version of the Kaspersky product in question, I went ahead and restarted the machine. At the logon screen, when clicking my user name to log in, the password box would not display.
I tried clicking on the other option and trying it that way and after putting my name in the username box, the machine just started thinking and thinking and nothing happens.
I also tried logging in through terminal service but it would not recognize my password to be correct.
I really need to log into my username since I have important files on that Linux partition. I tried mounting this partition in Windows since I have a dual boot setup but I can only view the folders of the partition and not the contents.
View 9 Replies
View Related
Oct 4, 2010
I know "rpm -qa --last" lists all rpm with date and time. But I want to sort the list by date, with earlier installed rpms displayed ahead. So it needs pipe, ie something like "rpm -qa --last | ...". What is exact script to do it?
View 3 Replies
View Related
Jun 9, 2011
I've checked gdmsetup and there isn't anything that I can see that keeps my general users from getting in remotely. I can get the Gnome to login as root but not as a user. SSH from PuTTY works fine for all users. The error I get actually says that the username or password is incorrect - checked using SSH and it is fine.
View 1 Replies
View Related
May 31, 2010
I am using the following script to creates list of accessed files.I like to add modified date and time of accessed files in the output.
For this what needs to be added in the below script??
#!/bin/bash
#
# creates list of accessed files
#
set $(date)
find /hdc160GB/programmers/projects -cmin -1440 > /hdc160GB/programmers/data/fileschanged/alert_$6-$2-$3.txt
View 7 Replies
View Related
Aug 16, 2010
The following are the two tex input files written in vi and compiled with pdflatex. In the first case the document details (author, date etc) are displayed as desired but are omitted in the second case. The only difference is the use of maketitle.
Case 1:
documentclass{article}
author{Name}
date{}
itle{Title}
Begin{document}
maketitle
Text to be inputted
end{document}
Case 2:
documentclass{article}
author{Name}
date{}
itle{Title}
Begin{document}
Text to be inputted
end{document}
View 2 Replies
View Related
Mar 17, 2010
In SolarisQuote:#usermod -e 'September 18, 2010' usernameIs this correct format to set expire the user account after 180 days?Where is this information update?
View 4 Replies
View Related
Dec 11, 2009
I am using the sudo command to log on locally as another user by the following command:
sudo -u theotheruser -s
or
sudo -u theotheruser sh
As I see it, this initiates a new shell with the mentioned other user.However, this doesn't load that users profile from his home directory.Is there a way to automatically read the users profile when login in with selected command? I am mostely interested in getting a working prompt when logged in.
View 11 Replies
View Related
Apr 14, 2010
In Ubuntu is there a way to display all installed software by date? For example it would be handy to show the most recent installed software like in Revo Uninstaller in Windows.
View 9 Replies
View Related
Mar 12, 2010
I am using CRON to create a new, blank file, every minute, in a specific location on my web server. After web searching, and reading man pages, I get the impression that the following command is supposed to work:touch /home/mydomain/var/folder/attachments/`date +%H%M`.txtThis should give me a new file with a file name that is the current hour and minute.However, when executed, the CRON mailer reports:touch /home/mydomain/var/folder/attachments/`date +/bin/sh: -c: line 0: unexpected EOF while looking for matching /bin/sh: -c: line 1: syntax error: unexpected end of fileSo, it looks like shell is seeing the plus (+) sign as an EOFObviously, nothing get created.What would be the easiest, single line command to create an empty file, at a given location, with a time based file name
View 5 Replies
View Related
Nov 16, 2010
I'm using ubuntu Maverick on a Dell 1545 and I'm pretty much a newbie to ubuntu. Most of the things have been fine so far, I just plugged it into a proxyless internet connection and adjusted my location for time zone (I've been using a porxy server previously for internet which didn't allow changes in location and time zone work) and since then that calendar has moved out of the scope on the top right corner of my screen and I'm unable to move it.
View 1 Replies
View Related
Apr 22, 2010
Anyone have a ksh solution to convert julian date to gregorian date?
View 6 Replies
View Related
May 29, 2011
I need to display a message before any login on a Linux box, either locally and for remote login via SSH. How can I achieve this? "issue" and "Banner" are the two concepts I need to use to provide a message for every user before they log into the system.
View 2 Replies
View Related
Oct 5, 2010
How would i force All connection oriented network services to display a legal warning in terms of banner before any fuctional operation by user?
View 10 Replies
View Related
Mar 28, 2010
I'm still pretty new to linux, and burning through a unix/linux course offered at the local JC. I'm working on an assignment for shell scripting and I need to make a script that displays a bunch of junk (pwd, date, yadda yadda) and then prompts the user to enter a directory so they can view the contents. If it's valid, then it displays the contents. If it isn't then it throws an error message and the script stops. This is done using if, then and else. The problem is, my script always shoots straight to the else, even if the subdir entered IS a valid subdirectory.Here's what I have:
Code:
clear
pwd
[code]....
View 3 Replies
View Related
Feb 12, 2010
I have just updated to karmic. For some odd reason, the time/date indicator on the top panel now spreads the data over two lines, rather than placing them side by side. There doesn't seem to be any option in the preferences program to control this.
This means that the panel cannot be reduced below a two line minimum. Not only have I lost desktop space, but the panel icons have expanded to suit the new thicker panel.
View 1 Replies
View Related
Apr 16, 2010
I hope this is not a totally ridiculous question. I use putty often to remotely connect to my laptop at home. I recently learned about the Linux framebuffer, and was curious if there was a tool like putty that would let me remotely connect to my laptop but use the /dev/fb0 device for forwarding graphics. Sort of like a vnc or X11 forwarding, but instead of using X, gdm, kdm etc. we use the framebuffer.
View 2 Replies
View Related
Jan 2, 2011
I'd like to tweak my Conky so it automatically displays the days of the week correctly. So for example, if TODAY were Tuesday, it would look like this:
Tuesday
Wednesday
Thursday
Friday
[etc.]
And then tomorrow, *automatically*, it would look like this:
Wednesday
Thursday
Friday
[etc.]
I know I can get it to display *today's* date like this:
${time %A}
But how do I get it to display tomorrow's date?
View 1 Replies
View Related
Jun 9, 2010
Ubuntu Documentation > Ubuntu 9.04 > Ubuntu Server Guide > Security > User Management states that there is a default minimum password length for Ubuntu:
Say the password is to be modified by the user using passwd. Is there a command for displaying the current password policies for a user (such as the chage command displays the password expiration information for a specific user)?
This is rather than examining various places that control the policy and interpreting them since the process could contain errors. A command that reports the composed policy would be used to check the policy setting steps.
View 1 Replies
View Related
Sep 22, 2011
Choose Menu System->Administration->Users and Groups
I am able to see my Users Settings as follows:
User name: mike
Then why I still see the following prompt line? code...
If my understanding is wrong, then how can I change it in this way?
View 1 Replies
View Related
Sep 17, 2009
Im trying to compare two files and I only want to display the user names that are in the first file and not the second.
So I have one file named final.txt (which contains every user name and only the user names in a list no other information)
Then I have another file Over1.txt (which only contains certain users that have different permissions This file is also setup differently with the user name and some information about the user after the user name.
I need a way to compare final.txt to over1.txt so that I will only display the names that are in final.txt but not Over1.txt
Ive tried using diff and comm but just cant seem to get it two work correctly. Im not sure if im missing a option or what.
View 5 Replies
View Related
Apr 21, 2010
Running SunGard Banner software on RHEL 4.2 x86-32 bit Linux server Oracle Application 10.1.2.3 samba enabled. Users run processes/reports that are logged in a daily log file. In our daily job submission log files the user password shows up as clear text.The password shows up as $PSWD (sample from the logfile):
$JOB
$BANUID
$PSWD
[code]...
View 1 Replies
View Related
Aug 11, 2010
Can't seem to use tcsh as my login shell under CentOS 5 as I used to (if I specify /bin/tcsh as my start-up shell, the windowing system doesn't come up), so am logging in under bash then switching to tcsh on top of that, but it won't allow display access from tcsh for my programs. Gives the "cannot connect to display" error that usually xhost + is the solution for, but xhost doesn't help in this case (won't even run under tcsh, says unable to open display "0.0"). $DISPLAY is set in .cshrc. Must be something simple, but can't seem to find a direction to head?
View 2 Replies
View Related
Sep 24, 2010
Possible Duplicate:How do I delete files greater than a certain date on linux How to delete all files in current directory and it`s sub directories older than one year ?
View 2 Replies
View Related
Apr 16, 2010
i just need to make copy files have 2 year old to another directory i know how to use cp command but i am not able to do that
View 2 Replies
View Related
Oct 22, 2010
How to find files which is modifed 01 year before, with size detail
View 3 Replies
View Related