.profile can't perform a cd

 
Terrence
Regular Advisor

.profile can't perform a cd

I'm trying to add a simple command to change directory and then run an executable from the .profile. But when I log on I keep ending up in my home directory instead of where I want to cd to. Even though I'm in my home directory, a pwd command gives the response:
sh: : Cannot access parent directories.

Here's what I want it to do,
cd /app01/applive
/usr/ab7/bin/udd

Any ideas as to why I'm trapped in my home directory? Permissions aren't an issue on the directories and file I want to run.
3 REPLIES 3
Thierry Poels_1
Honored Contributor

Re: .profile can't perform a cd

hi,

I guess you'll always end up in your home dir during login. That's the idea of a "home dir" :)

You could try to run it as:
( cd /app01/applive ; /usr/ab7/bin/udd )

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Terrence
Regular Advisor

Re: .profile can't perform a cd

I can do this on other servers. Adding a cd command at the end of the .profile allows me to login and start in a directory other than my home directory.

On this server, it doesn't allow me to.
Terrence
Regular Advisor

Re: .profile can't perform a cd

The answer was the permissions on /home were incorrect.

Easiest points I never earned!