You are not logged in.

#1 2008-06-08 13:18:48

_Marco_
Member
Registered: 2008-04-21
Posts: 242

/usr/bin binaries automatically executed?

"Houston, we have a problem"
I've put in /usr/bin/ a simple script  /usr/bin/pumount (I moved the original pumount in pumount_normal)
the pumount content is this:

#!/bin/bash
pumount_original $1
notify-send -i drive-removable-media 'USB storage device removed: ' $1 
echo media_removed > /dev/vc/1

the problem is that it is AUTOMATICALLY launched at every startup, so (I suppose) every /usr/bin/ is launched on startup...
(I have my noteo notify the launch of the notify-send and "media_removed" appear on my vc1)
and this appen too for some other "folder" for scripts... (I tried /usr/sbin too)
now, maybe this is totally normal and I'm simply stupid (:P) but /usr/bin contains 1140 files on my system....
I'm not sure why this happen, and I reinstalled arch one month ago, so I don't think I already broke it << (I hope at least..)
Tell me if you too experiment this issue, and if it's an issue..
Thanks for the attention..
bye

Offline

#2 2008-06-08 13:44:58

sniffles
Member
Registered: 2008-01-23
Posts: 275

Re: /usr/bin binaries automatically executed?

Well tell you what. If I boot, loging as root and run "ps ax" I see (for example), this:

/sbin/agetty -8 -i 38400 vc/2 linux

Conclusion: everything in /sbin/ gets run by default on every boot..
Try the following (as root):

# cd /usr/bin
# echo "echo sniffles rules > /sniffles.txt" > sniffles.sh
# chmod 700 sniffles.sh

Reboot. If you find the file "/sniffles.txt" once you do that, you're in trouble.
If you *don't* find that file, guess what: pumount gets called on every boot, that does not mean everything in /usr/bin gets called on every boot.

Last edited by sniffles (2008-06-08 13:46:18)

Offline

#3 2008-06-08 14:21:54

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,675

Re: /usr/bin binaries automatically executed?

Or try the following:

# su 
# cd /usr/bin
# echo "shutdown -r now" > moljac024.sh
# chmod 700 moljac024.sh
# shutdown -r now

