Running a process with restrcited access

Hi Experts,

I have an executable(say example) file that I want to run with restricted access in CentOS linux.
I logged into the system using root account.  How can launch this example app with restricted access. ( Assuming I add a user, ambuli,  with limited access.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

su - ambuli -c example

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Are you trying to say that, you are logged in as root user and trying to execute a command.
But, you don't want the effective user of this command to be user - instead you want it to execute with effective user ambuli?

If that is right, then you can use su as woolmilkporc has pointed out.

But, I feel, sudo is better suited to this than su and also more powerful.
You can use sudo like this:
sudo -u ambuli example
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.