Author Topic: Password for applications in RH8  (Read 447 times)

Agent007

  • Member
  • **
  • Posts: 120
  • Kudos: 0
Password for applications in RH8
« on: 31 January 2003, 10:13 »
hi all,

When a normal user in RH8 tries to run KPPP, a password box comes up asking for the root users password....Is it possible for me to specify which programs can ask for the password.

Also, how can the password thingy for KPP be removed?

thanks & rgds,
007
AMD Athlon processor
256MB SDRAM
Linux Distro - RedHat 9.0

slave

  • Member
  • **
  • Posts: 1,136
  • Kudos: 0
    • http://www.fuckmicrosoft.com
Password for applications in RH8
« Reply #1 on: 31 January 2003, 10:39 »
KPPP is rather pointless in red hat linux 8.  There is a much easier way.  Configure your modem connection using the network program (neat) under system settings.  Once that's done create a launcher on your desktop whose command is /sbin/ifup ppp0 and another with the command /sbin/ifdown ppp0.  Click on one to dial, click the other to disconnect.  No passwords or even windows that pop up.

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
Password for applications in RH8
« Reply #2 on: 31 January 2003, 14:32 »
or simply do the following:

create a shortcut on the user's desktop to 'redhat-control-network' and then run it. you will need to setup your modem settings in the setup dialogue and to do this, you'll need to give the root password. Once you have done this, all users can run 'redhat-control-network' and they will be able, without entering a password, to use the modem connection that you set up as root.
visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism

LorKorub

  • Member
  • **
  • Posts: 175
  • Kudos: 0
Password for applications in RH8
« Reply #3 on: 31 January 2003, 15:49 »
You could also give sudo a whack.  sudo is a utility that gives root privledges to specific users, on specific applications.  I run it so that when I  login in as a regular user, I can perform system operations without having to login as su all of the time.

You can run the ./visudo script as root to set things up. I'll post an example of my sudoers script so you can use it as a guide:

# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL) ALL
user    ALL=(ALL) NOPASSWD:ALL

# end sudoers

Basically, I can run any command that requires root permissions without a password.  This is very handy if you are installing rpms, or using apt. I also use it to launch my PPPoE script at boot time.  If you wanted to run your program, you can create a shortcut on your desktop, and modify its command property to: sudo /path/to/root/app/you/want/to/run.

You can mess around with all of the other settings if you have multiple users on your box, or if you just want to get familiar with a really cool idea.
"American English -- the noble language of your superiors"

Agent007

  • Member
  • **
  • Posts: 120
  • Kudos: 0
Password for applications in RH8
« Reply #4 on: 31 January 2003, 20:51 »
OK, So does KPPP actually use sudo to ask for the password?

thanks,
007
AMD Athlon processor
256MB SDRAM
Linux Distro - RedHat 9.0

Agent007

  • Member
  • **
  • Posts: 120
  • Kudos: 0
Password for applications in RH8
« Reply #5 on: 5 February 2003, 10:35 »
Well? Can someone pls tell me if I can give grip a password like KPPP? and how?

thanks,
007
AMD Athlon processor
256MB SDRAM
Linux Distro - RedHat 9.0