Home
Certification Preparation
CompTIA
Linux+
Sudo
adamtaib
Hi
How are u I `m new mamber this forum any body can help to configure sudo
CIio
Find more posts tagged with
Comments
Ricka182
I myself don't know anything about Sudo, but
This
may help.
fondue
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.
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Best Of