You could add an entry in /etc/sudoers allowing any local user to run the command with either their own password, the root password, or no password.
You use the visudo program to edit it.
There are a couple commented sample lines near the bottom of the file that you can model it after.
Then a person could enter: sudo wlassistant to run it. ( If it is not in there path, then they would need the pathname, or you could supply a link in /usr/bin. )
At first glance you might think that not having a password is insecure, but it is only for the one command, and this means that you don't have to give out the root password. You can control which users are allowed to run the command by defining a users alias in sudoers, or by referring to a group name that you create for that purpose. Then adding users to that group would allow them to run the command.
I use Kinternet which is a KDE applet you can add to the toolbar. You can use it to scan for networks and connect. To disconnect or reconnect, you simply left click on the animated icon. This would be even more convenient then editing sudoers.
The sudoers file has its own manpage: man 5 sudoers
Last edited by jschiwal; 02-25-2006 at 02:01 AM.
|