what I would want to do is to authenticate a linux user via web browser to a centain directory e.g http://domain.com/protected , the .htpasswd one I know but I want to run some cgi scripts that execute some bash scripts and need a valid linux user who is in the sudoers. So in short when the user access http://domain.com/protected/abc.cgi his system user should be passed so the cgi scripts executes and in it the command sudo service httpd restart can execute.
I added the apache user in sudoers and it works but I need the linux users..
Any help/suggestion would be much appreciated.
Protecting your Linux box
2 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest