Eduardo M. A. M. Mendes wrote:
Hello
Many thanks. I did as you have suggested but everytime I issue the command sudo /usr/sbin/adsl-start, a password is requested.
Thanks
Eduardo
Like Jack said, look for typos and 'cat /etc/sudoers' to see if your edit is there. I remember having a hard time getting the syntax exactly right when I was first trying to do this; seem to recall getting error messages from visudo. Something about spacing/tabbing needing to be exactly right. What I do now is copy and paste from a working file. You might want to select the root line by dragging with the left mouse button depressed and paste it where you want it (beginning of newline) by depressing the middle button. Then, carefully change the name to your own and the commands as needed. Maybe pasting my command and changing the names would survive the email journey but I don't know. I suspect that syntax/spacing deal.
Rolf
On Sunday 05 October 2003 08:28 pm, Rolf Pedersen wrote:
Eduardo M. A. M. Mendes wrote:
Hello
I can only adsl-start by logging as root. How can I make adsl-start available for all users? I tried sudousers but no avail (It is more than likely that I did something wrong but I don't know what).
Many thanks
Ed
As root in a terminal, call visudo. This is the vi editor operating on /etc/sudoers. Press 'I' to insert some text and, since I have done this for me, and not wanting to give a password when I call adsl-start, you might want to insert something like the following if you want that:
rolf ALL=NOPASSWD: /usr/sbin/adsl-start, /usr/sbin/adsl-stop, /usr/bin/rdate
and so forth. I put it right under root's line. To save, press 'Escape' and type :wq The command to execute is sudo /usr/sbin/adsl-start, for example. I create an icon on the desktop with that as the command to execute.
Rolf
------------------------------------------------------------------------
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
