Find the answer to your Linux question:
Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2014
    Posts
    3

    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
    oravis
    oravis2:/root> ls -l /home
    total 4
    drwxr-xr-x 19 SMITH users 4096 Jun 5 03:25 SMITH

    /etc/passwd
    oravis:1001:1000::/home/oravis:/bin/bash
    applvis:1002:1000::/home/applvis:/bin/bash

    How do I overcome this?

    Thanks for your help.
    Paul

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,356
    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
  •