LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-04-2017, 07:01 AM   #1
Tfortech
LQ Newbie
 
Registered: Dec 2017
Posts: 6

Rep: Reputation: Disabled
Arrow Linux


I do not have root user access, but I want to check history date wise, any help..
 
Old 12-04-2017, 08:01 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,467
Blog Entries: 15

Rep: Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452
History of what?

You can see history of your logins by typing "last".

You can see your own shell history which is in $HOME/.bash_history. Type "man bash" and look at its history section for details reviewing/manipulating/using shell history.

You can see last reboot with "who -b" or how long it has been up with "uptime".

Many system commands are intended to be only run by administrators and often require "root" access. This can be assigned to non-root users via "sudo" but you can't assign it to yourself - only root can update sudoers.
 
Old 12-04-2017, 08:48 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 13,954
Blog Entries: 24

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
What distro/version are you running?

If you are using a Ubuntu or a distro based on Ubuntu, root is disabled and sudo is used to access root functions.
 
Old 12-04-2017, 10:03 PM   #4
Mill J
Member
 
Registered: Feb 2017
Location: 127.0.0.1 Sweet 127.0.0.1
Distribution: Void, LFS, Haiku, Quirky on Rpi and many others
Posts: 875
Blog Entries: 2

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
To enable root in Ubuntu just run sudo passwd root then su root

Hope this helps.
 
1 members found this post helpful.
Old 12-04-2017, 10:47 PM   #5
Tfortech
LQ Newbie
 
Registered: Dec 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
sorry I did't specified my issue properly,
We have four member team and works in shifts someone run "#rm *" command, we use same shell and same user, but who run that command only can be identified by time and date, I am trying to find out how to check history by date and time so I can tell that shift person that I have prof.
We have redhat6.4 in our organization, we don't have root access only IT admin having it, although we can run "rm*" at our home directory which can delete most of the things except some root user privileges files.
 
Old 12-04-2017, 10:57 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 13,954
Blog Entries: 24

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Off the top of my head, I think you are out of luck. The BASH history can be configured to track time and date, but, as far as I can find, not retroactively. The sysadmins may be able to find something in the logs, but, frankly, I suspect that is highly unlikely. I would be happy to know that I am wrong on this.

If I may be so bold (and I shall be), this is an inherently flawed way of managing access and security, as it throws accountability out the window. (And I am confident that you did not design it.)

Good luck.

Last edited by frankbell; 12-04-2017 at 11:00 PM.
 
1 members found this post helpful.
Old 12-04-2017, 11:44 PM   #7
Tfortech
LQ Newbie
 
Registered: Dec 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi frankbell,

Thanks for response, I also think root can only do this....
 
Old 12-05-2017, 02:35 AM   #8
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 11,276

Rep: Reputation: 3388Reputation: 3388Reputation: 3388Reputation: 3388Reputation: 3388Reputation: 3388Reputation: 3388Reputation: 3388Reputation: 3388Reputation: 3388Reputation: 3388
by default that is not stored anywhere, so if you have not implemented a solution to do that - it is not available at all.
 
1 members found this post helpful.
  


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



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

All times are GMT -5. The time now is 11:35 AM.

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