Skip to content

visudo

November 11, 2007

[root@lp3tnf13 ~]# visudo
atau
[root@lp3tnf13 ~]# vi /etc/sudoers

berfungsi untuk memberikan hak akses perintah sudo.

============================================
# User alias specification

# Cmnd alias specification

# Defaults specification
# Defaults syslog=auth

# Runas alias specification

# User privilege specification
root    ALL=(ALL) ALL

# Uncomment to allow people in group wheel to run all commands
# %wheel        ALL=(ALL)       ALL

# Same thing without a password
# %wheel        ALL=(ALL)       NOPASSWD: ALL

# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now
# command ini akan meng-allow user fadhil untuk melakukan perintah sudo last, sudo lastlog, dan reboot tanpa harus memasukkan password
fadhil ALL=NOPASSWD:/usr/bin/last, /usr/bin/lastlog, /usr/bin/reboot

=========================================================================

Powered by ScribeFire.

From → Linux

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: