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?
|
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:
Is this feasible? |
||||
|
You could change the users shell (in Simple example:
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. |
|||
|
|
somefile.phpbe different files or it it really fixed assomefile.php? – Iain♦ Mar 22 '11 at 8:45