Operating System - Tru64 Unix
1751805 Members
5265 Online
108781 Solutions
New Discussion юеВ

Re: unable to login particular groups

 
SOLVED
Go to solution
Han Pilmeyer
Esteemed Contributor

Re: unable to login particular groups

That doesn't correspond to the /etc/passwd entry you gave us for muthu above. The uid and gid of user muthu need to match the directory /users6/muthu and all the files in it exactly.
muthamilan
Frequent Advisor

Re: unable to login particular groups

/etc/passwd entry is
muthu:uOFskAnJ7wurc:555:15::/user6/muthu:/bin/sh
muthamilan
Frequent Advisor

Re: unable to login particular groups

muthu:uOFskAnJ7wurc:555:15::/user6/muthu:/bin/sh

if change gid 15 to 20 then this id is working.
Han Pilmeyer
Esteemed Contributor

Re: unable to login particular groups

Please only change one thing at a time!

The information you gave about the directory still doesn't match the latest information you gave about the passwd and group file. Please try this and post the results:

chown -R muthu:users ~muthu
ls -al ~muthu
su - muthu

The above should be executed as root using ksh or bash and assumes that the "users" group has not been modified from the default (15).
muthamilan
Frequent Advisor

Re: unable to login particular groups

I has changed but still problem exist.
#ls -l
/user6
drwxr-x--- 3 muthu users 8192 Jul 3 09:42 muthu
ls -al muthu
total 30
drwxr-x--- 3 muthu users 8192 Jul 3 09:42 .
drwxr-xr-x 14 ora9R2 dba 8192 Jul 3 21:48 ..
-rwxr-xr-x 1 muthu users 1295 Aug 2 2001 .cshrc
-rwxr-xr-x 1 muthu users 1464 Dec 26 2003 .login
-rwxr-xr-x 1 muthu users 1453 Aug 2 2001 .profile
drwxr-xr-x 2 muthu users 8192 Aug 2 2001 bin
Han Pilmeyer
Esteemed Contributor

Re: unable to login particular groups

Please do the commands exactly as I give them, e.g. I explicity asked for "ls -al ~muthu" and "su - muthu" as I expect that there is a mismatch somewhere between the /etc/passwd file and the directory. I would rather not ask you to post your passwd and group file in a public forum.

So can you do the "ls -al ~muthu" and the "su - muthu" and show the results? Have you made the changes to the passwd file using "vipw"?
muthamilan
Frequent Advisor

Re: unable to login particular groups

hi han
I tried your command this is result.

If I changed group ID to 20 then this user working properly.

Thanks&Regards
S.Muthamilan

root@Almark#ls -al ~muthu
total 30
drwxr-x--- 3 muthu users 8192 Jul 3 09:42 .
drwxr-xr-x 14 ora9R2 dba 8192 Jul 3 21:48 ..
-rwxr-xr-x 1 muthu users 1295 Aug 2 2001 .cshrc
-rwxr-xr-x 1 muthu users 1464 Dec 26 2003 .login
-rwxr-xr-x 1 muthu users 1453 Aug 2 2001 .profile
drwxr-xr-x 2 muthu users 8192 Aug 2 2001 bin
root@Almark#su - muthu
No directory
Han Pilmeyer
Esteemed Contributor

Re: unable to login particular groups

Of course you can change the group to "20" and it will work. You've made that point several times. But so far I have seen no explanation to why that works. In fact, it shouldn't work. This is really unbelievable. There's something very strange going on.

You're not using ACL's are you?

As an experiment, could you change the passwd entry for muthu (using vipw!) so that the home directory becomes /usr/tmp? Then try "su - muthu" again. Please show the results of every step.
muthamilan
Frequent Advisor

Re: unable to login particular groups

no we are not using ACL




~
"/etc/ptmp" 28 lines, 1484 characters
Hashed passwd database does not exist, create? [yes]>
28 password entries (longest entry is 87 bytes long)
root@Almark#su - muthu
No directory

same problem occur.
Han Pilmeyer
Esteemed Contributor

Re: unable to login particular groups

Okay, obviously the /usr/tmp directory is fine. So there must be a problem with the passwd/group file. Can you tar them up and mail them to me at firstname dot lastname at hp dot com?

If you want to you could add the output of "sys_check -all" to it as well.