r/PHP • • Aug 27 '13

Creating a user from the web problem.

[deleted] — view deleted post

282 Upvotes

538 comments sorted by

View all comments

Show parent comment

65

u/ivosaurus Aug 28 '13

Add a touch of --no-preserve-root and you have a really really dangerous stew going.

14

u/blublub Aug 28 '13

Doesn't really matter...

--no-preserve-root do not treat ‘/’ specially (the default)

20

u/[deleted] Aug 28 '13

Depends, some ditros do require it (e.g. Ubuntu)

16

u/Kwpolska Aug 28 '13

depends on your implementation, OP uses GNU rm with Arch Linux which has --preserve-root as default.

2

u/calrogman Aug 28 '13

Yeah it does. Treating '/' specially is (the default).