{"action":"opened","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/37116","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/37116/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/37116/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/37116/events","html_url":"https://github.com/saltstack/salt/issues/37116","id":184243866,"number":37116,"title":"Question: 'group' option to file.find usage","user":{"login":"ferricoxide","id":7087031,"avatar_url":"https://avatars.githubusercontent.com/u/7087031?v=3","gravatar_id":"","url":"https://api.github.com/users/ferricoxide","html_url":"https://github.com/ferricoxide","followers_url":"https://api.github.com/users/ferricoxide/followers","following_url":"https://api.github.com/users/ferricoxide/following{/other_user}","gists_url":"https://api.github.com/users/ferricoxide/gists{/gist_id}","starred_url":"https://api.github.com/users/ferricoxide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferricoxide/subscriptions","organizations_url":"https://api.github.com/users/ferricoxide/orgs","repos_url":"https://api.github.com/users/ferricoxide/repos","events_url":"https://api.github.com/users/ferricoxide/events{/privacy}","received_events_url":"https://api.github.com/users/ferricoxide/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-20T14:22:55Z","updated_at":"2016-10-20T14:22:55Z","closed_at":null,"body":"### Description of Issue/Question\r\nTrying to address a security-control that states that any files in a user's `${HOME}` should be group-owned by a valid group for that user. Was hoping to use `file.find` to do so, but when I try to enumerate more than one group, I get errors:\r\n\r\n~~~\r\n# salt-call --local file.find /var/tmp/testGroups group=ferric\r\n[WARNING ] /usr/lib/python2.7/site-packages/salt/grains/core.py:1493: DeprecationWarning: The \"osmajorrelease\" will be a type of an integer.\r\n\r\nlocal:\r\n    - /var/tmp/testGroups/file0\r\n# salt-call --local file.find /var/tmp/testGroups group=ferric,wheel\r\n[WARNING ] /usr/lib/python2.7/site-packages/salt/grains/core.py:1493: DeprecationWarning: The \"osmajorrelease\" will be a type of an integer.\r\n\r\nlocal:\r\n    error: no such group \"ferric\"\r\n# salt-call --local file.find /var/tmp/testGroups group=wheel,ferric\r\n[WARNING ] /usr/lib/python2.7/site-packages/salt/grains/core.py:1493: DeprecationWarning: The \"osmajorrelease\" will be a type of an integer.\r\n\r\nlocal:\r\n    error: no such group \"wheel\"\r\n# ls -l /var/tmp/testGroups/\r\ntotal 0\r\n-rw-r--r--. 1 root ferric 0 Oct 20 13:21 file0\r\n-rw-r--r--. 1 root adm    0 Oct 20 13:21 file1\r\n-rw-r--r--. 1 root wheel  0 Oct 20 13:21 file2\r\n-rw-r--r--. 1 root root   0 Oct 20 13:21 file3\r\n~~~\r\n\r\nSo, trying to determine, is this a usage failure on my part (i.e., I misunderstood the dox) or have I tripped over a bug?\r\n\r\nAlso: ultimate goal is to be able to do a negation - something like:\r\n~~~\r\n# salt-call --local file.find /var/tmp/testGroups group!=ferric,wheel,adm\r\n~~~\r\nSo as to uncover files that are not group-owned by a user's primary and secondary groups (would like to use directory-recurse to fix, but would be A Bad Thing™ if valid secondary groups got changed, so need a method for generating a more-focused list to apply an iterative file.managed to).\r\n\r\n### Setup\r\nWorking on CentOS 7.2.1511 with Salt 2016.3.3 - no SLS files, yet, as I was noodling via the above ahead of writing my full state-handler.\r\n\r\n### Steps to Reproduce Issue\r\nSee output above.\r\n\r\n### Versions Report\r\n~~~\r\nSalt Version:\r\n           Salt: 2016.3.3\r\n\r\nDependency Versions:\r\n           cffi: Not Installed\r\n       cherrypy: Not Installed\r\n       dateutil: Not Installed\r\n          gitdb: Not Installed\r\n      gitpython: Not Installed\r\n          ioflo: Not Installed\r\n         Jinja2: 2.7.2\r\n        libgit2: Not Installed\r\n        libnacl: Not Installed\r\n       M2Crypto: Not Installed\r\n           Mako: Not Installed\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.4.8\r\n   mysql-python: Not Installed\r\n      pycparser: Not Installed\r\n       pycrypto: 2.6.1\r\n         pygit2: Not Installed\r\n         Python: 2.7.5 (default, Sep 15 2016, 22:37:39)\r\n   python-gnupg: Not Installed\r\n         PyYAML: 3.11\r\n          PyZMQ: 15.3.0\r\n           RAET: Not Installed\r\n          smmap: Not Installed\r\n        timelib: Not Installed\r\n        Tornado: 4.2.1\r\n            ZMQ: 4.1.4\r\n\r\nSystem Versions:\r\n           dist: centos 7.2.1511 Core\r\n        machine: x86_64\r\n        release: 3.10.0-327.36.2.el7.x86_64\r\n         system: Linux\r\n        version: CentOS Linux 7.2.1511 Core\r\n~~~"}}
{"actor":{"display_login":"ferricoxide"}}