Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: RedHat's root verification

  1. #1
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    RedHat's root verification

    I need to know where the code is for RedHat's root verification in X. I would like to integrate the same root authentication doodad into a script/c++ app that I am planning on writing. I am working on a tool that can be dropped into the gnome2 scripts folder and compile and install source tarballs/bzips/rpms. Really all that is needed right now is some user input ro get the root password. I dont want to have to learn GTK or QT to do this

    I own all 6 RH8 cd's so I got the source -- but WHERE!!??!!

    Thanks guys (and gals) ;D

    You will be the first to have my app when done.

    edit ::

    the code I am talking about is like kdesu for kde. But the gnome version.

  2. #2

    Re:RedHat's root verification

    I can't seem to find it anywhere for GNOME. Try this: ps ax and quikly note what is running, open an app that asks for root prilages in GNOME, open a shell and ps ax and look for it there.

  3. #3
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:RedHat's root verification

    You know I did do that for the gui one, but not at the cli ... Ill do that and see. Thanks for the tip

  4. #4
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:RedHat's root verification

    well, that showed that I did a ps, and on the other it showed that along with the app that I called. So I think it may be in the code somewhere ....

  5. #5

    Re:RedHat's root verification

    [quote author=Schotty link=board=9;threadid=5558;start=0#53817 date=1037300516]
    well, that showed that I did a ps, and on the other it showed that along with the app that I called. So I think it may be in the code somewhere ....
    [/quote]

    Thats a posibility but it would be odd IMHO to have code repeating in GNOME programs like that. It could be part of the GNOME API's ...

  6. #6
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:RedHat's root verification

    hmm ... that could be ... I am just lost as to where it is located though ... I really does make sense to have a separate tool to do this rather than having a chunk of code repeated 15 times for each RH tool that requires root access.

  7. #7

    Re:RedHat's root verification

    Name a GNOME program that uses this and I'll look through the source and try to pinpoint it. Try to pick a smaller app that uses it if posible ;-)

  8. #8
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:RedHat's root verification

    well the ones I was specifically trying to reverse engineer, is any one of the redhat-config-blahdeeblahdeedah apps , ie:
    Code:
    [schotty@leinenkugel schotty]$ redhat-config-
    redhat-config-bind           redhat-config-printer
    redhat-config-date           redhat-config-printer-gui
    redhat-config-httpd          redhat-config-printer-tui
    redhat-config-keyboard       redhat-config-proc
    redhat-config-language       redhat-config-rootpassword
    redhat-config-mouse          redhat-config-securitylevel
    redhat-config-network        redhat-config-services
    redhat-config-network-cmd    redhat-config-soundcard
    redhat-config-network-druid  redhat-config-time
    redhat-config-nfs            redhat-config-users
    redhat-config-packages       redhat-config-xfree86
    [schotty@leinenkugel schotty]$ redhat-config-
    I went after the soundcard app. I couldnt figure it out to save my life :-\ Some guy on #redhat confused the living fuck out of me and was hinting at a PAM module, and I dug in there and found a spot where I can plugin apps for something. So I typed the program name in there, didnt work. So I decided to post here.

  9. #9

    Re:RedHat's root verification

    All those are Python scripts which are using pam ...

    Code:
    ash@nwsupplies:~/tmp/etc$ ls
    pam.d  security  sysconfig
    ash@nwsupplies:~/tmp/etc/pam.d$ cat redhat-config-users
    #%PAM-1.0
    auth       sufficient   pam_rootok.so
    auth       sufficient   pam_timestamp.so
    auth       required     pam_stack.so service=system-auth
    session    required     pam_permit.so
    session    optional     pam_xauth.so
    session    optional     pam_timestamp.so
    account    required     pam_permit.so
    ash@nwsupplies:~/tmp/etc$ cd ../security/console.apps/
    ash@nwsupplies:~/tmp/etc/security/console.apps$ ls
    redhat-config-users
    ash@nwsupplies:~/tmp/etc/security/console.apps$ cat redhat-config-users
    USER=root
    PROGRAM=/usr/share/redhat-config-users/redhat-config-users
    SESSION=true
    ash@nwsupplies:~/tmp/etc/security/console.apps$ cd ../../sysconfig/
    ash@nwsupplies:~/tmp/etc/sysconfig$ cat redhat-config-users
    #Configuration file for redhat-config-users
    #Copyright (c) 2002 Red Hat, Inc.  all rights reserved
    
    #Filter out sytem users by default
    FILTER=true
    ash@nwsupplies:~/tmp/etc/sysconfig$
    If it is PAM that you are needing then I would head over to
    http://www.kernel.org/pub/linux/libs/pam/index.html ... http://www.tldp.org/HOWTO/Secure-Programs-HOWTO/ ... http://www.kernel.org/pub/linux/libs.../pam_appl.html ...
    and to a lesser extent http://www.kernel.org/pub/linux/libs...ules.html#toc5 ...
    Here is a question, why not just write your own quick root check.

  10. #10
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:RedHat's root verification

    Thanks ash !!!

    Ill give those a try. I have been hibernating lately. So it may be a day or two before I respond with a success story. As for the self made root verification, the ones in RH8 that I am referring to are alot better than what I could make. I am godawful at gui programming. And I have never churned a single line fo qt/gtk code. And for my purposes, it is just alot simpler to use the existing code.

    Thanks again ash !!

Similar Threads

  1. Replies: 0
    Last Post: 11-24-2008, 03:34 AM
  2. kppp - why do I have to run it as root from Fedora/RedHat?
    By horus in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 03-02-2004, 07:36 PM
  3. Bios verification for RH 7.3
    By 10Dedfish in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 06-26-2003, 12:29 AM
  4. Possible root kit
    By trommaster in forum Linux - Software, Applications & Programming
    Replies: 3
    Last Post: 11-08-2002, 09:22 PM
  5. How do I log in as root?
    By dragon5 in forum Suse
    Replies: 7
    Last Post: 09-02-2002, 07:49 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •