Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
getting the same as
http://drupal.org/node/1377930
but I am logged in as user.ftp
Comments
Comment #1
PlayfulWolf CreditAttribution: PlayfulWolf commentedhmm, 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
Comment #2
omega8cc CreditAttribution: omega8cc commentedCould you explain the problem with exact steps to reproduce it, as I don't really understand what you mean here.
Comment #3
PlayfulWolf CreditAttribution: PlayfulWolf commentedSorry 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 root4.
su -s /bin/bash - username.ftp
pwd
- show the same path5. When logged in into ssh as
username.ftp
from the beggining - paths shown bypwd
command are differentComment #4
omega8cc CreditAttribution: omega8cc commentedYou should log in as
username.ftp
orsu 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.Comment #5
omega8cc CreditAttribution: omega8cc commentedNote: 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
, sopwd
will always return a path like/data/disk/username/static/platforms
which is correct.Comment #6
omega8cc CreditAttribution: omega8cc commented