https://bugs.koozali.org/show_bug.cgi?id=12311

--- Comment #3 from Brian Read <[email protected]> ---
Comment from @JP on the rocket chat:

I am not a pro but you could euther use the example in C of e-smith-manager or
this one https://github.com/IceM4nn/suid-shell-wrapper
Link Preview
GitHub - IceM4nn/suid-shell-wrapper: suid bash shell wrapper binary
suid bash shell wrapper binary. Contribute to IceM4nn/suid-shell-wrapper
development by creating an account on GitHub.
GitHub
https://viewvc.koozali.org/smeserver/rpms/e-smith-manager/sme10/e-smith-manager-2.8.0-manager_suid_wrapper.patch?revision=1.1&view=markup
Link Preview
[smeserver] Contents of
/rpms/e-smith-manager/sme10/e-smith-manager-2.8.0-manager_suid_wrapper.patch
you could use this last one Brian Read and create a read and a write wrapper.
considering my experience with C that is how i would do. 😉
i would try to add something in the write one like that
https://stackoverflow.com/questions/2189245/how-can-i-get-the-username-of-the-person-executing-my-program/2189263#2189263
with group hardcoded to double check no one played
Link Preview
How can I get the username of the person executing my program?
How can I get the username of the process owner (the user who is executing my
program) in C++?
Stack Overflow
then i would g+x the two compiled files
with chmod root:ddclient. be sure it is not readable/writable/executable by
others

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to