LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   psybnc & ident lookups (https://www.linuxquestions.org/questions/linux-newbie-8/psybnc-and-ident-lookups-275133/)

omg-ffs 01-07-2005 04:25 PM

psybnc & ident lookups
 
Hi all,

To sum up the problem: oident will not return the user of a psybnc account, but rather returns that of the system user who's running the psybnc.

Now if I set oisent d ro run as root with
Code:

/usr/local/sbin/oidentd -d
Then the ident look up works if I have this as my /etc/oidentd.conf file
Code:

default {
 default {
  allow spoof
  allow spoof_all
  allow spoof_privport
  allow random
  allow random_numeric
  allow numeric
  allow hide
 }
}

This conf file above is given on the main psybnc page. Clearly running oidentd as root isn't such a good idea.. So how can I allow the lookups to work whilst using this as start up command?
Code:

/usr/local/sbin/oidentd -d -u ident -g ident
The ident group & user does exist ofc..

Ideally, I would like to use this as my config file, so that 2 psybnc's on my system (user1 & user2) Can spoof the ident reply, but all other users are not allowed to, this is what I believe is right:
Code:

default {
        default {
                deny spoof
                deny spoof_all
                deny spoof_privport
                allow random_numeric
                allow numeric
                allow hide
        }
}

user root {
        default {
                force reply "UNKNOWN"
        }
}

user user1 {
        default {
                allow spoof
                allow spoof_all
                allow spoof_privport
                allow random
                allow random_numeric
                allow numeric
                allow hide
        }
}

user user2 {
        default {
                allow spoof
                allow spoof_all
                allow spoof_privport
                allow random
                allow random_numeric
                allow numeric
                allow hide
        }
}

Would anyone be kind enough to help this :newbie: ? Firstly to get the correct ident replies when it is run as non-root, and then clarification if my 2nd conf file will do as I require?

Thanks for your help :)


All times are GMT -5. The time now is 11:49 AM.