helino
May 3rd, 2009, 01:11 PM
Hi everyone,
I'm wondering if it's possible to add a user that only can do one command, for example cat. The reason I'm wondering is because I want to share my terminal screen with some friends while developing, and one really nice way to do that is with screen, see http://www.linux.com/feature/56443.
Now, I only want the user that ssh to my box to be able to do one thing, and that is:
screen -x
Is this possible to set up? The reason for this is that I want all my friends to share a single ssh key, and this key can quite easily fall into other peoples hands if someone attacks my friends computers...
I'm wondering if it's possible to add a user that only can do one command, for example cat. The reason I'm wondering is because I want to share my terminal screen with some friends while developing, and one really nice way to do that is with screen, see http://www.linux.com/feature/56443.
Now, I only want the user that ssh to my box to be able to do one thing, and that is:
screen -x
Is this possible to set up? The reason for this is that I want all my friends to share a single ssh key, and this key can quite easily fall into other peoples hands if someone attacks my friends computers...