LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-03-2015, 11:19 AM   #1
anisanjum
LQ Newbie
 
Registered: Dec 2015
Posts: 5

Rep: Reputation: Disabled
to know the exact timestamp when the user was created


How can we know exactly the timestamp when the user was created without modification with the user creation?
 
Old 12-03-2015, 12:12 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by anisanjum View Post
How can we know exactly the timestamp when the user was created
Using the standard tool, useradd, the time is recorded in a log file (which log file depends on the distro). You would have to keep all logs or write a front-end to useradd that keeps a separate database.

Quote:
Originally Posted by anisanjum View Post
without modification with the user creation?
I don't understand this part of the question.
 
Old 12-03-2015, 01:21 PM   #3
anisanjum
LQ Newbie
 
Registered: Dec 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
without modification with the user creation

"without modification with the user creation"
By this i meant that :

Suppose we have installed a new linux os.
and suppose after 3 days i create a user as "anis".
this means this "anis" is a different user other than the root user so i need to know the timestamp of the user:anis as well as the root user.
I am sorry i think u misunderstood the question due to my poor english
and also we know that if we have admin permissions, then we can change the user creation timestamp.
I hope you got my question now.
Please reply ASAP.
Thank You.
 
Old 12-03-2015, 01:50 PM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by anisanjum View Post
"without modification with the user creation"
By this i meant that :

Suppose we have installed a new linux os.
and suppose after 3 days i create a user as "anis".
this means this "anis" is a different user other than the root user so i need to know the timestamp of the user:anis as well as the root user.
I am sorry i think u misunderstood the question due to my poor english
and also we know that if we have admin permissions, then we can change the user creation timestamp.
I hope you got my question now.
Please reply ASAP.
Thank You.
Then my answer above is the definite answer.

Also, as root, you can do anything on the system, so if you are afraid that root might tamper with the timestamp, you have to keep it in some encrypted file or outside of the system.
 
  


Reply



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
ext4 Date Created Timestamp kenw232 Linux - Software 1 09-27-2013 10:00 PM
[SOLVED] How can any user remove a file created by other user with all permissions(777)? omegazafer Linux - Desktop 5 06-28-2013 02:31 AM
changing home directory permission in user management after user created in suse(KDE) hamedhsn Linux - Security 4 04-06-2011 09:18 PM
[SOLVED] Mint8 Helena LiveCD on USB Stick - Always logs into Mint user, not newly created user rrrssssss Linux Mint 3 04-20-2010 02:14 PM
Files being created with GMT timestamp Locura Slackware 0 12-07-2004 08:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:09 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
Open Source Consulting | Domain Registration