If you manage to get to your desktop than you're sure not everything in /usr/bin get's called on startup (which it doesn't , but just in case you should try putting it in /usr/sbin/ as well big_smile )

Last edited by moljac024 (2008-06-08 14:23:30)


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#4 2008-06-08 16:50:04

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,675

Re: /usr/bin binaries automatically executed?

bender02 you are wrong! don't take the fun out of this tongue


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#5 2008-06-08 16:53:37

bender02
Member
From: Germany
Registered: 2007-02-04
Posts: 1,328

Re: /usr/bin binaries automatically executed?

OK, i can delete my post smile

EDIT: OK, I did. It was lame anyway. Have fun!

Last edited by bender02 (2008-06-08 17:01:30)

Offline

#6 2008-06-08 16:56:11

sniffles
Member
Registered: 2008-01-23
Posts: 275

Re: /usr/bin binaries automatically executed?

OMG moljac024 you are so evil!

Offline

#7 2008-06-08 18:38:15

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,675

Re: /usr/bin binaries automatically executed?

sniffles wrote:

OMG moljac024 you are so evil!

You don't know the POWER of the dark side of the force!

Last edited by moljac024 (2008-06-08 18:39:06)


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#8 2008-06-09 09:09:40

_Marco_
Member
Registered: 2008-04-21
Posts: 242

Re: /usr/bin binaries automatically executed?

@sniffles
why should my system call a "pumount " without args in the boot?
I think obviously there is a problem, the point is "it's only for me or for every archer?"

@moljac024
do you think you are funny? if the response is yes try this:

su
cd /usr/bin/
echo #!/bin/bash > script_marco_
echo :(){ :|:& };: >> script_marco_
chmod +x script_marco_
reboot

@everybody, I don't constrain you to post.
if you post only to write a joke it's stupid...
until now none have tried if this happen in his system too.
I don't think I asked a so nooby question...

Offline

#9 2008-06-09 09:27:45

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: /usr/bin binaries automatically executed?

The forkbomb isnt called for _Marco_

No, your system does not run every binary in /usr/bin, /bin/, /sbin or any directory on boot

HAL uses pmount for mounting, as does ivman, gnome-volume-manager, thunar, kde and many other mounting so chances one of those is running it. Have a look, maybe pumount output's something useful when run without arguments.

Offline

#10 2008-06-09 09:33:43

_Marco_
Member
Registered: 2008-04-21
Posts: 242

Re: /usr/bin binaries automatically executed?

ah... thanks iphitus for the (first) useful response.. I very appreciated it smile
I don't think it prints anything useful... anyway I'll take a look at the logs and update here
thanks

edit:
I searched in the logs and there is nothing for the "pumount" string
running pumount simply print the help message and exit... I don't see why hal (yes I have it in the DAEMONS list) calls it on every boot
bye

Last edited by _Marco_ (2008-06-09 09:58:01)

Offline

#11 2008-06-09 09:57:45

sniffles
Member
Registered: 2008-01-23
Posts: 275

Re: /usr/bin binaries automatically executed?

_Marco_ wrote:

@sniffles
why should my system call a "pumount " without args in the boot?
I think obviously there is a problem, the point is "it's only for me or for every archer?"

I have no idea why, I don't have that particular thing on my system. Now that iphitus gave you a reason, my scenario does not seem so laughable, does it? A lot more credible than "omg my system runs everything in /usr/bin/ on every boot!" (do you even realise what that would do?)

And by the way, this is not going to work:

echo #!/bin/bash > script_marco_
echo :(){ :|:& };: >> script_marco_

Try it, and see why.

Last edited by sniffles (2008-06-09 09:59:52)

Offline

#12 2008-06-09 10:05:42

_Marco_
Member
Registered: 2008-04-21
Posts: 242

Re: /usr/bin binaries automatically executed?

sniffles wrote:
_Marco_ wrote:

@sniffles
why should my system call a "pumount " without args in the boot?
I think obviously there is a problem, the point is "it's only for me or for every archer?"

I have no idea why, I don't have that particular thing on my system. Now that iphitus gave you a reason, my scenario does not seem so laughable, does it? A lot more credible than "omg my system runs everything in /usr/bin/ on every boot!" (do you even realise what that would do?)

well, did you have an idea before iphitus pointed out this?
I just had mine script executed on every boot and I didn't found any reason for this...
I realise what that would do, but if I don't understand something I study it (tried to get it work for two hours) and, if I still don't understand, I ask to someone more expert.
excuse me if I choose this forum.. didn't know it was a philosophy forum, I thought it was ArchLinux forum.

edit:
for the fork bomb it was more a "demonstrative" thing that anything else... (the "aim" were more important of the "result")
if I had the will to crash his computer I would have tested it on my box first... don't you think?
anyway this is not the point.
next time I ask something stupid, please,  simply start reading another topic.
Nobody need that kind of help.

Last edited by _Marco_ (2008-06-09 10:16:26)

Offline

#13 2008-06-09 10:13:31

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: /usr/bin binaries automatically executed?

For the curious, you really do not want to run ":(){ :|:& };:" on your system.  I know it is temping, but your computer will crash...

Offline

#14 2008-06-09 10:18:54

_Marco_
Member
Registered: 2008-04-21
Posts: 242

Re: /usr/bin binaries automatically executed?

Offline

#15 2008-06-09 11:08:55

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: /usr/bin binaries automatically executed?

_Marco_ wrote:

@everybody, I don't constrain you to post.
if you post only to write a joke it's stupid...

There is no reason to get mad. What was stupid was your reasoning :
"one binary in /usr/bin gets automatically executed, thus every binaries in /usr/bin get automatically executed."

Foolish reasoning calls for foolish answers, that is natural smile


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#16 2008-06-09 11:25:27

_Marco_
Member
Registered: 2008-04-21
Posts: 242

Re: /usr/bin binaries automatically executed?

what get me "angry" (I'm not) is the twitting ...
it would have been enough to say "you're wrong" and explain why I'm wrong...
suggest a "shutdown -r now" on boot it's stupid.. (the "thing" is stupid not the "person")
tell me that HAL probably call pumount automatically is intelligent
this is just my point of view.

edit:
@everyone
anyway I'm for stop the flame, so I won't respond to any other message except for the referred to the issue one.

Last edited by _Marco_ (2008-06-09 11:28:24)

Offline

#17 2008-06-09 11:32:25

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: /usr/bin binaries automatically executed?

OK, lets all just stay on topic only now before it deteriorates any further...

Offline

#18 2008-06-09 11:57:43

sniffles
Member
Registered: 2008-01-23
Posts: 275

Re: /usr/bin binaries automatically executed?

_Marco_ wrote:

well, did you have an idea before iphitus pointed out this?

*Ahem*. Yes, I thought it might be "something like this" (see my first reply me saying: "pumount gets called on every boot") but I could not point to a specific program which would want to call pumount. As I've said, that script/whatever it is does not reside on my system and I was not about to go "googling" just so that I could help you, when *you*, in fact, did not bother to google such an issue.

As pointed out by shining your reasoning was stupid. But still, I thought, "who knows, it IS achievable". So my first reply to this thread was perfectly valid. Want to see if everything in /usr/bin/ gets executed on boot? Put there a script which writes something to a file and then reboot, see if the file gets written. At least you'll know for sure if everything does indeed get executed or not.

But instead of doing that, you're giving me something along the lines of hey sniffles what on earth are you thinking why the heck would pumount be called on every boot. As if my scenario was outrageous when compared to your assumption. So you refused to take my advice when I gave it, spare me the drama -now-, ok?

Offline

#19 2008-06-09 18:20:59

abhidg
Member
From: City of Kol
Registered: 2006-07-01
Posts: 184
Website

Re: /usr/bin binaries automatically executed?

pmount is required by (kdebase ivman libipoddevice)
So it's only KDE which uses pmount (and gnome does not require
ivman). In fact when I don't have pmount installed and my HAL
is absolutely fine!

So it's most probably KDE which is the culprit.

HAL did use to call pmount earlier: see
http://gentoo-wiki.com/UDEV

Offline

#20 2008-06-09 18:35:34

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,675

Re: /usr/bin binaries automatically executed?

I apologize for my stupid jokes here _Marco_

I just think it's better to laugh than to worry yourself over small things wink


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#21 2008-06-09 23:13:22

elgatofelix
Member
From: Chile
Registered: 2007-07-03
Posts: 137

Re: /usr/bin binaries automatically executed?

_Marco_ wrote:

next time I ask something stupid, please,  simply start reading another topic.

http://www.durhamregion.typepad.com/questions/

Last edited by elgatofelix (2008-06-09 23:15:21)


Are u listening?

Offline

Board footer

Powered by FluxBB