Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1223661

Summary: Hangs when logging in on NFS4 /home
Product: Red Hat Enterprise Linux 6 Reporter: Yongcheng Yang <yoyang>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED ERRATA QA Contact: Yongcheng Yang <yoyang>
Severity: high Docs Contact:
Priority: high    
Version: 6.6CC: bfields, coughlan, eguan, fs-qe, jiyin, jlayton, m.a.young, rh-bugzilla, salmy, ssorce, steved, yoyang
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nfs-utils-1.2.3-66.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1056658 Environment:
Last Closed: 2016-05-11 00:03:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1268411    

Comment 6 Steve Dickson 2016-02-12 19:32:17 UTC
so basically you saying su - testuser does not work  because
if testUser logs in and kinits everything works find, correct?

Comment 11 Steve Dickson 2016-03-28 16:16:29 UTC
The reason you are seeing this failure is because
the the bad gss creds cause by the su 

> [root@ibm-x3550m3-06 ~]# su testUser
> bash: /home/testUser/.bashrc: Permission denied
> bash-4.1$ ls -la /home/testUser
> ls: cannot access /home/testUser: Permission denied  <<< failed before kinit

are cached and used by the kernel by the during the ls
[Note there is no upcalls happening]

So even when the user kinits valid creds, the old invalid (cached)
creds are being used for the ls.

Now if you exit out of the user shell and su back to
the valid creds will be used.

In a nut shell, you have to kinit before accessing the 
directory.

Comment 12 Yongcheng Yang 2016-03-29 04:18:27 UTC
(In reply to Steve Dickson from comment #11)
> The reason you are seeing this failure is because
> the the bad gss creds cause by the su 
> 
> > [root@ibm-x3550m3-06 ~]# su testUser
> > bash: /home/testUser/.bashrc: Permission denied
> > bash-4.1$ ls -la /home/testUser
> > ls: cannot access /home/testUser: Permission denied  <<< failed before kinit
> 
> are cached and used by the kernel by the during the ls
> [Note there is no upcalls happening]
> 
> So even when the user kinits valid creds, the old invalid (cached)
> creds are being used for the ls.
> 
> Now if you exit out of the user shell and su back to
> the valid creds will be used.
> 
> In a nut shell, you have to kinit before accessing the 
> directory.

Still got failed even kinit before accessing.

[root@hp-dl388g8-16 ~]# mount -o rw,sec=krb5  $SERVERS:/home/testUser /home/testUser
[root@hp-dl388g8-16 ~]# nfsstat -m
/home/testUser from ibm-x3550m3-06.rhts.eng.pek2.redhat.com:/home/testUser
 Flags:	rw,relatime,vers=4,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=krb5,clientaddr=10.73.194.81,minorversion=0,local_lock=none,addr=10.73.4.149

[root@hp-dl388g8-16 ~]# su testUser -c "echo redhat | kinit" <<<< kinit before
Password for testUser: 
[root@hp-dl388g8-16 ~]# su testUser
bash: /home/testUser/.bashrc: Permission denied
bash-4.1$ 
bash-4.1$ kinit
Password for testUser: 
bash-4.1$ echo $?
0
bash-4.1$ 
bash-4.1$ exit
exit
[root@hp-dl388g8-16 ~]# su testUser        <<<<<<<<<< exit out and su back again
bash: /home/testUser/.bashrc: Permission denied
bash-4.1$ ls /home/testUser/
ls: cannot open directory /home/testUser/: Permission denied
bash-4.1$ kinit
Password for testUser: 
bash-4.1$ ls /home/testUser/
ls: cannot open directory /home/testUser/: Permission denied
bash-4.1$ exit
exit
[root@hp-dl388g8-16 ~]# su testUser
bash: /home/testUser/.bashrc: Permission denied
bash-4.1$ exit
exit
[root@hp-dl388g8-16 ~]# kadmin -p root/admin -w redhat -q "listprincs" | grep testUser
testUser
[root@hp-dl388g8-16 ~]#

Comment 14 Steve Dickson 2016-03-30 15:25:01 UTC
(In reply to Yongcheng Yang from comment #12)
> (In reply to Steve Dickson from comment #11)
> 
> [root@hp-dl388g8-16 ~]# mount -o rw,sec=krb5  $SERVERS:/home/testUser
> /home/testUser
> [root@hp-dl388g8-16 ~]# nfsstat -m
> /home/testUser from ibm-x3550m3-06.rhts.eng.pek2.redhat.com:/home/testUser
>  Flags:
> rw,relatime,vers=4,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,
> port=0,timeo=600,retrans=2,sec=krb5,clientaddr=10.73.194.81,minorversion=0,
> local_lock=none,addr=10.73.4.149
> 
> [root@hp-dl388g8-16 ~]# su testUser -c "echo redhat | kinit" <<<< kinit
> before
> Password for testUser: 
> [root@hp-dl388g8-16 ~]# su testUser
> bash: /home/testUser/.bashrc: Permission denied
Its still the same problem... How can the kinit work when the
home directory can not be accessed? Is there a /tmp/krb5cc_XXX 
context being created? I'm guess not... 

The normal procedure is to get the krb5 ticket before accessing
the file system.

Comment 17 Yongcheng Yang 2016-04-08 08:21:55 UTC
There is no Hang occurred now. And the "Permission denied" is my configuration's problem according to Comment 16

Move to VERIFIED.

Comment 19 errata-xmlrpc 2016-05-11 00:03:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0868.html