Hello!
I have a Ubuntu server 6.06, and what i want to do is grant access to a user (say 'test') on a program (say centericq).
What i have done is:
1) create file 'center' in /usr/bin with chmod 755
'center' contains:
Code:
{ sudo /usr/bin/centericq; }
2) added the following line in /etc/sudoers
Code:
test ALL = NOPASSWD: /usr/bin/centericq
3) when i run 'center' as 'test' i get:
Code:
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct NULL not valid
/usr/bin/center: line 1: 20772 Aborted sudo /usr/bin/centericq
Now i know there is a problem here i just don't know what it is. Can you help me?