tildetown / tildetown-admin

administrative web app for tilde.town
7 stars 3 forks source link

Support self-service chsh and chfn #29

Closed vilmibm closed 6 years ago

vilmibm commented 6 years ago

This issue covers:

I'm not really sure yet how this should work or how it should be exposed. it's possible that we just want to wrap chsh and chfn with something and not involve the django admin at all.

ghost commented 6 years ago

I think the easiest way to do this would be to make the user make a file with a name of ~/.chsh or something of the line with the contents of the desired shell, with a crontab entry to change the shell for respective users and then remove the .chsh file so it won't be redundantly changing the shell.

ghost commented 6 years ago

(bonus points: write a chsh in /usr/local/bin or something similar, that creates a ~/.chsh instead of the usual chsh binary)

vilmibm commented 6 years ago

chatted with eq about this in irc, are going to try this

vilmibm commented 6 years ago

Fixed, used pam.d rules.