Computing.Net > Forums > Solaris > No directory! error with su command

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

No directory! error with su command

Reply to Message Icon

Name: drice
Date: November 3, 2003 at 05:49:26 Pacific
OS: Solaris 8
CPU/Ram: Sun Fire 280R 1 Go
Comment:

When issuing su - login (I have 5 logins on my server), except for root, I got the following error : "No Directory!"

But directories for users exist! And they got the good rights.
For example, my user maint :
cat /etc/passwd | grep maint
maint:x:102:0:Maintenance Arca-Network:/home/maint:/bin/bash

ls -al /home | grep maint
drwxrwxrwx 2 maint root 512 Nov 3 13:45 maint

su - maint
No directory!

Can someone help me to understand? Is it a problem regarding patches?
Thanks,
Drice from France

PS : on my others servers it works fine!!!



Sponsored Link
Ads by Google

Response Number 1
Name: Danny Larouche XL2
Date: November 6, 2003 at 06:45:34 Pacific
Reply:

su maint
or
su - maint

The second one is wrong


0

Response Number 2
Name: ftye
Date: November 12, 2003 at 17:13:48 Pacific
Reply:

Add the -m flag to your useradd command. i.e


useradd -d /home/maint -m maint

This tells the OS to create the home directory.


0

Response Number 3
Name: Denny Raab
Date: November 21, 2003 at 08:54:14 Pacific
Reply:

I had a similar problem once, but the message was "no shell". Anyway, in my experience, the permissions on the / directory was wrong. Only root could log in ... no one else and even root could not su to the id.

The permissions were drwx------ for /
I chenged it to:
drwxr-xr-x

This fixed it.

Your problem is a little different. YOu are getting "No Directory!". I would check the permissions on all the directories above the actual directories. If any of them have the permissions that cause my problem exist ... it could do just what you are experiencing.

Good Luck

Denny


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: No directory! error with su command

No directory! whith su command www.computing.net/answers/solaris/no-directory-whith-su-command/3121.html

su command authentication problem www.computing.net/answers/solaris/su-command-authentication-problem/3006.html

error with as (assembler) www.computing.net/answers/solaris/error-with-as-assembler/1556.html