|
From: Ralf B. <rb...@st...> - 2012-02-20 18:55:25
|
Am 20.02.12 19:43, schrieb Sly: > I bumped into the same behavior : > The mounted folder appears in filemanager only if the source folder is in > the web root hierarchy. That's definitly not true! We regulary mount directories outside the docroot, eg. a subdir from EGroupware files_dir. You can mount arbitrary folders, *IF* Apache / Webserver has access to it. Access can also be denied by PHP's open_basedir directiv, eg. from EGroupware Apache configuration or your php.ini. Ralf > > Any info or progress on this matter ? > > > DenSys wrote >> >> After some more testing I have discovered that if the file system folder >> is inside the web root it works OK. >> >> If I use a folder outside the web root even belonging to the Apache user, >> it does not work from the web interface. >> >> Is this a apache/php configuration issue or is this by design? >> >> >> DenSys wrote >>> >>> Hi all, >>> >>> I'm having a few issues with eGroupwares file manager and cli.php. >>> >>> I am trying to get a the filesystem folder /home/samba/shares/allusers >>> mounted to the vfs folder /mnt so I can view, download and upload files >>> to the filesystem folder via the eGrouwpare web interface. >>> >>> The first command I use is: >>> >>> ./cli.php mount --user root_$myuser --password $mypassword >>> filesystem://default/home/samba/shares/allusers?group=Default&mode=0777 >>> /mnt >>> >>> Which out puts: >>> >>> Root access granted! >>> >>> filesystem://default/home/samba/shares/allusers?group=Default&mode=0777 >>> successful mounted to /mnt >>> >>> >>> I then run mount to double check it worked >>> >>> ./cli.php mount --user root_$myuser --password $mypassword >>> >>> and this seems OK: >>> >>> Root access granted! >>> >>> sqlfs://$host/ / >>> >>> filesystem://default/home/samba/shares/allusers?group=Default&mode=0777 >>> /mnt >>> >>> links://$host/apps /apps >>> >>> >>> When I run ls from the cli it does display the folder I have in the file >>> system folder >>> >>> ./cli.php ls --user root_$myuser --password $mypassword vfs://default/mnt >>> Root access granted! >>> ls vfs://default/mnt (long=0, numeric=0, recursive=0) >>> >>> >>> mnt: >>> My Data Stuff More stuff >>> >>> >>> But when I browse to the root folder in the web interface /mnt is not >>> there. When I manually type /mnt in the file manager address bar I get: >>> >>> The requested path /mnt is not available. >>> >>> I tried to chown and chmod the folder, which executed OK, but I still can >>> access it vie the web interface. >>> >>> Any suggestions? >>> >>> Thanks >>> >>> >> > > > -- > View this message in context: http://egroupware.219119.n3.nabble.com/mounting-folder-with-cli-php-and-filemanager-tp269823p3761512.html > Sent from the egroupware-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > eGroupWare-users mailing list > eGr...@li... > https://lists.sourceforge.net/lists/listinfo/egroupware-users -- Ralf Becker Director Software Development Stylite AG Morschheimer Strasse 15 | Tel. +49 6352 70629 0 D-67292 Kirchheimbolanden | Fax. +49 6352 70629 30 Email: rb...@st... www.stylite.de | www.egroupware.org Managing Directors: Andre Keller | Ralf Becker | Gudrun Mueller Chairman of the supervisory board: Prof. Dr. Birger Leon Kropshofer Commerzbank BLZ 55040022 | Account 218111300 IBAN DE33 5504 0022 0218 1113 00 | BIC COBADEFFXXX VAT DE214280951 | Registered HRB 31158 Kaiserslautern Germany |