1. Store
  2. Apps
  3. Hardware
  4. Support
  5. Solutions

ClearFoundation

Forums
Welcome, Guest
Change Home Directory
(1 viewing) 1 Guest
Go to bottomPage: 1
TOPIC: Change Home Directory
#17998
Change Home Directory 3 Years, 10 Months ago  
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
Pramod Giri
Senior Boarder
Posts: 58
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#18032
Re:Change Home Directory 3 Years, 10 Months ago  
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.
Peter Baldwin
Developer
Posts: 2074
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#18053
Re:Change Home Directory 3 Years, 10 Months ago  
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
Pramod Giri
Senior Boarder
Posts: 58
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/09/29 01:18 By prahmod.
The administrator has disabled public write access.
 
#18057
Re:Change Home Directory 3 Years, 10 Months ago  
Can you achieve something similar using symbolic links or, if someone clever posts, using "mount --bind ......"?
Nick Howitt
Platinum Boarder
Posts: 5668
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#18058
Re:Change Home Directory 3 Years, 10 Months ago  
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
Pramod Giri
Senior Boarder
Posts: 58
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#18059
Re:Change Home Directory 3 Years, 10 Months ago  
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).
Code:

/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:-
Code:

/home                           /path/to/directory/home                  none bind,rw 0 0

Tim Burgess
Moderator
Posts: 6516
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#18061
Re:Change Home Directory 3 Years, 10 Months ago  
thank you for help
i think i got my answer...i will definitely mount home as you stated.
thanks a lot
Pramod Giri
Senior Boarder
Posts: 58
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#24759
Re:Change Home Directory 3 Years, 5 Months ago  
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?
Jason Rennaker
Senior Boarder
Posts: 41
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#24763
Re:Change Home Directory 3 Years, 5 Months ago  
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?
Jason Rennaker
Senior Boarder
Posts: 41
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
  get the latest posts directly to your desktop