MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I'm setting up a Mandrake 10 computer for my grandmother. Unfortunately she's stuck with dialup - but fortunately her Dialup ISP supports linux and I got their client up and running. There's only one problem - in order to talk to the modem, the shell script that runs the dialer client must be run as root, as well as running ifdown to actually hang up. Now, as it is I have the desktop shortcut set to Run as Root - but this prompts me for a password. (It's in KDE.) I've made the root password nothing, but it still asks. I'de rather not make my grandmother have to click through a bunch of root login screens to sign on and off - so far I only can think of three options - none of which I know the feasability of.
1) Somehow make the desktop icon automatically provide the root password. I'de make a shortcut to ifdown ppp0 as well using the same idea so there'd be no confusion.
2) Modify the shell script that runs the client to SU in as root first, and again somehow provide the password, and then make a shell script for ifdown to do the same thing.
3) (This is a last resort kinda thing, I'm well aware of the security risks) Autologin as root - which they dont directly allow you to do, but that's probably passable if one knows what file to edit.
If anyone has any ideas on solving any of these solutions, or if you have another of your own I'de be very, very happy to hear it.
Install sudo and make the desktop icon run "sudo <command>". Sudo can be configured to work without a password. This way, no accidental commands will be run as root, but root access can still be granted without a password.
Thanks. I was kinda pressed for time, and made a slightly more hasty decision where I used Mandrake's config settings to not require a password to run something as root... So she's still technically logged in as a normal user. I know that it would normally be a not-good thing, but I'm 100% certain that my Grandmother won't be playing with the command line, and the odds of her getting a virus or something through dialup the way she uses it are slim to none... and they really have little to destroy that can't be fixed. But again, thanks for the reply.