+ Reply to Thread
Results 1 to 3 of 3

Thread: Sudo

  1. Junior Member
    Join Date
    Dec 2004
    Location
    tz
    Posts
    3

    Certifications
    profesional
    #1

    Default Sudo

    Hi
    How are u I `m new mamber this forum any body can help to configure sudo

    CIio
    Reply With Quote Quote  

  2. SS -->
  3. Ancient Relic.......
    Join Date
    May 2003
    Location
    Somewhere in Time....
    Posts
    3,442

    Certifications
    Security+, A+, Network+, MCDST, DCSE, CST, CNST
    #2
    I myself don't know anything about Sudo, but This may help.
    Reply With Quote Quote  

  4. Senior Member
    Join Date
    Sep 2003
    Posts
    106

    Certifications
    CCNA, MCSE
    #3
    Ahh, sudo is both the sysadmins friend and enemy. Friend by giving elevated priviledges to certain users and enemy for the same reason. (I hate giving elevated privs to anyone)

    After you install sudo on the users pc, you must edit the /etc/sudoers file by using visudo. I repeat you must edit with visudo. Most distros come with a few examples.

    The example file below would give adamtiab permissision to run mount and ldconfig.

    ###start of example###
    [root@localhost root]# cat /etc/sudoers
    # sudoers file.
    #
    # This file MUST be edited with the 'visudo' command as root.
    #
    # See the sudoers man page for the details on how to write a sudoers file.
    #
    # Host alias specification

    # User alias specification

    # Cmnd alias specification

    # Defaults specification

    # User privilege specification
    root ALL=(ALL) ALL
    adamtiab localhost=/sbin/ldconfig, /bin/mount

    ###end of example####

    To run sudo the user would do the following:
    [adamtiab@localhost ~] $ sudo /bin/mount /blah/blah /mount/point

    and remember to use visudo to edit the sudoers file.
    Reply With Quote Quote  

+ Reply to Thread

Social Networking & Bookmarks