Sudo

adamtaibadamtaib Member Posts: 3 ■□□□□□□□□□
Hi
How are u I `m new mamber this forum any body can help to configure sudo

CIio :o
ADAM ALL THIS FORUM I GIVE THANKS TO JOIN WITH ME

Comments

  • Ricka182Ricka182 Member Posts: 3,359
    I myself don't know anything about Sudo, but This may help.
    i remain, he who remains to be....
  • fonduefondue Member Posts: 104
    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.
Sign In or Register to comment.