Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an embedded system I have been developing. I would like to bind a program called HHPConfig, which I wrote and needs root permissions for setting network interfaces, rebooting etc..., to a user, admin, which can log in through telnet and rs232.

I edited the line in /etc/passwd to be:

admin:x:1001:1001:Admin User,,,:/home/admin:/usr/bin/HHPConfig

I also added the user to the group sudo.

I don't know what to do past there.

share|improve this question

migrated from Dec 9 '11 at 1:11

This question came from our site for professional and enthusiast programmers.

up vote 2 down vote accepted

Have you considered making the executable's owner root and setuid'ing it?

share|improve this answer
Thank you, I was looking for that all morning! – Jonathan Henson Dec 8 '11 at 18:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.