DevOps/CommandLine
-
User ManagementDevOps/CommandLine 2020. 1. 13. 12:54
1. Overview User management includes everything from creating a user to deleting a user on your system. User management can be done in three ways on a Linux system. 2. Description 2.1 Local user database /etc/passwd It has seven columns separated by a colon demyank:x:1000:1000:demyank:/home/demyank:/bin/bash username, an x, user id, primary group id, a description, name of home directory and a l..
-
PermissionsDevOps/CommandLine 2020. 1. 13. 10:28
1. Overview chmod - modify file access rights su - temporarily become the superuser sudo - temporarily become the superuser chown - change file ownership chgrp - change a file's group ownership 2. Description 2.1 View permissions on a file [me@linuxbox me]$ ls -l /bin/bash -rwxr-xr-x 1 root root 316848 Feb 27 2000 /bin/bash The file "/bin/bash" is owned by user "root" The superuser has the right..