+ Post New Thread
Results 1 to 7 of 7
Cloud Services Thread, OwnCloud - map user directories in Technical; I have created an OwnCloud server, successfully installed and configured with LDAP. I now wish to map current user directories ...
  1. #1

    Join Date
    Jul 2006
    Location
    Leicestershire
    Posts
    99
    Thank Post
    16
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    OwnCloud - map user directories

    I have created an OwnCloud server, successfully installed and configured with LDAP. I now wish to map current user directories into OwnCloud - has anybody managed to do this? The home directory shares are located on a separate server to that which OwnCloud is installed.

    Thanks

  2. #2

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,653
    Thank Post
    1,257
    Thanked 781 Times in 678 Posts
    Rep Power
    236
    Quote Originally Posted by Craig_W View Post
    I have created an OwnCloud server, successfully installed and configured with LDAP. I now wish to map current user directories into OwnCloud - has anybody managed to do this?
    Yes. We have OwnCloud running on its own dedicated virtual machine with Debian 7.2 (Wheezy) installed, Samba installed and the Debian machine joined to the domain. Samba is set up so that people can SSH in to the Debian server with their Active Directory username and password if they wish - this thread provides details. I then have a Python script that runs (from /etc/rc.local) at boot time:

    Code:
    #!/usr/bin/python
    
    import os
    
    wbinfoHandle = os.popen("wbinfo -u")
    wbinfoLines = wbinfoHandle.readlines()
    wbinfoHandle.close()
    
    for wbinfoLine in wbinfoLines:
            username = wbinfoLine.strip()
            homeFolder = "/home/DOMAINNAME/" + username
            if not os.path.exists(homeFolder):
                    os.mkdir(homeFolder)
                    os.mkdir(homeFolder + "/files")
                    os.mkdir(homeFolder + "/thumbnails")
                    os.system("chown -R www-data:www-data " + homeFolder)
            os.system("mount -t cifs -o uid=www-data,gid=www-data,username=administrator%PASSWORDGOESHERE //FILESSERVER/home/" + username + "/My\\ Documents " + homeFolder + "/files > /dev/null 2>&1")

  3. Thanks to dhicks from:

    cpjitservices (14th February 2014)

  4. #3

    Join Date
    Jul 2006
    Location
    Leicestershire
    Posts
    99
    Thank Post
    16
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Thanks for this, but I have ownCloud installed on a Windows Server 2008R2 VM - is there a way to do this in Windows?

    Thanks

  5. #4

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,653
    Thank Post
    1,257
    Thanked 781 Times in 678 Posts
    Rep Power
    236
    Quote Originally Posted by Craig_W View Post
    Thanks for this, but I have ownCloud installed on a Windows Server 2008R2 VM - is there a way to do this in Windows?
    Sure, you can mount Windows shares as Windows folders in much the same way - Windows calls them NTFS Symbolic Links:

    NTFS symbolic link - Wikipedia, the free encyclopedia

    You just need to write a script that goes through each user's OwnCloud folder and mounts their home folder as an NTFS Symbolic Link.

  6. Thanks to dhicks from:

    Craig_W (14th February 2014)

  7. #5

    Join Date
    Jul 2006
    Location
    Leicestershire
    Posts
    99
    Thank Post
    16
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    That looks exactly what I need - will be looking at this today - thanks

  8. #6

    Join Date
    Jul 2006
    Location
    Leicestershire
    Posts
    99
    Thank Post
    16
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Ok, I have successfully created symbolic links, which is now called "files" within the username of the OwnCloud file structure. If I login to OwnCloud I now see nothing at all. If I create a file it will appear in the view, but then on refresh the file would disappear. I therefore believe this to be a permissions issue as local permissions on one server are not available on the server where the shares are hosted...if that makes sense.

    Any advice on the best way around this? The symbolic link created works perfectly within Windows when logged onto the server as admin, taking me straight to the user share on the share server.

    Thanks

  9. #7

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,653
    Thank Post
    1,257
    Thanked 781 Times in 678 Posts
    Rep Power
    236
    Quote Originally Posted by Craig_W View Post
    I therefore believe this to be a permissions issue as local permissions on one server are not available on the server where the shares are hosted...if that makes sense.
    Hmm - not tried this on a Windows server myself, can you mount each user file area, via an NTFS symbolic link, as a particular user? Your script would have to mount each file area as that particular user.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 24
    Last Post: 25th August 2012, 06:03 AM
  2. Moving & mapping user areas on new server/domain
    By mattianuk in forum Windows Server 2008 R2
    Replies: 1
    Last Post: 23rd April 2012, 07:55 PM
  3. Replies: 16
    Last Post: 22nd September 2010, 03:16 PM
  4. New computers and setting user directory.
    By speckytecky in forum How do you do....it?
    Replies: 17
    Last Post: 28th July 2008, 10:58 AM
  5. Default Profiles - setting user directories
    By speckytecky in forum Windows
    Replies: 0
    Last Post: 22nd June 2007, 07:52 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •