Community Forum

Resolved
0 votes
i was just wondering how to change the default home directory of all the users in clearos.
in other distros while adding a user one can change the home directory from file /etc/passwd or simply using usermod -d /path/home/

it is really getting too difficult for me changing the home directory here in clearos.
any help will highly be appreciated.
~prahmod
Tuesday, September 28 2010, 12:39 PM
Share this post:
Responses (8)
  • Accepted Answer

    Tuesday, February 22 2011, 05:38 PM - #Permalink
    Resolved
    0 votes
    so if I make this change I should be able to ftp on port 21 to the link location? ie

    /home/username /var/flexshare/shares/exisiting_share none bind,rw 0 0

    I have already done this, restarted ldap but can't access via ftp. Am I not following the instructions correctly?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, February 22 2011, 04:58 PM - #Permalink
    Resolved
    0 votes
    so if I make this change I should be able to ftp on port 21 to the link location? ie

    /home/username /var/flexshare/shares/exisiting_share none bind,rw 0 0

    I have already done this, restarted ldap but can't access via ftp. Am I not following the instructions correctly?
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, September 29 2010, 09:44 AM - #Permalink
    Resolved
    0 votes
    thank you for help
    i think i got my answer...i will definitely mount home as you stated.
    thanks a lot
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, September 29 2010, 08:55 AM - #Permalink
    Resolved
    0 votes
    LDAP is the system database which contains all the user information and not configuration files. Therefore would have to edit the databse to change the paths

    Can't you just mount /home to another location? why do you want to move it - space constraints?

    For another drive...If you edit /etc/fstab and create a line (this example mounts the /home directory to another drive partition sdb1).
    /dev/sdb1               /home             ext3    defaults        0 0

    You can then copy (or move) your data from your old location to the new one

    If you want to keep /home on the same drive then mount bind should do what you want. The line in /etc/fstab becomes something like:-
    /home                           /path/to/directory/home                  none bind,rw 0 0
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, September 29 2010, 08:15 AM - #Permalink
    Resolved
    0 votes
    i tried using bind and even tried soft links....so it is not worthy for me.
    i was just looking for some way for changing home directory
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, September 29 2010, 07:45 AM - #Permalink
    Resolved
    0 votes
    Can you achieve something similar using symbolic links or, if someone clever posts, using "mount --bind ......"?
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, September 29 2010, 04:36 AM - #Permalink
    Resolved
    0 votes
    thank you for your reply but i am getting too confused,isn't it possible to change the home directory by editing from the back end means the configuration file.
    if there is any file containing the home directory path....could you tell
    it is very much necessary for me to change the home path
    thank you for your time
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, September 28 2010, 04:54 PM - #Permalink
    Resolved
    0 votes
    Hello,

    That has to be changed in the LDAP system. Some of the work in ClearOS 6.x will make it possible to expose this parameter in webconfig. It's not realistic to change it in ClearOS right now.
    The reply is currently minimized Show
Your Reply