I started to study the Solaris in my university. Teacher told me to do a hardlink to a directory. And he said that I can not to use mount command. For example: # mount -F lofs /dir1/dir2 /dir1/hardlink2
I know that Unix doesn't allowed  hardlink to a directory. I was looking for other ways but I found nothing. And I don't know how I can do this hardlink.
Do you know way how create a hardlink to a directory in Solaris?

lnprogram doesn't allow a user (any user) to do it. (1) Check the man page forlnon your system. There may be an option (like-dor-F) to telllnto override the restriction. (2) Check to see whether you have alinkcommand. (3) If those don't work, try writing a one-line C program to call thelinksystem call.linkcommand works. Thank you very much.