I'm needing to work out a way of restricting a user (ssh login on ubuntu 10.04) to only be allowed to do the following:
- Upload txt files only (through SCP or SFTP)
- Execute the php command "php somefile.php"
Is this feasible?
You could change the users shell (in
Save it in
It would probably be easier to serve the php script over a web server, and offer a text file upload through the same site. That way you can have incredibly fine control over what's allowed and what's not.