Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

system_engineering-devops

system_engineering-devops part 2

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

0x01-shell_permissions

Applied Commands

  • What do the commands chmodsudosuchownchgrp 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 *
#!/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

Total
0
Shares
Leave a Reply

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

Previous Post
Low_level_programming

Low_level_programming/000-hello_world Part 1

Next Post
North Korean leader Kim Jong-un

North Korea is now declared a nuclear weapons state

Please Leave a comment on comment section, let me know what you think about this article.

Related Posts
Hey, if you have any questions and want to talk to one of our specialists chat up here:
Chat me up