1832645 Members
2530 Online
110043 Solutions
New Discussion

softlink

 
SOLVED
Go to solution
Shivkumar
Super Advisor

softlink

What are the best practices of creating soft links on hpux ?

Thanks,
Shiv
5 REPLIES 5
Torsten.
Acclaimed Contributor
Solution

Re: softlink

Hi Shiv,

IMHO a softlink is always a softlink, it's common unix, nothing special for hp-ux.

T.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Vibhor Kumar Agarwal
Esteemed Contributor

Re: softlink

Don't let soft links cross file systems.

Otherwise they will become very difficult to manage and locate.
Vibhor Kumar Agarwal
Rajesh SB
Esteemed Contributor

Re: softlink

Hi,

Best practice observe while creating soft/symbolic link is,
prior to link creation umask will be set to 022.


Regards,
Rajesh
Shivkumar
Super Advisor

Re: softlink

Rajesh; Could you elaborate your answer in detail ?

Thanks,
Shiv
Rajesh SB
Esteemed Contributor

Re: softlink

Setting umask to 022 is standard best practice.
In case Symbolic link creation with file/dir to avoid the access permission problem, umask will be set before.

Example:

# umask
02
# ll x.pl
-rwxr-xr-x 1 rajeshsb tenoc 731 Apr 4 2003 x.pl

# ln -s x.pl z.pl
ll x.pl y.pl
-rwxr-xr-x 1 rajeshsb tenoc 731 Apr 4 2003 x.pl
lrwxrwxr-x 1 rajeshsb tenoc 4 Sep 8 11:56 y.pl -> x.pl

Effecting permission of link file after
#umask 022

# ln -s x.pl z.pl
# ll x.pl z.pl
-rwxr-xr-x 1 rajeshsb tenoc 731 Apr 4 2003 x.pl
lrwxr-xr-x 1 rajeshsb tenoc 4 Sep 8 11:56 z.pl -> x.pl

It is not mandatory just a good practice.

Cheers,
Rajesh