Managing Users & Groups, File Permissions & Attributes and Enabling sudo Access on Accounts – Part 8

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Gabriel Cánepa

Gabriel Cánepa is a GNU/Linux sysadmin and web developer from Villa Mercedes, San Luis, Argentina. He works for a worldwide leading consumer product company and takes great pleasure in using FOSS tools to increase productivity in all areas of his daily work.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

30 Responses

  1. Amit Kumar Rai says:

    Nice article appreciate your work. But make one correction here for unlocking a user you have to use “usermod -U username” instead of using small “u“, use capital U. Because with small u we can assign new UID for the user. its not for Unlocking a user.

  2. Akash says:

    Create a bash script to perform user management tasks like creating a new group. The script must check to ensure that no duplicate group names exist on the system. If a duplicate is found, an error needs to be reported, and the administrator must try another group name.

  3. sreeraj says:

    I Have a Samba Shared Folder and 2 or 3 folders inside that, how can I prevent copying file attributes (Like created /modified time stamps) when I copy for move files between these folders.

    • Gabriel A. Cánepa says:

      For the example you’ve just mentioned, what is the desired modification time stamp (or other file attributes) after you’ve copied the file(s)?

  4. say says:

    great tutorial

    • Gabriel A. Cánepa says:

      Thanks! Please help us spread the word by sharing this and our other posts through your social network profiles!

      • Mahi says:

        hi my name is mahi and i am from India learning red-hat 7 course but looking for red-hat book for more practices but in sequence or chapter-wise so i can learn Linux commands and concept in brief and deeply i often follow your site to learn Linux

        i saw your red-hat certification study guide which is in red color and price of 34$ but bit surprise after saw the pages just 164, how you will cover all the topics in 164 pages may be i can be wrong but please suggest me one best book to learn red-hat Linux 7 , i want a book like the same way you write on your website

  5. BENALIF says:

    Great tutorial !! thank you

    • Gabriel A. Cánepa says:

      Thank you for taking the time to comment on this post. Please help us spread the word by sharing it through your social networks!

  6. David says:

    Wow this is such a comprehensive tutorial. Thanks for the good work.

  7. Nuno says:

    Hi Gabriel,

    For the past few days, I’ve been reading this tutorial series and making the exercises as a complement to do the LFCS exam. Until now (from part1 to 8) I’ve only had detected minor errors/typos but in this section you have some content from user and group management inside file permissions section :)

    Since this exchange can lead to some confusion while reading, I’m here just to make you aware of this so you can correct.

    Thank you for all the great info that you posted in these articles.


    • @Nuno,
      Thank you for pointing this out. You’re right, there are a couple of paragraphs in the File permissions section that should be moved to User management.
      On a side note, would you be as kind as to let us know what are the errors / typos you’ve found in the previous guides?

      • Nuno says:

        Hi Gabriel,

        No problem :)

        Regarding the other errors/typos I’ve pointed out, as I said, they’re just minor things that I’ve noticed while reading and following your tutorials. As an example, the only one I can remember right now is on part 6 (RAID), in the section “Check the array creation status” where you show the status of a RAID5 after create a RAID0 but as I said, not a big deal :)

        Again, big thanks for this tutorial series.

        Best regards,

  8. Paul says:

    In “Overview of Domains and Competencies” block on a page with LFCS info ( we have two interesting competencies:
    “Managing local users accounts”
    “Managing user accounts”

    Can you describe the difference? As I have found in the web, “Managing user accounts” means something related to network accounts (e.g. LDAP) and I don’t see anything related to it in this article.

    • @Paul,
      The way I see it, that is a repeated topic. In the context of the LFCS exam, they mean the same. You will only be asked to perform local user management as described in this article.

  9. Tanveer says:

    ifconfig … output is
    eth0 error fetching interface information device not found
    lspci output
    05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 05)
    please guide me about this issue…

    • @Tanveer,
      Based on the error message, and without knowing what your distribution and environment is, I am assuming you are getting this error in a virtual machine. You have configured a NIC (network interface card) but have not added the virtual resource to the virtual machine. If my assumption is correct, my best guess is that you’re using VMWare. If so, please confirm and we’ll guide you through the steps to solve this issue. Without further information I am afraid we can’t do much.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.