Hello egw-Developers,
I’m writing a tool for extended usermanagement. For that i want to use
the egw_vfs class. while using the chmod() function, it returned the
error ‘Warning: Only root can do that!’.
Sure you mean chmod - not chown?
Anyway becoming root is the same:
$was = egw_vfs::$is_root;
egw_vfs::$is_root = true;
egw_vfs::chown($path,$userid);
egw_vfs::$is_root = $was;
Does the root in this case mean the root_$header and is there a way to
allow that for a group of ‘normal’ users?
I also tried chmod via cli.php but there i had some (unknown?) mistake
with the syntax ‘./cli.php chmod -r USERNAME
sqlfs://root_HEADERADMIN:SECRET@domain2/’. I also tried to use the
’userid’ instead of the ‘username’.
Problem can be special chars in password, try
filemanager/cli.php chown --user root_HEADERADMIN --password ‘secret’ -r
username vfs://default/home/username
If it is possible, i want to use the egw_vfs class instead of the
cli.php because i don’t want to eneable shell_exec() in my php.ini. My
System is a egw 1.8 with 2 Domains. I use OpenLDAP as userbackend and a
PostgreSQL Database.
Sure filemanager/cli.php just calls egw_vfs or other stream wrappers.
Ralf
Ralf Becker
Director Software Development
Stylite GmbH
[open style of IT]
Morschheimer Strasse 15
67292 Kirchheimbolanden
fon +49 (0) 6352 70629-0
fax +49 (0) 6352 70629-30
mailto: rb@stylite.de
www.stylite.de
www.egroupware.org
Geschäftsführer Andre Keller,
Gudrun Müller, Ralf Becker
Registergericht Kaiserslautern HRB 30575
Umsatzsteuer-Id / VAT-Id: DE214280951
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers