7 SHELL = '/bin/forward_api_calls'
10 def __init__(self, name): self.name = name
14 add_shell(Delegate.SHELL)
15 logger.log_call('/usr/sbin/useradd',
16 '-p', '*', '-s', Delegate.SHELL, name)
19 def destroy(name): logger.log_call('/usr/sbin/userdel', '-r', name)
21 def configure(self, rec): accounts.install_ssh_keys(rec)
27 """Add <shell> to /etc/shells if it's not already there."""
28 etc_shells = open('/etc/shells')
29 valid_shells = etc_shells.read().split()
31 if shell not in valid_shells:
32 etc_shells = open('/etc/shells', 'a')
33 print >>etc_shells, shell