0x01-shell_permissions
Applied Commands
- What do the commands
chmod
,sudo
,su
,chown
,chgrp
do - Linux file permissions
- How to represent each of the three sets of permissions (owner, group, and other) as a single digit
- How to change permissions, owner and group of a file
- Why can’t a normal user
chown
a file - How to run a command with root privileges
- How to change user ID or become superuser
Other uses
- How to create a user
- How to create a group
- How to print real and effective user and group IDs
- How to print the groups a user is in
- How to print the effective userid
10-mirror_permissions
#!/bin/bash
chmod --reference=olleh hello
11-directories_permissions
#!/bin/bash
chmod a+X *
12–directory_permissions
#!/bin/bash
mkdir -m 751 my_dir
13-change_group
#!/bin/bash
chgrp school hello
Advance
100-change_owner_and_group
#!/bin/bash
chown vincent:staff *
101-symbolic_link_permissions
#!/bin/bash
chown -h vincent:staff _hello
102-if_only
#!/bin/bash
chown --from=guillaume betty hello
103-Star_Wars
#!/bin/bash
telnet towel.blinkenlights.nl
README.md
echo 'repo description here' > README.md
If you have any questions please leave it on the comment box bellow.
See part 1: system_engineering-devops Part 1