Familiarisation of for permission for authentication.pdf
chandhuschandhus5
4 views
16 slides
Sep 06, 2024
Slide 1 of 16
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
About This Presentation
Abc
Size: 431.54 KB
Language: en
Added: Sep 06, 2024
Slides: 16 pages
Slide Content
Aim:To familiarize commands which provide for authentication and
authorization.
FAMILIARISATION OF FOR
PERMISSION FOR AUTHENTICATION
AND AUTHORISATION
Exp no : 3
Date :
Theory
1. list all the users in the system
#cat /etc/passwd
2. list all the groups in the system
#cat /etc/group
3. find details of login users
#who
4. create 5 groups
#sudo groupadd groupname
#sudo useradd username
5. create 6 users
6. change password of all users
#sudo passwd username
#sudo usermod -a -G groupname username
7. assign each users to any two groups
8. change primary group of any 2 users
#sudo usermod -g groupname username
10. create additional 2 groups
#sudo groupadd groupname
#sudo userdel username
11. remove new users
12. remove new groups
#sudo groupdel groupname
#sudo mkdir name
13. create 5 directories in users home directory
14. create 6 files in each directory
# sudo touch
#chmod 777 [filename]
15. grant read/write/execute permssion to 2 users on all
directories and files
16. grant read/write persmision on all files of any two
directory to all users
#chmod 660 [filename]
Result : Commands are executed and output is verified.