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
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
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.
Summary: Hello! The problem is that I have a process that runs as a non root user but when i reboot the computer the process starts up as root. I got an answer that I should put an su - command in my startscr...
Summary: I can su from root to any user. But, the "su" command is not authenticating the password if I log on as any other user other than root.I checked the /etc/pam.conf and it looks fine with entries for /u...
Summary: I am getting this error with as as -K PIC -P -D_ASM -D__STDC__=0 -xarch=v8plus -o apr_atomic_sparc.lo apr_atomic_sparc.S as: unrecognized option `-_ASM' COULD ANYONE PLEASE HELP ME WITH THIS.... ...