Note: We Demonstrate Linux using Ubuntu Server 10.04

Info

Level: Intermediate
Presenter: Eli the Computer Guy
Date Created: September, 16 2010
Length of Class: 37 Minutes
Tracks

Linux
Prerequisites

Introduction to Linux
Installing Linux
Basic Linux Tasks
VIM for File Editing
Navigation in Linux
Purpose of Class

This class teaches students how to manage users, groups and permissions in a Linux enviornment.
Topics Covered

Adding and Deleting Users
Editing the passwd File Which Contains User Configurations
Changing User Passwords
Adding and Deleting Groups
Adding and Deleting Users from Groups
Editing the group Configuration File
Understanding Permission Numbering System
Changing User and Group Ownership for Files and Folders
Class Notes

Users
Add User = sudo adduser username
Change User password = sudo passwd username
Delete User = sudo userdel username
Edit Users Configuration File = sudo vim /etc/passwd (shows usernames, names of users, home directories)
Groups
Sudo groupadd groupname
Sudo groupdel groupname
Sudo vim /etc/group (shows groups and users)
Permissions
Numbers = owner/group/everyone else
4 = read, 2 = write, 1 = execute
To Chanege Permissions of a File or Folder = sudo chmod 777 file/folder (-R for recursive)
Changing Ownership
To Change User Ownership = sudo chown -R username file/folder
To Change Group Ownership =sudo chgrp –R groupname file/folder
-R for Recursive for Folders

Nguồn: https://codeigniterbrasil.com

Xem thêm bài viết khác: https://codeigniterbrasil.com/lap-trinh-linux/

26 Comments

Technomaniac Dude

April 19, 2020

if i change permission for var/www/html/ to 775 i cant delete files using sftp..

Reply

Du Nguyen

April 19, 2020

You're totally an awesome teacher. I've learned a lot from you

Reply

šäkthï priya

April 19, 2020

Example similar to login in SSMS. We can restrict query permission for user in SSMS. In the same way, is this possible for My SQL in Linux machine?

Reply

CRashDunp Tech Tips

April 19, 2020

thanks for your i have learned lot of things from like active directory RDP SERVER

Reply

Mārcis Lagzdiņš

April 19, 2020

I know it's 9 years after posting of this video, but next time please bring a fresh marker 😀

Also, thanks for making this vid 🙂

Reply

Michael Angelozzi

April 19, 2020

Can't find any backup for your userdel vs deluser emphasis. Research shows they can both be used: https://askubuntu.com/questions/345974/what-is-the-difference-between-adduser-and-useradd https://www.linuxquestions.org/questions/linux-newbie-8/what%27s-the-real-difference-between-userdel-and-deluser-824797/

Reply

Amit Kumar

April 19, 2020

Really nice and informative video. question is can you shift a single user from one group to other group

Reply

Amit Kumar

April 19, 2020

At 34:26, you mean to say that even root will have no access to that folder, only eli will have access ?

Reply

In Any Tongue

April 19, 2020

Thanks a lot Eli

Reply

swaad taib

April 19, 2020

Thanks a lot Eli

Reply

ROMUAL TIKENG

April 19, 2020

Hi Eli
How to contact you?

Reply

Siva nandini. ganji

April 19, 2020

Hi actually i hve one doubt fr eg if i hve 10 user then i need to give permissions like
5 users -rw
3 users -r
2 users -rwx how can i give reply me plz….

Reply

Sriparno Baksi

April 19, 2020

Linux Job Interview….

Reply

Karthik Naresh

April 19, 2020

tqq awesome….tq vvery much

Reply

Sajjad Khan

April 19, 2020

Most best best, amazing tutorial about linux permissions ever exist, Thank you alot!

Reply

Vaggelis Martinis

April 19, 2020

you are the best man this video is useful

Reply

Omar Ali Yusuf

April 19, 2020

thansk teacher long life

Reply

Karthik N

April 19, 2020

nice explanation

Reply

Gerardo Garcia

April 19, 2020

Monica Geller's permissions: four seven, five seven, seven, seven seven seven !

Reply

Computing HUB

April 19, 2020

Very nicely explained! thanks

Reply

Poker Face

April 19, 2020

Eli is THE Computer Guy!

Reply

crystal sluka

April 19, 2020

linux can be if you teach us:) I bought a lot of courses but came to you and understand grrrr udemy lol

Reply

Sunil Kumar

April 19, 2020

Hi,

What is 770 means ??

Reply

Badro B

April 19, 2020

Thank you for this great tutorial!

Reply

star suman

April 19, 2020

I have trouble for permission. Owner is root(root). Access: read-only. I want to write data on the this. But I can't help me please

Reply

xXxTyganxXx

April 19, 2020

Clear and basic explanation, thank you very much for the video 🙂

Reply

Leave a Reply