ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
830 stars 1.52k forks source link

sudosu: options to pass to su #8575

Open cwchristerw opened 4 months ago

cwchristerw commented 4 months ago

Summary

I would like to able to pass options to su command to be able set shell in su command. I wasn't able to use sudo to set shell to /bin/bash because it's not under /usr/.

I would use it to be able to issue...

sudo su -s /bin/bash lightdm

I had to give sysadmin group permission to use sudo -u lightdm from my FreeIPA. I have had issues with doing this command in issue #8574.

Issue Type

Feature Idea

Component Name

sudosu

Additional Information

Code of Conduct

ansibullbot commented 4 months ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot commented 4 months ago

cc @dagwieers click here for bot help