Last modified: 2014-08-28 14:32:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T64038, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62038 - NFS servers doesn't allow access for some tool maintainers to their tool directories
NFS servers doesn't allow access for some tool maintainers to their tool dire...
Status: RESOLVED WORKSFORME
Product: Wikimedia Labs
Classification: Unclassified
tools (Other open bugs)
unspecified
All All
: Unprioritized major
: ---
Assigned To: Marc A. Pelletier
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-28 06:27 UTC by Tim Landscheidt
Modified: 2014-08-28 14:32 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Tim Landscheidt 2014-02-28 06:27:03 UTC
For users fsainsbu and tahir, the NFS server only recognize that they are entitled to write in the directories of their tools when they use newgrp to set the tool group as their primary group:

| scfc@tools-login:~$ sudo sudo -iu fsainsbu

| Did you know that there is a shared storage for everyone at /shared

| fsainsbu@tools-login:~$ touch /data/project/tasmania/test
| touch: cannot touch `/data/project/tasmania/test': Permission denied
| fsainsbu@tools-login:~$ newgrp local-tasmania
| fsainsbu@tools-login:~$ touch /data/project/tasmania/test
| fsainsbu@tools-login:~$

Permissions are correct:

| scfc@tools-login:~$ getent group local-tasmania
| local-tasmania:*:51744:fsainsbu
| scfc@tools-login:~$ ls -dl /data/project/tasmania
| drwxrwsr-x 4 local-tasmania local-tasmania 90 Feb 28 06:02 /data/project/tasmania
| scfc@tools-login:~$

Non-NFS works:

| fsainsbu@tools-login:~$ # Without newgrp.
| fsainsbu@tools-login:~$ ls -dl /tmp/tasmania-test /data/project/tasmania
| drwxrwsr-x 4 local-tasmania local-tasmania 90 Feb 28 06:02 /data/project/tasmania
| drwxrwsr-x 1 local-tasmania local-tasmania  0 Feb 28 06:20 /tmp/tasmania-test
| fsainsbu@tools-login:~$ touch /tmp/tasmania-test/test
| fsainsbu@tools-login:~$

It works also at least for me (scfc) writing to ~local-wikilint.

Googling suggests that the most common cause for secondary groups being ignored seems to be that NFS limits them to 16 and the solution is to add "--manage-gids" to the server, but:

| fsainsbu@tools-login:~$ groups 
| wikidev project-bastion project-tools local-tasmania
| fsainsbu@tools-login:~$

Coren, what's the setting of the NFS server at the moment?
Comment 1 Marc A. Pelletier 2014-08-28 14:32:12 UTC
We do use manage-gids and LDAP as the user backend; so that is was the issue.

That said, I've tested the failing statements and they work at this time; it may have been solved by the move to eqiad.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links