Python Forum
spwd module missing in iOS - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: spwd module missing in iOS (/thread-19129.html)



spwd module missing in iOS - dr_atomic - Jun-14-2019

Hello,

does someone know why spwd module is missing on iOS Python? I cannot install it using pip nor conda?
It is present on my Ubuntu/Debian machines and in sources available to download (spwdmodule.c)?

Best Regards
K.


RE: spwd module missing in iOS - noisefloor - Jun-14-2019

Hi,

quote for the module's documentation:

"This module provides access to the Unix shadow password database. It is available on various Unix versions.
You must have enough privileges to access the shadow password database (this usually means you have to be root)."

So I guess iOS either doesn't have the shadow pw database or there is not way to access it from Python. So I'm afraid you have to live without this module on iOS.

Regards, noisefloor


RE: spwd module missing in iOS - dr_atomic - Jun-14-2019

Hm, I read the docs but AFAIK Ansible's user module (which uses spwd) worked before, maybe they introduced a bug?


RE: spwd module missing in iOS - noisefloor - Jun-14-2019

Hi,

I do not use Ansible, so I don't know. However, using the spwd module requires Root access, and I doubt that this is possible on a restricted OS like iOS.

Regards, noisefloor