Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have my users' home directories where I want them so it's not that "/export/home vs /home" problem I don't think. It seems that all users (root included) have the same home despite being clearly different in /etc/passwd. That is to say that regardless of who logs in, they are taken to the home directory of the first user I made when typing "cd". So if user2 logs in he is taken to user1's home and must go to his home manually by typing "cd ../user2" for example. Root even uses user1's home. My /etc/passwd file looks like this:
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
As login fails, the rest of the command results are useless ...
Well, run again these commands either while already logged in locally, or after allowing root to log in remotely by commenting out the CONSOLE line in the /etc/default/login file.
And please enclose your results with "code" tags..
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Ok, that looks almost correct, and doesn't exhibit the problem you are complaining of, being all users home being "/home/user1", even for root as you wrote in your first posting:
Quote:
Root even uses user1's home.
There is anyway a small and perhaps unrelated problem, your /etc/passwd set /sbin/sh as the shell used by root, but ptree is showing bash is used instead.
My first guess is you have messed up either your /etc/profile or /.profile
I guess the difference is when using "su" instead of "exec login". When I log in normally and just su between accounts this behavior occurs. I thought they were the same. Thanks for your help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.