This file is indexed.

/usr/bin/lp-remove-team-members is in lptools 0.2.0-2ubuntu1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#! /usr/bin/python
#
# Copyright 2011 Canonical Ltd.
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 3, as published
# by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranties of
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
# PURPOSE.  See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program.  If not, see <http://www.gnu.org/licenses/>.

"""Remove members from a Launchpad team.

Usage: lp-remove-team-members TEAM MEMBER...
"""

import socket
import sys

from lptools.config import (
    get_launchpad)


def main(args):
    if len(args) < 3:
        print __doc__
        return 1
    lp = get_launchpad('lptools on %s' % (socket.gethostname(),))
    team_name = args[1]
    team = lp.people[team_name]
    members_details = team.members_details
    for exile_name in args[2:]:
        print 'remove %s from %s...' % (exile_name, team_name),
        for m in members_details:
            if m.member.name == exile_name:
                m.setStatus(status='Deactivated')
                print 'done'
                break
        else:
            print 'not a member?'
                

if __name__ == '__main__':
    sys.exit(main(sys.argv))