- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 'pwd' command not working in a particular dire...
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
07-26-2010 07:17 AM
07-26-2010 07:17 AM
'pwd' command not working in a particular directory.
host1:daaadm 1> cd /sapmnt/PEP/logs
host1:daaadm 2> pwd
pwd: No such file or directory
host1:daaadm 3>
Any idea where I have to look.
- Tags:
- pwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2010 07:47 AM
07-26-2010 07:47 AM
Re: 'pwd' command not working in a particular directory.
What happens if you do an 'ls'?
What are the permissions on the directory?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2010 07:51 AM
07-26-2010 07:51 AM
Re: 'pwd' command not working in a particular directory.
What does 'whence -v pwd' show? It should return something like "pwd is a shell builtin".
The only way I was able to duplicate this was by:
cd'ing into a directory
remove that directory from another terminal
Execute /usr/bin/pwd rather than just 'pwd'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2010 08:32 AM
07-26-2010 08:32 AM
Re: 'pwd' command not working in a particular directory.
What happens if you do an 'ls'?
host1:daaadm 4> ls
host1:daaadm 5> ll
total 0
host1:daaadm 6>
What are the permissions on the directory?
drwxr-xr-x 2 pepadm sapsys 1024 Oct 20 2009 logs
Are you sure you are running the correct 'pwd' command?
host1:daaadm 14> which pwd
INSTANCEDIR_LIST: Undefined variable.
What does 'whence -v pwd' show? It should return something like "pwd is a shell builtin".
host1:daaadm 13> whence -v pwd
whence: Command not found.
daaadm is using csh
The only way I was able to duplicate this was by:
cd'ing into a directory
remove that directory from another terminal
Execute /usr/bin/pwd rather than just 'pwd'.
The directory is still exist.
host1:daaadm 15> /usr/bin/pwd
pwd: No such file or directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2010 11:11 AM
07-26-2010 11:11 AM
Re: 'pwd' command not working in a particular directory.
ll -d /sapmnt/PEP/logs /sapmnt/PEP /sapmnt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2010 07:46 PM
07-26-2010 07:46 PM
Re: 'pwd' command not working in a particular directory.
pwd command is located in /usr/bin/pwd. Your output shows that there is no pwd in /usr/bin.
Can you run "which pwd" and see where is pwd located?
Is the pwd command working fine for other directories?
Regrds,
Muru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2010 08:23 PM
07-26-2010 08:23 PM
Re: 'pwd' command not working in a particular directory.
Can you post output of following command?
#echo $PATH
#more .profile of your current logged in user
#cd /usr/bin
#ll pw*
Regards
Deeos
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2010 11:33 PM
07-26-2010 11:33 PM
Re: 'pwd' command not working in a particular directory.
#type pwd
says
and find pwd it should be in /usr/bin/pwd
and one more thing is it happening on all directory or specific this directory.
check echo $PATH
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2010 12:26 AM
07-28-2010 12:26 AM
Re: 'pwd' command not working in a particular directory.
host1:daaadm 5> type pwd
pwd is a shell builtin.
One more information, The /sapmnt/PEP is nfs filesystem which is exported from the same server. The original filesystem is /export/sapmnt/PEP. The pwd command is working fine if you go to the original filesystem.
host1:daaadm 2> cd /export/sapmnt/PEP/logs
host1:daaadm 3> pwd
/export/sapmnt/PEP/logs
host1:daaadm 4> cd /sapmnt/PEP/logs
host1:daaadm 5> pwd
pwd: No such file or directory
host1:daaadm 6>
as a root user the pwd command is working fine in the same directory.
Is it bug in HP UX 11.31???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2010 12:51 AM
07-28-2010 12:51 AM
Re: 'pwd' command not working in a particular directory.
#cd /sapmnt/PEP/logs
#/usr/bin/pwd
which is this user and please try
echo $PATH for this user.
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2010 03:00 AM
07-28-2010 03:00 AM
Re: 'pwd' command not working in a particular directory.
Can you umount /sapmnt/PEP and then do "ll -d /sapmnt/PEP"?
If you don't have the right permissions on the mount point, bad things happen.
>as a root user the pwd command is working fine in the same directory.
This seems to point to the mount point permissions?
>Is it bug in 11.31?
Sounds like a sysadmin bug. :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2010 03:01 AM
07-28-2010 03:01 AM
Re: 'pwd' command not working in a particular directory.
host1:daaadm 4> /usr/bin/pwd
pwd: No such file or directory
host1:daaadm 5> echo $PATH
.:/home/daaadm:/usr/sap/DAA/SYS/exe/uc/hpia64:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin:/opt/ipf/bin:/opt/nettladm/bin:/opt/fcms/bin:/opt/wbem/bin:/opt/wbem/sbin:/opt/sas/bin:/opt/graphics/common/bin:/opt/atok/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/sec_mgmt/bastille/bin:/opt/drd/bin:/opt/dsau/bin:/opt/dsau/sbin:/opt/resmon/bin:/opt/firefox:/opt/gnome/bin:/opt/perf/bin:/usr/contrib/kwdb/bin:/opt/mozilla:/opt/perl_32/bin:/opt/perl_64/bin:/opt/prm/bin:/opt/sfm/bin:/opt/swm/bin:/opt/sec_mgmt/spc/bin:/opt/ssh/bin:/opt/swa/bin:/opt/hpsmh/bin:/opt/thunderbird:/opt/gwlm/bin:/opt/ignite/bin:/usr/local/bin:/opt/wlm/bin:/opt/hpnpl//bin:/opt/cfg2html:/opt/hp-gcc/bin:/opt/propplus/bin
host1:daaadm 6>
Only with csh shell this issue is happening.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2010 03:13 AM
07-28-2010 03:13 AM
Re: 'pwd' command not working in a particular directory.
It is production box not possible to umount:(
> This seems to point to the mount point permissions?
We have another 3 nodes with same mount points and permissions. No issue with other nodes.
> Sounds like a sysadmin bug. :-)
lol
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2010 03:44 AM
07-28-2010 03:44 AM
Re: 'pwd' command not working in a particular directory.
The scummy C shell uses a different algorithm to find the CWD. It's lazy and just calls /usr/bin/pwd.
In a real shell try these:
pwd
pwd -P
/usr/bin/pwd
> It is production box not possible to umount:(
You might be able to use fire to fight fire.
I.e. if you can export / and mount it on another machine, you can then look at the permissions of /sapmnt/PEP mount point
They should be: dr-xr-xr-x 2 root root
Or even mount it back on itself:
# mkdir ROOT
# mount host1:/ $PWD/ROOT
# ll -d ROOT/sapmnt/PEP
(Then umount when done.)
>We have another 3 nodes with same mount points and permissions. No issue with other nodes.
How do you know without checking? You cloned the machines?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2010 05:36 AM
07-28-2010 05:36 AM
Re: 'pwd' command not working in a particular directory.
host1:/usr/bin#cmdo "ll -d /sapmnt/PEP"
## Executing on node host2:
drwxr-xr-x 18 pepadm sapsys 1024 Jul 11 16:09 /sapmnt/PEP
## Executing on node host4:
drwxr-xr-x 18 pepadm sapsys 1024 Jul 11 16:09 /sapmnt/PEP
## Executing on node host1:
drwxr-xr-x 18 pepadm sapsys 1024 Jul 11 16:09 /sapmnt/PEP
## Executing on node host3:
drwxr-xr-x 18 pepadm sapsys 1024 Jul 11 16:09 /sapmnt/PEP
host1:/usr/bin#cmdo "ll -d /export/sapmnt/PEP"
## Executing on node host2:
drwxr-xr-x 2 pepadm sapsys 96 Apr 3 2008 /export/sapmnt/PEP
## Executing on node host4:
drwxr-xr-x 2 pepadm sapsys 96 Apr 3 2008 /export/sapmnt/PEP
## Executing on node host1:
drwxr-xr-x 18 pepadm sapsys 1024 Jul 11 16:09 /export/sapmnt/PEP
## Executing on node host3:
drwxr-xr-x 2 pepadm sapsys 96 Apr 3 2008 /export/sapmnt/PEP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2010 05:48 AM
07-28-2010 05:48 AM
Re: 'pwd' command not working in a particular directory.
#whereis pwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2010 08:13 AM
07-28-2010 08:13 AM
Re: 'pwd' command not working in a particular directory.
pwd: /usr/bin/pwd /usr/share/man/man1.Z/pwd.1
host1:daaadm 10>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2010 12:42 PM
07-28-2010 12:42 PM
Re: 'pwd' command not working in a particular directory.
ls -ld /sapmnt ?
Regards,
Kaps
- Tags:
- Permission
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2010 02:16 AM
10-25-2010 02:16 AM
Re: 'pwd' command not working in a particular directory.
Thans to you all..