Managing Linux Users and Groups



Видео



Read the full blog post and grab your cheat sheet here: Video Transcript: Each account consists of a username and a unique number called the UID which is short for user ID.
Also each account has a default group to which it belongs some comments associated with that account a shell to start when the user logs into the system and a home directory.
All of this information is stored in the etcpasswd file.
Note that etcpasswd is spelled passwd. Historically encrypted password information was also stored in the etcpasswd file.
However the etcpasswd file is actually readable by anyone on the system so storing password information even though its encrypted is actually a security risk.
So now by default the encrypted password information is stored in etcshadow.
That file is only readable by the superuser or the root account on the system. Managing users on a Linux system is fairly straightforward.
If you want to create an account use the useradd command and to delete accounts use the userdel command.
To modify existing accounts just use the usermod command.
These commands listed on your screen are the low-level Linux commands and theyre available on all the Linux distributions.
However some distros provide their own account creation tools that you can use if you so choose. Just like the etcpasswd file contains account information the etcgroup file contains group information.
To create a group use the groupadd command.
The groupdel command will delete a group.
To modify a group use the groupmod command. To see what groups an account is in use the groups command.
If you specify an account after the groups command it will show all the group memberships for that specified account.
If you happen to execute the groups command without any arguments it displays the groups that the current user is in. If you want to switch to another account use the su command which stands for switch user.
To verify what account youre currently using simply run the whoami command and it will return the account name. The sudo command is used to allow one user to run commands as another user.
This is most commonly used to allow a normal user to execute a program as the superuser so you can think of sudo as superuser do.
To start a shell as another user run sudo -s or you can also run sudo su. By the way the file that stores the sudo configuration is etcsudoers.
To modify the sudoers file use the visudo command.
It has syntax checking built in so you dont accidentally break the sudo configuration. If you found this video helpful then I know youre going to learn so much more in my Learn Linux in 5 Days course available at In it youll learn exactly what you need to know about the Linux operating system in order to become a proficient and professional user in a very short period of time. In the course youll start at the very beginning by choosing a Linux distribution and installing it.
From there youll learn the most important Linux concepts and commands plus youll be guided step-by-step through several practical and real-world examples. By the way this course also comes with a 30-day money-back guarantee which means you have everything to gain and absolutely nothing to lose by trying it out. So if you can spare just a few minutes a day and want to learn the ins and outs of the Linux operating system join me and the other students in this course today.
I look forward to seeing you in the course!

Источник: rutube.ru

Видео подборки:

Похожее видео

Комментарии ( 0 )

Сначала новые
Сначала старые
Сначала лучшие

Введите любое имя и нажмите войти
Войти

⇒Расскажите об этом видео Managing Linux Users and Groups, своим друзьям в социальных сетях.


Ссылка на страницу с видео:

HTML-ссылка на страницу с видео:

Код для вставки плеера:


маяк-233сдп2 @ sony zx90 - онлайн

"Продаете, какая цена?"
(Добавлено: 1776503260.1407)

Шугалей 3_ Возвращение _ Трейлер 2021.mp4, - онлайн

"Неожиданный поворот. Думаешь что Максим возвращается к спокойному ритму жизни, а после трейлера понимаешь, что он в пекле событий."
(Добавлено: 1776503260.1407)

По дороге в Екатеринбург - Фото - онлайн

"Бесподобные фотографии. Красивые и в то же время грустные. Мне напоминают о детстве и о Родине. Урал...Я там выросла. И фотографии автора передают мне эту ностальгию. Настолько красивая и родная там природа...и не только природа. И хоть я и никогда не была именно в тех местах, которые запечатлены..."
(Добавлено: 1776503260.1407)

Г. Севастополь, рок-группа Грань - У всех свое место (2021 г.) - он...

"Что можно сказать? В песне присутствует позитив и Советский Рок , рок панк ,новая волна таких групп было около двадцати не больше которые любили фанаты сейчас такое уже не играют ,услышал и вспомнил. этот стиль надо возрождать!"
(Добавлено: 1776503260.1407)

Лыжные гонки. КМ. Мужчины. Марафон. Классика. 50 км - онлайн

"Спасибо за показ лыжных гонок в онлайне."
(Добавлено: 1776503260.1407)