[owncloud-devel] Renaming of users datadir

Arthur Schiwon blizzz at owncloud.com
Tue Jun 24 18:53:32 GMT 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 24.06.2014 20:26, Roland Hager wrote:
> Dear community,
> 
> We're using OC 5 and ldap as user backend. We initially left the
> Option "User Home Folder Naming Rule" blank to use the default
> (LDAP-UUID) as folder name for each user within the datadir. Now we
> need to use the normal username (uid) as folder name. The base
> datadir will stay the same.
> 
> So instead of
> 
> datadir/38f64198-859a-1033-6d5f-73d38bcac4c7/
> 
> the folder should be named like
> 
> datadir/john.doe/
> 
> What we are going to do is the following:
> 
> 1. Turn on maintenance mode to prevent files changing while moving
> the folders. 2. Change the LDAP-Option "User Home Folder Naming
> Rule" to uid. 3. Move each users folder from UUID => uid (e.g.
> datadir/38f64198-859a-1033-6d5f-73d38bcac4c7 to datadir/john.doe/) 
> 4. Change the path within the field "id"  of each users
> "oc_staorage" entry to match the new folder name. (e.g.
> "local::/datadir/38f64198-859a-1033-6d5f-73d38bcac4c7/" to 
> "local::/datadir/john.doe/"). 5. Turn off maintenance mode and pray
> :-)
> 
> We did this in our testing environment and did not face any
> problems. The testusers could still access their datadir and all
> shares seemed to be intact and accessible too. We only use the
> files, gallery, and music app but neither calendar nor contacts.
> 
> Is there something else we should change in the database? Anything
> we should take care about?

If also Music works, it sounds pretty solid for me. It's how I would
do it, if I'd need it. I am not aware that the full path is used
somewhere else in the mentioned apps.

Cheers
Arthur

> 
> 
> Thanks in advance Roland Hager
> 
> 
> 
> _______________________________________________ Devel mailing list 
> Devel at owncloud.org 
> http://mailman.owncloud.org/mailman/listinfo/devel
> 


- -- 
XMPP: blizzz at jabber.arthur-schiwon.de

www.owncloud.com - Your Data, Your Cloud, Your Way!

ownCloud GmbH, GF: Markus Rex, Holger Dyroff, Frank Karlitschek
Schloßäckerstrasse 26a, 90443 Nürnberg, HRB 28050 (AG Nürnberg)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJTqcknAAoJEHQk8YdIVN8jKk4P/iQr5DZklv+AfwHW4LJerf+P
RCBjMBixClaJViu1EmDCoiK+klOcAqCD9EUCsMT4d9lD8h5w9xLpRC2YPmqZn9f1
yb190SciBP6vRx4XmaIV9mlS2SXTnOnUM6Q4l/EPstUKilWamWG4yA9kaU//X/q/
u+ptyufPk3RM9cLquPLg+Bu5b74GDXOQmq1sQ8VQsc5kv7XQCi7jSzRJkF4yC2hE
QkiesfOXSaZ/gclad90PtPH9XefSLmtYUD+EoiZ45bn53x1Vn+OSmA7Db+B60JIX
9lwNxWY3EUb4jANypgkoR6BE8xCeiKFYe9G1bl/UWoq58hdEyb3zQsMWW6jSPusl
4FTrfgFSRWKt4PXRUPQqIEixhQmHL9I9REFh8xdcfSZrFaOCrsuJvgfqHXqy4iom
WKoNonLDemxNa2vgh6Ic9rkbmnAgILnfQzi73iUUaSSUPEBJQ+l1awTpzaxVJFGI
FfVbNjPhWNaTFYggQDjt9Exb9SN+tFsDQtWBYt7m/oT/tQPeqM3zhI4BInQcGEjV
t2+8r32PRKL00Ys+0s0uiCwVEwenZz7R8rC7D3iyPCNsB0WjNuhRsKlmlnI+z9kL
XMtmrqzyqqr6EVOLGpE7PTkWtEJtQnQEyXLodsXHwrcgUi0zQFghuqaZOhqOb4eC
IDfpqr3oTO3gvOR7MJpq
=cVQp
-----END PGP SIGNATURE-----


More information about the Devel mailing list