Operating System - Tru64 Unix
1751973 Members
5512 Online
108784 Solutions
New Discussion юеВ

Re: Not able to login with any user ID

 
Michael Schulte zur Sur
Honored Contributor

Re: Not able to login with any user ID

Hi,

please do
cd /usr/users/test
and post ls -lisa

thanks,

Michael
Manish PATHAK_2
Regular Advisor

Re: Not able to login with any user ID

# ls -lisa
total 30
35445 8 drwxr-x--x 3 test users 8192 Apr 26 10:38 .
35444 8 drwxr-xr-x 3 root users 8192 Apr 26 10:38 ..
35446 2 -rwxr-xr-x 1 test users 1295 Oct 17 2002 .cshrc
35448 2 -rwxr-xr-x 1 test users 1464 May 17 2004 .login
35450 2 -rwxr-xr-x 1 test users 1453 Oct 17 2002 .profile
35447 8 drwxr-xr-x 2 test users 8192 Jun 22 2004 bin
SlopeZ
Frequent Advisor

Re: Not able to login with any user ID

Michael,

i think if anyone can login, the wrong permission must to be in upper level:
/usr/
or
/usr/users

Manish, can you check this permission or post it here?

Thanks.

Saints.
Vijayasekar Rajsekar
Frequent Advisor

Re: Not able to login with any user ID

Manish,

Pls. do the following steps:

Before running through these steps, ensure that you can get a screen capture of all the commands that you will be executing, incase there are problems.

1. Remove the test user completely
2. Check if "/usr/users" directory is under one partition. Sometimes /users could be a softlink under /usr. This can be a problem sometimes.
3. Do a "adduser" command and add your user.
4. If command completes successfully, start
tracing your way upwards as "cd /usr, then cd users and then cd test.
5. Check '/etc/passwd' entry for your new user. What group are you using ?
6. Try logging in.
7. If you cannot login, pls. post the entire screen capture from steps 1-6 on this forum for further investigation.
Michael Schulte zur Sur
Honored Contributor

Re: Not able to login with any user ID

Manish,

ther are two things you still could do.
pwck
grpck
to check passwd and group file.

hth,

Michael
Venkatesh BL
Honored Contributor

Re: Not able to login with any user ID

Ok...I guess I know the reason for this problem.

From the o/p of ls -lisa, we see that:
# ls -lisa
total 30
35445 8 drwxr-x--x 3 test users 8192 Apr 26 10:38 .
35444 8 drwxr-xr-x 3 root users 8192 Apr 26 10:38 ..
35446 2 -rwxr-xr-x 1 test users 1295 Oct 17 2002 .cshrc

See that ".." is owned by 'root' (meaning 'test' directory is owned by root). Change ownership to 'test' using 'chown test test'. This should solve your problem.

Let us know if it does.
Manish PATHAK_2
Regular Advisor

Re: Not able to login with any user ID

Hi nw when creating the user getting the following error message....


cannot get directory path getwd:cann't lstat..

please suggest something as all the permissions andownerships are okie and all the home directories and files exists there.


May be something wrong with the getwd and lstat.

Regards
Manish
Manish PATHAK_2
Regular Advisor

Re: Not able to login with any user ID

Hi the problem has been resolved.

The root directory permissions were disturbed. Thanks a lot for all the help you people have provided.

Regards
Manish
Michael Schulte zur Sur
Honored Contributor

Re: Not able to login with any user ID

Hi,

would you please take a minute and award points to those who tried to help?

thanks,

Michael
read this
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
Manish PATHAK_2
Regular Advisor

Re: Not able to login with any user ID

after correcting the user directory permissions the problem has been resolved