Operating System - Tru64 Unix
1827889 Members
1784 Online
109969 Solutions
New Discussion

unable to login particular groups

 
SOLVED
Go to solution
muthamilan
Frequent Advisor

unable to login particular groups

hi friends
I'm having TRU64 5.1.B.I'm unable to login particular 2 groups user only.if i login particular group users then i got error message "no directoy".Pl., giude me.

Thnaks& Regards
S.Muthamilan
30 REPLIES 30
Michael Schulte zur Sur
Honored Contributor

Re: unable to login particular groups

Hi,

check on the home directories of the two users in /etc/passwd. They must exist.
run pwck

greetings,

Michael
muthamilan
Frequent Advisor

Re: unable to login particular groups

Hi,

We had checked the permissions on all the home directories .

We tried creating a new group and a new user . Then also we get the same error as
No Directory.

MOst peculiar thing is that when we put that user or any user in the group called 'operator' as secondary group he is able to login without any problems.

We have checked everything from permissions , quotas and even HP support is not able to give a proper solution for this.
They had asked us to restore from a old backup.We were told that this is not in their problem database.

Right now we are including the users in operator group till we get a clear idea of the problem and a clear solution.

If any one can give us a solution for this we will be very happy.

Venkatesh BL
Honored Contributor

Re: unable to login particular groups

Are these NIS users?. Are you running automount daemon?. Do you have BASE or ENHANCED security enabled?
muthamilan
Frequent Advisor

Re: unable to login particular groups

No this is not NIS user& running automount daemon.I think this is base security only.
Venkatesh BL
Honored Contributor

Re: unable to login particular groups

Are you saying that,

If you put the users into a particular group -> You get 'No directory' error.

If you remove them from the group -> No problem.

Correct?

Can you post the /etc/passwd /etc/group entries for the affected users and group?
muthamilan
Frequent Advisor

Re: unable to login particular groups

/etc/passwd
perumal:D5ydvAylni5fE:801:500::/usr/users/perumal:/bin/ksh(working)
muthu:uOFskAnJ7wurc:200:200::/user6/muthu:/bin/sh (not working)

/etc/group
test:*:500: (working)
dba:*:200: (not working)
Han Pilmeyer
Esteemed Contributor

Re: unable to login particular groups

Can you show us a "ls -ld" on "/user6" and "/user6/muthu"?
muthamilan
Frequent Advisor

Re: unable to login particular groups

/user6

ls -ld
drwxr-xr-x 14 ora9R2 system 8192 Jul 3 21:48 .

/user6/muthu
ls -ld
drwxrwxrwx 3 202 operator 8192 Jul 3 09:42 .
muthamilan
Frequent Advisor

Re: unable to login particular groups

pl., ignore previous

/user6

ls -ld
drwxr-xr-x 14 ora9R2 system 8192 Jul 3 21:48 .

/user6/muthu
ls -ld
drwxrwxrwx 3 oracle operator 8192 Jul 3 09:42 .
muthamilan
Frequent Advisor

Re: unable to login particular groups

/etc/group also having follwoing entery

operator:*:20:perumal
Han Pilmeyer
Esteemed Contributor

Re: unable to login particular groups

Looks like the protection for those directories is just wrong. The home directory should be owned by the user, i.e. muthu (202 instead of 200) and group dba (200 instead of 20).You also probably want to set the mode more restrictive (like 750 instead of 777). You may also want to change the group for the higher level directory , i.e. /users6 (e.g. dba instead of system).
muthamilan
Frequent Advisor

Re: unable to login particular groups

I have changed like below ,still problem exist.

/user6
drwxr-x--- 3 muthu dba 8192 Jul 3 09:42 muthu
/
drwxr-xr-x 14 ora9R2 dba 8192 Jul 3 21:48 user6
muthamilan
Frequent Advisor

Re: unable to login particular groups

if i add the same username in operator group then i can login.
root user is working .other then root only users belong to operator is able to login.
/etc/group
operator:*:20:muthu
Han Pilmeyer
Esteemed Contributor
Solution

Re: unable to login particular groups

Have you done a "chown -R muthu:dba /users6/muthu"? Note that all the files in muthu's directory need to have the correct protection...

If you add a user using the useradd or adduser command, then all of this should be taken care of.
muthamilan
Frequent Advisor

Re: unable to login particular groups

yes ,i gave -R option.
if I change this user group to gid 20 then user can login.otherthen gid 20 is not working.
Michael Schulte zur Sur
Honored Contributor

Re: unable to login particular groups

Hi,

did you run pwck and grpck?

Michael
muthamilan
Frequent Advisor

Re: unable to login particular groups

yes run.no problem found
Venkatesh BL
Honored Contributor

Re: unable to login particular groups

This is wierd...

what does "id " say?

Also, if some other user is added to group '200', are they able to login properly?
muthamilan
Frequent Advisor

Re: unable to login particular groups

id users(muthu) gives uid(555) gid (15).
no gid 20 is working group.if anyone add this group then that user can login.
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