On 7/29/05, Rohan Poojary ropo18@gmail.com wrote:
I have Linux cluster with 5 HD, with One disk used has boot disk and other Data disk. And i want to change my home Dir path, ie when i log into the machine as user, i should be redirected to other dir in another disk . How can be this achieved
As root edit the /etc/passwd file. Every user entry in there has 7 fields, each separated by a colon ( : ). The fields are in the following order. UserID Encrypted Passwd (x is shadow passwds are used) UID GID User Information (optional) Path to home directory Login Shell
First boot in single user mode. Create the directory in the desired location. Change the permissions on the folder appropriately. Copy all files & directories (including hidden files & directories) to the new directory. Change the sixth field of the /etc/passwd entry to point to the desired location. Test the new settings. Delete the old home directory.