Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

If I run hidd --search it says HID create error 13 (Permission denied)

If I run as sudo it connects fine.

I want this script to run on login. I saw how to edit sudoers, but will it create a security weakness if I add %MYNAME ALL = NOPASSWD: /usr/bin/hidd

Is there a group I can add myself to that means I can run this command without sudo?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

You can run it without a password by editing the /etc/sudoers file as you mentioned. One step further would be to append alias hidd='sudo hidd' to your ~/.bashrc file.

I don't know of any other way besides sudo.

If it needs root to run, I do believe groups won't help you. However, if it has a daemon running as root [Like wicd], groups might help you out, but I would tend to doubt it.

share|improve this answer
    
Thank you for the extra details. –  oldmankit Oct 19 '11 at 2:26

Your Answer

 
discard

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.