- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Can't get into current working directory
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
03-20-2002 07:38 AM
03-20-2002 07:38 AM
I have a nasty problem on one of my servers. We use a very old database called unidata. This database is installed on a MCSG cluster. On one node it runs fine but as soon as I switch to the failover node, users cannot start the program (udt). They get the error "cannot get current working directory". The strange thing is that I do not have this problem when I logon as root.
The disks between the two nodes are mirrored, thus the mounted volumes are the same. The /etc/passwd, /etc/profile and /etc/group files are identical on both servers.
Does anybody have a suggestion where I have to look?
Thanks in advance.
DD
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2002 07:43 AM
03-20-2002 07:43 AM
Re: Can't get into current working directory
Almost certainly your problem is with the mountpoint permissions. You will need to umount the filesystem in question and then look at the permissions of the mountpoint itself. I'll bet the permissions are very restrictive eventhough those of the mounted filesysystems are fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2002 07:44 AM
03-20-2002 07:44 AM
Re: Can't get into current working directory
Next thing, compare the environment, home directories etc on both systems.
This looks like a user config issue on the suspect node.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2002 08:53 AM
03-20-2002 08:53 AM
Re: Can't get into current working directory
I look for the permits on the working directory for the user, the environment variables, .profile and the permits in the mount point directories.
Hope this help,
Justo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2002 11:00 AM
03-20-2002 11:00 AM
Re: Can't get into current working directory
Now I found out that the owner of the home directory of these users was set to root on the failing node. It could be that this was the problem, but I'm still not 100% sure. The hard thing is that the system has to be up and running 22h a day, thus I can test the failover only tomorrow.
P.S. Does somebody know what the udt command does? (the command to logon to the database?).
P.S. Does somebody have a good test using the getcwd() command?
Thanks and regards,
DD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2002 11:29 AM
03-20-2002 11:29 AM
Re: Can't get into current working directory
The attached small 3 minute C program should
do the test for you. It will compile with the Bundled C compiler.
cc +DAportable getcwd.c -o getcwd
You should then cd to whatever directory as a regular user. Execute getcwd. If sucessfull, it will print the cwd on stdout and exit with status 0 otherwise an error message will print to stderr and the exit status will indicate the error.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2002 11:33 AM
03-20-2002 11:33 AM
Re: Can't get into current working directory
This is what I was looking for (I guess).
I'll keep in touch tomorrow after 15.30 CET.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 04:37 AM
03-21-2002 04:37 AM
Re: Can't get into current working directory
With the getcwd command I could figure out that normal users did have no permissions on the / filesystem.
Apparently an external consultant changed it.
Regards,
DD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 07:34 AM
03-21-2002 07:34 AM
Re: Can't get into current working directory
Check the permissions for the directory. The user who is trying to get into this directory should have read and execute permission (atleast) for this directory.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 07:41 AM
03-21-2002 07:41 AM
SolutionI'm glad you got things going. I hope you didn't do something really dangerous and open up / or other directories to simply 777. Give them no more permissions on these directories that is needed.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 07:44 AM
03-21-2002 07:44 AM
Re: Can't get into current working directory
Problem solved, case closed.
Regards,
DD