You are not logged in.
"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/1the 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
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 linuxConclusion: 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.shReboot. 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
Or try the following:
# su
# cd /usr/bin
# echo "shutdown -r now" > moljac024.sh
# chmod 700 moljac024.sh
# shutdown -r nowIf 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
)
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
bender02 you are wrong! don't take the fun out of this ![]()
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
OK, i can delete my post ![]()
EDIT: OK, I did. It was lame anyway. Have fun!
Last edited by bender02 (2008-06-08 17:01:30)
Offline
OMG moljac024 you are so evil!
Offline
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
@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
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
ah... thanks iphitus for the (first) useful response.. I very appreciated it ![]()
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
@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
_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
For the curious, you really do not want to run ":(){ :|:& };:" on your system. I know it is temping, but your computer will crash...
Offline
http://www.cyberciti.biz/tips/linux-lim … ocess.html
for the curious ![]()
Offline
@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 ![]()
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
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
OK, lets all just stay on topic only now before it deteriorates any further...
Offline
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
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
I apologize for my stupid jokes here _Marco_
I just think it's better to laugh than to worry yourself over small things ![]()
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
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