I have the exact same problem as a user in the 'Announce 2.30 thread' with a fairly fresh Debian Etch install
PHP 5.2.0-10+lenny1 (cli) (built: May 26 2007 08:23:53)
Gallery2
./galleryadd.pl -g http://gallery/gallery2 -G 2 -p mypass -c Test SampleData/Extract/*
System http://gallery/gallery2/main.php [G2]
Login: admin [OK]
Album: fetching list [OK]
Check: Test [OK]
Create Test (Test) (596) [OK]
Check: SampleData/Extract/Tek [OK]
Create Test/Tek (tek) [ERROR]
Error: could not create album - unknown error
200
Error: Error (ERROR_PERMISSION_DENIED) : user id: 6 doesn't have permission: core.addAlbumItem for item id: Test <b>in</b> modules/core/classes/helpers/GalleryUserHelper_simple.class <b>at line</b> 47 (GalleryCoreApi::error)
<b>in</b> modules/core/classes/GalleryCoreApi.class <b>at line</b> 477 (GalleryUserHelper_simple::assertHasItemPermission)
<b>in</b> modules/remote/GalleryRemote.inc <b>at line</b> 649 (GalleryCoreApi::assertHasItemPermission)
<b>in</b> modules/remote/GalleryRemote.inc <b>at line</b> 139 (GalleryRemoteController::newAlbum)
<b>in</b> main.php <b>at line</b> 231 (GalleryRemoteController::handleRequest)
<b>in</b> main.php <b>at line</b> 94
<b>in</b> main.php <b>at line</b> 83
#__GR2PROTO__
debug_user=admin
debug_time=0.009s
debug_exception=user id\: 6 doesn't have permission\: core.addAlbumItem for item id\: Test
What's odd is that the album I told it to create 'Test', is beneath the first album, not off the root. That's why the next folder fails.
I saw another mention about PHP5 being an issue with folder creation a few years ago - is this still the case?