Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#4 Develop a GUI for editing the sudoers.xml file

open
General (14)
5
2006-06-25
2006-06-25
No

Develop a graphical tool for editing the sudoers.xml
file that is used by the XmlAuthorizationPlugin.

Discussion

  • T-Bear-Skistad
    T-Bear-Skistad
    2007-08-17

    Logged In: YES
    user_id=1788132
    Originator: NO

    XML pad works pretty well,, and is free :)

     
  • jp10558
    jp10558
    2007-09-14

    Logged In: YES
    user_id=1618608
    Originator: NO

    I've been sort of working on one created in AutoIT and working with a function that calls out to MSXML to do the editing. One problem I've run in to is that while XML may believe that

    <user name="test" allowAllCommands="true"/>
    is the same as
    <user name="test" allowAllCommands="true">
    </user>

    it in initial testing seems to kill sudowin. The code I have should create a new user and allow setting allowAllCommands but when it does insert the user as:
    <user name="test" allowAllCommands="true"/>
    sudowin doesn't seem to like it at all.

    Of course it doesn't help that it seems the MSXML changes other formatting as well.

    I'm not sure if this is just something I cannot do with that XML library or if there's a bug in my code or I'm hitting bugs in sudowin.

    I'd be willing to post code if I knew how, and if anyone knew more about the XML editing than I do. It's quite rough right now though.