How do I configure users on my ubuntu system without shell and execute only one command?

ru flag

I need to build a Ubuntu server where users will be logged in but I dont want them to give a shell access. As soon as the user logs in one custom command will be executed and it will be allow certain options. That means once they login the script will be executed and they will be allowed to enter those many options and should not get a access to shell at all.

Can you please suggest?

TIA Blaon R

David avatar
cn flag
Ubuntu Core. Look into that.

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.