• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar

The Urban Penguin

The Urban Penguin - Linux Training

  • Home
  • About
  • Shop
  • OpenStack
  • LPI Training
    • LPI Linux Essentials
    • LPIC-1 Linux Administrator
    • LPIC-2 Certified Linux Engineer
    • LPIC-3 Senior Level Certification
      • LPIC-3 Exam 300 : Mixed Environments
      • LPIC-3 Exam 303 : Security
      • LPIC-3 Exam 304 : Virtualization and High Availability
    • Live and Pluralsight hosted courses
  • Linux Technologies
    • Apache HTTPD Server
    • Learning PHP
    • Learning PUPPET
    • Learning SAMBA
    • Linux File-Systems
    • Monitoring with Nagios Core
    • MYSQL
    • openLDAP Directories on Linux
  • Programming
    • Master Editing Text Files Using VIM
    • Learn Shell Scripting with BASH
    • PERL Scripting in Linux
    • Ruby Scripting in Linux
    • Scripting with PowerShell
    • Learn C Programming using Linux and the Raspberry Pi
    • General Java Tutorials
    • Java 7 OCA Exam 1ZO-803
  • OS Tutorials
    • Linux Foundation Training (CentOS 7)
    • Learning SUSE
    • Learning Ubuntu
    • Red Hat and CentOS Training
    • Solaris 11 OCA 1ZO-821
  • Pluralsight Courses
You are here: Home / Linux / SUSE / Lesson 8 Manage Delegation with SUDO

Lesson 8 Manage Delegation with SUDO

October 2, 2013 by The Urban Penguin



Now that we have “many users”; we may need to delegate some tasks with SUDO. Really, we should all use SUDO more. Even if you are the single administrator of a machine; sudo is still a better way than to use su. The temptation is with su that you stay logged in as root even after you have done what is required. There is a way around this is su -c but really you are not going to use it, I just know.

Using sudo will allow us to delegate some or all tasks to suers and is controlled vi /etc/sudoers file. We can delegate to suers or groups, groups would have the % symbol to preface them, %users. If groups do not suit then we can creat user aliases:

User_Alias ADMINS = geeko, fredĀ 
ADMINS ALL = (root) ALL, !/usr/bin/passwd root

Here we create a user alias called ADMINS that contains geeko and fred, then assign ADMINS the permissions to sudo as root from all computers and run all command except changing the root password.

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Google+ (Opens in new window)
  • Click to print (Opens in new window)

Filed Under: SUSE

Primary Sidebar

Newest Video

The Urban Penguin On Youtube

Categories

Pages

  • About The Urban Penguin
  • Contact Us
  • Shop
    • Basket
    • Checkout
    • My Account
  • LPI Training from The Urban Penguin
    • Live and Pluralsight hosted courses
    • Complete Linux Essentials
    • Scheduled Linux Essentials Classes
    • LPIC-3 Senior Level Certification
      • LPIC-3 Exam 300 : Mixed Environments
      • LPIC-3 Exam 303 : Security
      • LPIC-3 Exam 304 : Virtualization and High Availability
    • LPIC-2 Certified Linux Engineer
    • LPIC-1 Linux Administrator
    • LPI Linux Essentials for Raspberry Pi
    • LPI Linux Essentials
  • Operating System Tutorials
    • Linux Foundation Training
    • Solaris 11 OCA 1ZO-821
    • Learning Ubuntu
    • Learning SUSE
    • Red Hat and CentOS Training
  • Scripting – the power of repetition!
    • Java 7 OCA Exam 1ZO-803
    • General Java Tutorials
    • Learn C Programming using Linux and the Raspberry Pi
    • Ruby Scripting in Linux
    • Scripting with PowerShell
    • PERL Scripting in Linux
    • Learn Shell Scripting with BASH
    • Master Editing Text Files Using VIM
  • Linux Technologies
    • Learning PUPPET
    • openLDAP Directories on Linux
    • Monitoring with Nagios Core
    • Linux File-Systems
    • Learning SAMBA
    • Apache HTTPD Server
    • Learning PHP
    • MYSQL
  • OpenStack
    • Pluralsight
    • Udemy
    • Raspberry Pi Tutorials
    • Citrix Videos

© 2019 The Urban Penguin · All Rights Reserved

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok