How te execute with /bin/false shell
Posted
by Amar
on Stack Overflow
See other posts from Stack Overflow
or by Amar
Published on 2010-04-11T17:49:30Z
Indexed on
2010/04/11
17:53 UTC
Read the original article
Hit count: 456
Hello
I am trying to setup per-user fastcgi scripts that will run each on different port and with different user. Here is example of my script:
#!/bin/bash
BIND=127.0.0.1:9001
USER=user
PHP_FCGI_CHILDREN=2
PHP_FCGI_MAX_REQUESTS=10000
etc...
However, if I add user with /bin/false (which I want, since this is about to be something like shared hosting and I dont want users to have shell access), the script is run'd under 1001, 1002 'user' which, as I googled, might be security hole. My question is: Is it possible to allow user(s) execute shell scripts but disable them to log in via SSH ?
Thank you
© Stack Overflow or respective owner