3 ms·
I suppose /usr/sbin/nologin is not a thing? https://www.man7.org/linux/man-pages/man8/nologin.8.html https://www.man7.org/linux/man-pages/man8/nologin.8.html
by 0cf8612b2e1e 2mo ago
I suppose /usr/sbin/nologin is not a thing?
https://www.man7.org/linux/man-pages/man8/nologin.8.html https://www.man7.org/linux/man-pages/man8/nologin.8.html
- inigyou 2mo agoThat's a hack. It's a login shell that, once you have already logged in and run the shell, prints a message saying you can't log in or run a shell, and then exits. It does not stop you from, say, logging in to SSH and then starting a port forward. Or running a command in a way that bypasses the login shell. ssh will always pass it to your login shell but other ways can be vulnerable.
- Bender 2mo agoDo you have a script to show us how it works? Here, use Claude's login [1]. There's no password. I am not very technical so let me know if I should set a password on that account. I trust everyone here. [1] - sftp ai@nochan.net
- BenjiWiebe 2mo agoDoesn't seem to allow port forwarding so I think you're probably good.
- trucks-refinish 2mo agogit-shell is actually made for this exact situation. it does allow uploading git repos I think so you can't open it to the public, maybe there's a way to configure it though to not allow that.