Why?? NFS Cached Permissions Groups Etc

Home » CentOS » Why?? NFS Cached Permissions Groups Etc
CentOS 2 Comments

An hour of my life disapeared and my beautiful uptime was rebooted and it was fixed by reading http://serverfault.com/questions/98900/is-a-reboot-required-to-refresh-permissio ns-after-adding-a-user-to-a-new-group

#/home is mounted from a NFS export
[jpyeron@node000 ~]$ cat /tmp/jobs/foo.txt ~jobs/test.txt ~jobs/userstest.txt afasdasd

cat: /home/jobs/test.txt: Permission denied Sun May 5 03:20:36 EDT 2013

#### why does this fix the issue?
[jpyeron@node000 ~]$ newgrp jobs

[jpyeron@node000 ~]$ cat /tmp/jobs/foo.txt ~jobs/test.txt ~jobs/userstest.txt afasdasd

Sun May 5 02:27:17 EDT 2013
Sun May 5 03:20:36 EDT 2013
[jpyeron@node000 ~]$

2 thoughts on - Why?? NFS Cached Permissions Groups Etc

  • http://serverfault.com/questions/98900/is-a-reboot-required-to-refresh-permissio ns-after-adding-a-user-to-a-new-group

    Hmmm, logging out and then back in the problem comes back again. I cannot reboot the NFS server but I think that would fix it.

    [jpyeron@node000 ~]$ stat /tmp/jobs/foo.txt ~jobs/test.txt ~jobs/userstest.txt
    File: `/tmp/jobs/foo.txt’
    Size: 10 Blocks: 8 IO Block: 4096 regular file Device: fd01h/64769d Inode: 139769 Links: 1
    Access: (0660/-rw-rw—-) Uid: (56736/ jobs) Gid: (56736/ jobs)
    Access: 2013-05-05 02:56:55.480608527 -0400
    Modify: 2013-05-05 02:56:35.487608647 -0400
    Change: 2013-05-05 02:56:44.924607727 -0400
    File: `/home/jobs/test.txt’
    Size: 29 Blocks: 16 IO Block: 1048576 regular file Device: 13h/19d Inode: 13058227 Links: 1
    Access: (0660/-rw-rw—-) Uid: (56736/ jobs) Gid: (56736/ jobs)
    Access: 2013-05-05 02:27:17.000000000 -0400
    Modify: 2013-05-05 02:27:17.000000000 -0400
    Change: 2013-05-05 02:57:25.000000000 -0400
    File: `/home/jobs/userstest.txt’
    Size: 29 Blocks: 16 IO Block: 1048576 regular file Device: 13h/19d Inode: 13058228 Links: 1
    Access: (0660/-rw-rw—-) Uid: (56736/ jobs) Gid: ( 100/ users)
    Access: 2013-05-05 03:20:36.000000000 -0400
    Modify: 2013-05-05 03:20:36.000000000 -0400
    Change: 2013-05-05 03:21:11.000000000 -0400
    [jpyeron@node000 ~]$

LEAVE A COMMENT