Re: [arch-general] makepkg running as root

2008-01-23 Thread Guus Snijders
2008/1/22, Aaron Griffin <[EMAIL PROTECTED]>: > On Jan 22, 2008 6:09 AM, Jan de Groot <[EMAIL PROTECTED]> wrote: > > It's a quite stupid protection to do in coreutils. On FreeBSD, the / > > directory has a flag so that you can't change or delete the / itself. They > > also do this on special system

Re: [arch-general] makepkg running as root

2008-01-22 Thread Attila
On Dienstag, 22. Januar 2008 05:30 richard terry wrote: Only for the stats: This warning is a good idea because that you don't need to be root is one of the big advantages. > I tried to compile it as myself, and it crashed at the end of the build, > (sorry didn't keep messages), saying something

Re: [arch-general] makepkg running as root

2008-01-22 Thread Aaron Griffin
On Jan 22, 2008 6:09 AM, Jan de Groot <[EMAIL PROTECTED]> wrote: > It's a quite stupid protection to do in coreutils. On FreeBSD, the / > directory has a flag so that you can't change or delete the / itself. They > also do this on special system files that shouldn't be overwritten (that's > why you

Re: [arch-general] makepkg running as root

2008-01-22 Thread Jan de Groot
> -Oorspronkelijk bericht- > Van: [EMAIL PROTECTED] [mailto:arch-general- > [EMAIL PROTECTED] Namens Thomas Bächler > Verzonden: dinsdag 22 januari 2008 12:12 > Aan: General Discusson about Arch Linux > Onderwerp: Re: [arch-general] makepkg running as root > &

Re: [arch-general] makepkg running as root

2008-01-22 Thread slubman
Le Mardi 22 Janvier 2008 12:56, Guus Snijders a écrit : > I'm surprised that no-one seems to have checked the manpage for rm: > http://linux.die.net/man/1/rm > > --no-preserve-root do not treat '/' specially (the default) > --preserve-root > fail to operate recursively on '/' > > Although i mus

Re: [arch-general] makepkg running as root

2008-01-22 Thread Guus Snijders
2008/1/22, Thomas Bächler <[EMAIL PROTECTED]>: > Colin Pitrat schrieb: > > Here is a proof that I was right to believe. On Ubuntu: > > http://www.youtube.com/watch?v=D4fzInlyYQo > > > > Regards, > > Colin Pitrat > > It's a recent change in coreutils 6. 'Cannot remove root directory /'. I'm surpris

Re: [arch-general] makepkg running as root

2008-01-22 Thread Thomas Bächler
Colin Pitrat schrieb: > Here is a proof that I was right to believe. On Ubuntu: > http://www.youtube.com/watch?v=D4fzInlyYQo > > Regards, > Colin Pitrat It's a recent change in coreutils 6. 'Cannot remove root directory /'. signature.asc Description: OpenPGP digital signature

Re: [arch-general] makepkg running as root

2008-01-22 Thread Roman Kyrylych
2008/1/22, Colin Pitrat <[EMAIL PROTECTED]>: > > > You guys DO know that 'rm -rf /' is a harmless command that simply exits > > with an error message? You should use 'rm -rf /*' to kill someone's > system. > > You say that hoping that some of us will try 'rm -rf /' ? > > By the way, I fear 'rm -rf

Re: [arch-general] makepkg running as root

2008-01-22 Thread Sentinel
Hi, 'rm -rf /' works on debian and debian like systems. I tried it in a virtual machine. I used Debian for 4 years before I moved to arch two weeks ago. I find the fakeroot a good security wall. A always use it. Tom Kanocz, Slovakia Colin Pitrat wrote: > You guys DO know that 'rm -rf /' is

Re: [arch-general] makepkg running as root

2008-01-22 Thread Colin Pitrat
Here is a proof that I was right to believe. On Ubuntu: http://www.youtube.com/watch?v=D4fzInlyYQo Regards, Colin Pitrat Thomas Bächler <[EMAIL PROTECTED]> To General Discusson about Arch Linux cc Subject Re: [arch-general] makepkg running as root Thomas Bächler <[EMAIL

Re: [arch-general] makepkg running as root

2008-01-22 Thread Colin Pitrat
> You guys DO know that 'rm -rf /' is a harmless command that simply exits > with an error message? You should use 'rm -rf /*' to kill someone's system. You say that hoping that some of us will try 'rm -rf /' ? By the way, I fear 'rm -rf ~' as standard user as much as I fear 'rm -rf /' as root

Re: [arch-general] makepkg running as root

2008-01-22 Thread Denis Alessandro Altoe Falqueto
On Jan 22, 2008 2:30 AM, richard terry <[EMAIL PROTECTED]> wrote: > On Tue, 22 Jan 2008 02:42:10 pm you wrote: > > On Jan 21, 2008 9:33 PM, richard terry <[EMAIL PROTECTED]> wrote: > > > Sometimes I build packages from AUR, and (obviously wrongly), do this as > > > root. > > > > > > Today I got thi

Re: [arch-general] makepkg running as root

2008-01-22 Thread Thomas Bächler
Jan de Groot schrieb: >> Just think of what this would do as root in a PKGBUILD: >> >> build() { >> echo "You've been pwned!!!" >> rm -rf / >> } >> > > Be sure to check .install files too. They can also contain rm -rf / in > post_install, those are executed by root when you install the packag

Re: [arch-general] makepkg running as root

2008-01-21 Thread Jan de Groot
> -Oorspronkelijk bericht- > Van: [EMAIL PROTECTED] [mailto:arch-general- > [EMAIL PROTECTED] Namens Dan McGee > Verzonden: dinsdag 22 januari 2008 4:52 > Aan: General Discusson about Arch Linux > Onderwerp: Re: [arch-general] makepkg running as root > > Just thi

Re: [arch-general] makepkg running as root

2008-01-21 Thread Johannes Held
"Dan McGee" <[EMAIL PROTECTED]>: > Just think of what this would do as root in a PKGBUILD: > > build() { > echo "You've been pwned!!!" > rm -rf / > } This is the reason why I always take a look into a PGKBUILD before makepkging it (as user of course!). -- Gruß, Johannes Täglich http://blog.h

Re: [arch-general] makepkg running as root

2008-01-21 Thread Dan McGee
On Jan 21, 2008 9:42 PM, Aaron Griffin <[EMAIL PROTECTED]> wrote: > > On Jan 21, 2008 9:33 PM, richard terry <[EMAIL PROTECTED]> wrote: > > Sometimes I build packages from AUR, and (obviously wrongly), do this as > > root. > > > > Today I got this message: > > > > ==> ERROR: Running makepkg as roo

Re: [arch-general] makepkg running as root

2008-01-21 Thread Aaron Griffin
On Jan 21, 2008 9:33 PM, richard terry <[EMAIL PROTECTED]> wrote: > Sometimes I build packages from AUR, and (obviously wrongly), do this as root. > > Today I got this message: > > ==> ERROR: Running makepkg as root is a BAD idea and can cause > permanent, catastrophic damage to your system. If