Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Error when Switching User: su: warning: cannot change directory

    I am doing an Oracle EBS 12.2 Vision installation on SLES 11 SP3:
    When I su to either of my two users oravis or applvis I get an error that their home directory doesn't exist or they don't have permissions to access.

    su:warning: cannot change directory to home/oravis : No such file or directory

    su - oravis
    su: warning: cannot change directory to /home/oravis: No such file or directory
    oravis:/root> ls -l
    ls: cannot open directory .: Permission denied
    oravis:/root> whoami
    oravis2:/root> ls -l /home
    total 4
    drwxr-xr-x 19 SMITH users 4096 Jun 5 03:25 SMITH


    How do I overcome this?

    Thanks for your help.

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Hi and welcome

    fyi: I moved your thread from coffee lounge to suse linux.

    As for the issue:
    Neither of the $HOMEs of the two users exists.
    So there is no plaxe to cd to for the su command.
    Which means that pwd stays the same (in the example above: /root)
    For /root, there is no permission for the oravis user.

    You should create the two directories /home/oravis and /home/applivis as user root and then chown to their respective users.
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts