HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- symbolic links in HPUX
Operating System - HP-UX
1830400
Members
2674
Online
110002
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 02:31 AM
05-02-2002 02:31 AM
symbolic links in HPUX
Hi All,
I have a customer that have very complex directory structure - the directories
are linking one to other with many symbolic links (even accross the network ).
When he try to do "cd" to such directiry
he got a message:
: Too many levels of symbolic links
The error condition usually indicates that a
file is linked to itself - but this is NOT the case here
I found in /usr/include/sys/param.h
#define MAXPATHLEN 1024
#define MAXSYMLINKS 20
Is this values have any connection to the message he gets ?
Do somebody have any other idea ?
Thanks
I have a customer that have very complex directory structure - the directories
are linking one to other with many symbolic links (even accross the network ).
When he try to do "cd" to such directiry
he got a message:
: Too many levels of symbolic links
The error condition usually indicates that a
file is linked to itself - but this is NOT the case here
I found in /usr/include/sys/param.h
#define MAXPATHLEN 1024
#define MAXSYMLINKS 20
Is this values have any connection to the message he gets ?
Do somebody have any other idea ?
Thanks
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 03:48 AM
05-02-2002 03:48 AM
Re: symbolic links in HPUX
Hi Joseph:
From '/usr/include/sys/param.h':
MAXPATHLEN defines the longest permissable path length after expanding symbolic links. It is used to allocate a temporary buffer from the buffer pool in which to do the name expansion, hence should be a power of two, and must be less than or equal to MAXBSIZE.
MAXSYMLINKS defines the maximum number of symbolic links that may be expanded in a path name. It should be set high enough to allow all legitimate uses, but halt infinite loops
reasonably quickly.
Further, from the symlink(4) man pages:
It is possible to make symbolic links point to themselves or other symbolic links in such a way that they form a closed loop. The system detects this situation by limiting the number of symbolic links it traverses while translating a path name.
Regards!
...JRF...
From '/usr/include/sys/param.h':
MAXPATHLEN defines the longest permissable path length after expanding symbolic links. It is used to allocate a temporary buffer from the buffer pool in which to do the name expansion, hence should be a power of two, and must be less than or equal to MAXBSIZE.
MAXSYMLINKS defines the maximum number of symbolic links that may be expanded in a path name. It should be set high enough to allow all legitimate uses, but halt infinite loops
reasonably quickly.
Further, from the symlink(4) man pages:
It is possible to make symbolic links point to themselves or other symbolic links in such a way that they form a closed loop. The system detects this situation by limiting the number of symbolic links it traverses while translating a path name.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 04:05 AM
05-02-2002 04:05 AM
Re: symbolic links in HPUX
Hi James,
Thanks for reply.
Can I increase MAXPATHLEN and MAXSYMLINKS ?
How can i do it ?
Joseph
Thanks for reply.
Can I increase MAXPATHLEN and MAXSYMLINKS ?
How can i do it ?
Joseph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 04:24 AM
05-02-2002 04:24 AM
Re: symbolic links in HPUX
You've got a real problem here. Yes, you can change the include file but in order for it to take effect, you'd have to recompile every program that needs to traverse this complicated structure.
For example, in order for 'cd' to work, you'd have to recompile the shell itself.
I'd be looking to reduce the complexity of the directory structure, possibly by creating symlinks that point further into the structure.
Regards,
John
For example, in order for 'cd' to work, you'd have to recompile the shell itself.
I'd be looking to reduce the complexity of the directory structure, possibly by creating symlinks that point further into the structure.
Regards,
John
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP