LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-27-2004, 04:01 AM   #1
Linux_interest
LQ Newbie
 
Registered: Aug 2004
Posts: 8

Rep: Reputation: 0
What is the command for finding the last 3 times the user had logged into the system?


Hello

I am a newbie to linux/Unix, and was wondering how we could find the last 3 logins that the user had made into the system?

Help at the earliest would be really appreciated.

Thanks Heaps

Cheers
John
 
Old 08-27-2004, 04:12 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 49
you can use the last command to find a list of logins. Here is a command that will
give you the last 3 logins

# last|grep <username>|head -3
 
Old 08-27-2004, 04:38 AM   #3
Linux_interest
LQ Newbie
 
Registered: Aug 2004
Posts: 8

Original Poster
Rep: Reputation: 0
what is the command for setting what you deem to be a safe umask

hello

thanks heaps ppuru. That helped a lot.

I got one more doubt, i really do not understand umask thing.

What is the command for setting what you deem to be a safe umask and why is this umask suitable with reference to sort of system you would use it in.
 
Old 08-27-2004, 06:02 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 49
well the obvious command is umask
The default is 0022 in most cases which creates files with 644 (rw-r-r). RedHat uses 0002 and creates rw-rw-r. 0666 - 0022=0644 which is -rw-r--r--


Last edited by ppuru; 08-27-2004 at 06:05 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi-user and 3D sharing, 3D only works for the first logged in user foxy123 SUSE / openSUSE 0 02-20-2005 05:31 AM
What is the command for finding the last 3 times the user had logged into the system? Linux_interest Linux - General 1 08-27-2004 04:14 AM
iptables and limiting the number of times an event gets logged drexel Linux - Security 3 02-09-2004 09:59 AM
mozilla works fine when logged in as a user but crashes when logged in as root jimi Linux - General 6 04-02-2003 09:34 PM
Remote message: User: already logged onto system 1 time(s). jamaso Linux - General 1 11-08-2002 06:08 AM


All times are GMT -5. The time now is 01:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration