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


Closed Thread
  Search this Thread
Old 06-25-2012, 08:03 PM   #1
852derek852
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Rep: Reputation: Disabled
Does *forkbomb removed* really check uptime?


me and my friend got into an argument about who's box had been running longer, and he said I could run forkbomb removed. to check the uptime.

I tried running 'man forkbomb removed' and it said
bash: syntax error near unexpected token `('

Last edited by Tinkster; 06-25-2012 at 08:09 PM.
 
Old 06-25-2012, 08:05 PM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,969
Blog Entries: 1

Rep: Reputation: 208Reputation: 208Reputation: 208
The command to check uptime is

Code:
uptime
What your friend gave you was a "fork bomb"

http://en.wikipedia.org/wiki/Fork_bomb

--C
 
1 members found this post helpful.
Old 06-25-2012, 08:11 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I'll give you the benefit of the doubt and assume that you weren't
playing a prank on unsuspecting netizens, but were indeed a victim
of a friends idea of "fun".

I edited the thread title and content none the less so unsuspecting
visitors don't try that "method of reading uptime".



Cheers,
Tink
 
Old 06-25-2012, 08:13 PM   #4
852derek852
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
... Which would have meant I would have had to restart my computer, without ever getting a chance to see my uptime. That's actually pretty clever

Any suggestions on how I can get him back?
 
Old 06-25-2012, 08:30 PM   #5
guilhermesgb
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
suggestion

Tell him to activate biometric authentication, a new feature that comes along with newest update of the linux kernel by adding the following line to his /etc/sudoers file:

root ALL (SEC BIOX)_AUTH ALL HIGH

Can`t tell he will believe you, though. (Probably not)

Posted this just to unlock the full benefits of my LQ account =)

BTW, don't do this (or, make sure you have an extra terminal window open and logged as root to fix things later..)
Otherwise, you may end up unable to login as sudo anymore, as all this does is add syntax errors to your sudoers file.
 
Old 06-25-2012, 08:54 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
That will not work when the user edits sudoers in the correct way with using visudo.
 
Old 06-26-2012, 12:11 AM   #7
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Jessie
Posts: 592

Rep: Reputation: 119Reputation: 119
Quote:
Originally Posted by 852derek852 View Post
... Which would have meant I would have had to restart my computer, without ever getting a chance to see my uptime. That's actually pretty clever

Any suggestions on how I can get him back?
Why bother? While revenge may be sweet, is it really worth it? Would a real "friend" really want you to fork-bomb your server?

Take consolation in the fact that you were smart enough not to run commands you were not familiar with . . . . . or did you?

Oh well, something new to do: Forkbomb my own PC and try to defuse it as per the wikipedia article.
 
Old 06-26-2012, 12:57 AM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Right ... and this is not behaviour we want to encourage at LQ. With these words I'm closing this.
 
  


Closed Thread


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
init uptime longer than system uptime? m4rtin Linux - Server 1 09-15-2010 08:45 AM
[RHEL4]::How to check what packages were removed? compass2007 Linux - Newbie 6 01-26-2010 07:56 PM
How to check uptime of all applications running in solris server rajaniyer123 Solaris / OpenSolaris 1 10-13-2007 12:37 AM
Entry in /etc/modprobe.conf causes forkbomb sub_pop_culture Linux - General 3 03-25-2006 03:21 AM
forkbomb fix slackware? edong23 Slackware 23 08-15-2005 02:10 PM


All times are GMT -5. The time now is 06:53 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