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://ftlinuxcourse.com
Xem thêm bài viết khác: https://ftlinuxcourse.com/lap-trinh-linux
Xem thêm Bài Viết:
- Trải nghiệm mới hay ho với hướng dẫn cài Mac Os trên vmware
- Bật mí cách cài đặt ssl miễn phí lên Let’s Encrypt
- Tuyệt chiêu tạo usb boot kali linux đơn giản dành cho bạn
- Hướng dẫn chi tiết từ A – Z các bước cài đặt Python trên Windows 10
- Bật mí quy trình cài đặt Kali Linux trên Vmware đúng chuẩn và chi tiết
if i change permission for var/www/html/ to 775 i cant delete files using sftp..
You're totally an awesome teacher. I've learned a lot from you
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?
thanks for your i have learned lot of things from like active directory RDP SERVER
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 🙂
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/
Really nice and informative video. question is can you shift a single user from one group to other group
At 34:26, you mean to say that even root will have no access to that folder, only eli will have access ?
Thanks a lot Eli
Thanks a lot Eli
Hi Eli
How to contact you?
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….
Linux Job Interview….
tqq awesome….tq vvery much
Most best best, amazing tutorial about linux permissions ever exist, Thank you alot!
you are the best man this video is useful
thansk teacher long life
nice explanation
Monica Geller's permissions: four seven, five seven, seven, seven seven seven !
Very nicely explained! thanks
Eli is THE Computer Guy!
linux can be if you teach us:) I bought a lot of courses but came to you and understand grrrr udemy lol
Hi,
What is 770 means ??
Thank you for this great tutorial!
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
Clear and basic explanation, thank you very much for the video 🙂
Can a folder be owned by multiple groups?
Thanks for all the information, you make this very easy to understand.
Awesome lesson!
Thank you Eli. I'm also based in Maryland, and currently taking a Linux System Engineering class and this video really helped me understand user and group management and user/group permissions. Thank you.
Many thanks Eli!!!!
Thank you for creating this great piece of tutorial content.
This was very useful, thank you.
This video is vry helpful thx a lots sir respect from india