getting the same as
http://drupal.org/node/1377930

but I am logged in as user.ftp

Comments

PlayfulWolf’s picture

hmm, it seems, that command

su -s /bin/bash - username.ftp

does not solve problem - proper paths are shown just by logging as user from beginning

omega8cc’s picture

Status: Active » Postponed (maintainer needs more info)

Could you explain the problem with exact steps to reproduce it, as I don't really understand what you mean here.

PlayfulWolf’s picture

Sorry for no context

1.Want to create custom platform in /static/paltforms, but getting the exact problem as http://drupal.org/node/1377930
2. Logged in as root
3. pwd command shows incorrect path when logged in as root
4. su -s /bin/bash - username.ftp
pwd - show the same path
5. When logged in into ssh as username.ftp from the beggining - paths shown by pwd command are different

omega8cc’s picture

Component: Code » Miscellaneous

You should log in as username.ftp or su username.ftp - you don't need to change the shell etc.

It is not possible to see "incorrect" path when using pwd command. You probably confused something here, which I don't understand (yet).

Please post the exact examples - paths you see as a result of pwd command.

omega8cc’s picture

Note: it is never an absolute path: /static/platforms. It is always a path inside the system user home directory, so /data/disk/username/static, symlinked in the limited shell user home directory as ~/static, not /static, so pwd will always return a path like /data/disk/username/static/platforms which is correct.

omega8cc’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)