You are not logged in.

#1 2010-03-07 15:26:57

chakra-user
Member
Registered: 2010-03-07
Posts: 74

[SOLVED] Run pppd as a non root user.

Hi Arch Team,
                             I am a new Arch-Chakra user(but not new to linux) and I want to start and stop my adsl without using sudo(i.e as a regular non-root user). Currently I can run pon & poff via sudo but ofcourse it will ask for passwd and I want a password-less way to run it without compromising security. This is required inorder to start/stop my adsl Internet connection non-interactively say via cron or any other program where there is no user input possible.
          Such is the default configuration/setup in Kubuntu(my last distro) but I guess Arch is a root-allowed distro contrary to *Ubuntu. So does any one know how to accomplish this in Chakra or point me to a working HOWTO. I am running pppd as per http://wiki.archlinux.org/index.php/PPP … _with_pppd

Thanks.

Last edited by chakra-user (2010-03-11 09:35:50)

Offline

#2 2010-03-11 00:32:32

chakra-user
Member
Registered: 2010-03-07
Posts: 74

Re: [SOLVED] Run pppd as a non root user.

Answering my own query, below is the fix to help somebody who is also looking for solution to the same problem.

#sudo visudo
in the editor, go to last line and add
<ur username/%group>     ALL=(ALL) ALL, NOPASSWD: /usr/bin/pon, /usr/bin/poff

Thats it. now u can run sudo pon/poff without entering password.
Though I wud ideally like to do away with mentioning even 'sudo' but this is enuf for me at this moment. Anyone has proper steps to do that also, then let me know.
Forum Moderators may mark the topic as SOLVED.

Offline

#3 2010-03-11 09:07:28

hbekel
Member
Registered: 2008-10-04
Posts: 311

Re: [SOLVED] Run pppd as a non root user.

chakra-user wrote:

Forum Moderators may mark the topic as SOLVED.

That's your job:

http://bbs.archlinux.org/viewtopic.php?id=50161

Offline

#4 2010-03-11 09:34:59

chakra-user
Member
Registered: 2010-03-07
Posts: 74

Re: [SOLVED] Run pppd as a non root user.

Ahh thanks for the link. Since there was no directing visible way to do it thought let me write abt it.

Offline

Board footer

Powered by FluxBB