Operating System - HP-UX
1834457 Members
2243 Online
110067 Solutions
New Discussion

how to create link to map users to another logical volume

 
GSB_3
Frequent Advisor

how to create link to map users to another logical volume

Hi ,

I have the following three users in /home/people directory in hp-ux server.

pasco, saanam, khoso

I want to create a link file for all the three users under /home/people/ pointing to /others/ which is mounted on another logical partition.

please help

thanks
GSB
6 REPLIES 6
Dennis Handly
Acclaimed Contributor

Re: how to create link to map users to another logical volume

Do you have home directories for the 3 users under /home/people/? I.e. /home/people/pasco?

If so, you could just move the existing directories to /others/, then add a symlink for each:
$ ln -s /others/pasco /home/people
Khashru
Valued Contributor

Re: how to create link to map users to another logical volume

use the ln -s command

ln â s /source_filename /link_filename
GSB_3
Frequent Advisor

Re: how to create link to map users to another logical volume

Hi Dennis ,

Thanks for the reply.

I have done it but when i am doing "su - pasco" and checking "pwd" it is showing me /home/people/pasco only. I want to change it to /others/pasco which is mounted in another logical partition.

Please help


Thanks
Dennis Handly
Acclaimed Contributor

Re: how to create link to map users to another logical volume

>checking "pwd" it is showing me /home/people/pasco only. I want to change it to /others/pasco which is mounted in another logical partition.

As I said, you have to move the existing files to /others/pasco, then create the symlink.

You of course can change the passwd entry to point to the new home directory location.
Rasheed Tamton
Honored Contributor

Re: how to create link to map users to another logical volume

Hi,

Do as Dennis suggested. If you have created the link, modify the /etc/passwd file to point to the /others/pasco for the user pasco. Repeat the same for others.

For example,
#grep pasco /etc/passwd
pasco:*:108:20::/home/people/pasco:/sbin/sh
to
#grep pasco /etc/passwd
pasco:*:108:20::/others/pasco:/sbin/sh

Regards,
Rasheed Tamton.
GSB_3
Frequent Advisor

Re: how to create link to map users to another logical volume

Thanks a lot dennis, It worked.