(self, user: str, shell: str)
| 2008 | return False |
| 2009 | |
| 2010 | def user_set_shell(self, user: str, shell: str) -> bool: |
| 2011 | info(f'Setting shell for {user} to {shell}') |
| 2012 | |
| 2013 | cmd = self._chroot_argv('chsh', '-s', shell, user) |
| 2014 | try: |
| 2015 | run(cmd) |
| 2016 | return True |
| 2017 | except CalledProcessError as err: |
| 2018 | debug(f'Error setting user shell: {err}') |
| 2019 | return False |
| 2020 | |
| 2021 | def chown(self, owner: str, path: str, options: list[str] | None = None) -> bool: |
| 2022 | options = options or [] |
nothing calls this directly
no test coverage detected