Linux mint установить пароль root

Linux mint установить пароль root

Кстати, народ, тему не нашёл подходящую. Скажите какпоменять утерянный пароль рут. Пробова из Grubа, чёь пишет не могу поменять. Не могу запускать ничего, где рут требуется.

colonel Сообщения: 1851 Зарегистрирован: 18 дек 2016, 12:08 Решено: 21 Откуда: Хартленд, N Благодарил (а): 43 раза Поблагодарили: 498 раз Контактная информация:

Как получить root на папке?

mcaris74 , пароля рута по дефолту в линукс минт нет , он не назначался и вход от рута в графическую сессию запрещён( отключен локальный вход суперпользователя) , настроен судо на право пользователем работать от рута вводом своего пароля ,если этот пользователь имеет права администратора.
как поменять утерянный пароль чуть позже выложу способ через «бин-баш»

«Не ты выбираешь Linux, а Linux выбирает тебя»
(с)Себастьян Перейра, торговец чёрным деревом

mcaris74 Сообщения: 68 Зарегистрирован: 09 дек 2017, 11:29 Откуда: Самара Благодарил (а): 13 раз Контактная информация:

Как получить root на папке?

mcaris74, пароля рута по дефолту в линукс минт нет , он не назначался и вход от рута в графическую сессию запрещён( отключен локальный вход суперпользователя) , настроен судо на право пользователем работать от рута вводом своего пароля ,если этот пользователь имеет права администратора.
как поменять утерянный пароль чуть позже выложу способ через «бин-баш»

Спасиб добрый человек! тогда скажи, что я не так делаю. Я назначил второго пользователя. Он у меня админ. Правильно? То есть я под своей учёткой «совсем никто». Вот. Когда выполняю, например обновление, вылазит Введите пароль для выполнения админ задач. Пароль от админа, который я создал, не подходит. Изначально так не было, был пароль рут, который я забыл. Я вроде как понимаю, что делать, но что тог упускаю, что, не пойму.

rogoznik Сообщения: 9698 Зарегистрирован: 27 июн 2017, 13:36 Решено: 121 Откуда: Нижний Тагил Благодарил (а): 757 раз Поблагодарили: 1860 раз Контактная информация:

Как получить root на папке?

Изображение

mcaris74 Сообщения: 68 Зарегистрирован: 09 дек 2017, 11:29 Откуда: Самара Благодарил (а): 13 раз Контактная информация:

Пароль root

Ну, само собой! Во первых, пока я не полез и не создал второго пользователя, так и было, это Вы верно подметили. Я где то при установке видел, мол пароль от «Вас» это и административный пароль. И включается одноразово, о чём говорит «телефонный аппарат» в трее. Об входе с повышенной привелегией. Вопрос-куда всё пропало и как исправить.

slawdos Сообщения: 122 Зарегистрирован: 26 янв 2017, 17:49 Решено: 1 Благодарил (а): 49 раз Поблагодарили: 65 раз Контактная информация:

Пароль root

colonel Сообщения: 1851 Зарегистрирован: 18 дек 2016, 12:08 Решено: 21 Откуда: Хартленд, N Благодарил (а): 43 раза Поблагодарили: 498 раз Контактная информация:

Пароль root

что я не так делаю. Я назначил второго пользователя. Он у меня админ. Правильно? То есть я под своей учёткой «совсем никто». Вот. Когда выполняю, например обновление, вылазит Введите пароль для выполнения админ задач. Пароль от админа, который

Читайте также:  Как посмотреть жесткие диски линукс

ну откудаж знать-то что вы сделали не так. из того что вы написали мало чего понятного.
>Я назначил второго пользователя. Он у меня админ. Правильно?
если вы при создании второго аккаунта устанавливали тпи учётной записи Администратор , да ещё проверили назначения прав и привелегий в Дополнительных параметрах и проверили настройки групп — то правильно. Если не назначили ему тип учётной записи Администратор — то неправильно.
>То есть я под своей учёткой «совсем никто»
Если после назначения администратором второго пользователя вы сменили тип своей учётной записи на Пользователь (а до этого был Администратор ) , то ДА, «совсем никто»
Если не меняли, то должны были остаться вторым Администратором.
У мну , к примеру , 2 аккаунта и оба администраторы. При запросе рутовых прав по судл могу выбирать от какого аккаунта и с его паролем выполнить команду по судо . Есть ещё варианты ,но . в общем пропустим их

Если правильно понял , то у вас команды и программы с рутовыми правами по судо не выполняются от вашей учётки с её паролем, пароль для созданной второй учётки которую назначили админом вы забыли и есть необходимость переназначить пароль для админской учётки
В принципе это не так и сложно при физическом доступе к ПК
1-й вариант
Загрузитесь в систему в консольном режиме с опцией rw init=/bin/bash
далее с помощью команды # passwd (ник вашей админской второй учётки) назначайте ей пароль
.
далее reboot и пробуйте что получилось

если не сработает такое назначение , например, ввиду того что второй ваш пользователь не был назначен админом, то повторите вход в систему в консольном режиме с опцией rw init=/bin/bash и с помощью команды # passwd root назначте пароль суперпользователю , перегрузитесь в обычном режиме и пробуйте настроить свои аккауты пользователей
после настройки нормального админа из пользовательских аккаунтов рекомендую отключить пароль root
команда для этого # passwd root -l

Источник

How to Change a Password in Linux Mint 21

Password is the authentication of any device; it could be a mobile or desktop system. While working with the system, it is compulsory to set a secure password that is hard to crack. Changing your password after some time helps you to avoid system attacks. It happens when you’re at the workplace and work as a team member. In that scenario, your password might be known by some of your team members. This would create problems as data can be hacked or attacked by people.

Resetting passwords from time to time helps you to get rid of these difficulties. Even if someone finds your previous credential (password), they wouldn’t be able to get the system.

How to Change a Password in Linux Mint 21

In the Linux Mint 21 system, resetting passwords is not difficult and can be done in multiple ways:

Let’s start to reset passwords in the Linux Mint system by using these two different approaches.

1: Change Linux Mint Password Using Terminal

In the terminal approach we have two categories i-e, either to change the password with root permission or with sudo permission.

Before getting started, you should know about the difference between sudo and root user. Don’t mix these two separate administrators.

The root user is the one who holds the current administrator account or the owner of the account that created it. Whereas sudo is an ordinary user who can run administrative tasks. This allows the user to perform tasks as a root user holding sudo privileges (account credentials) that other regular users cannot perform.

Читайте также:  Перезапуск сетевых служб linux centos

Let’s check how we change passwords with sudo and root permission:

i: Changing Password with Root Permission

This method works if you have changed your password earlier at least one time.

Run the command mentioned below and enter the current password:

Once you entered, you will get the root access, type passwd in the terminal and hit enter:

Enter the new password you want to keep:

Re-enter the correct password you have changed in New Password location and hit enter:

So, the password has been updated successfully on Linux Mint 21 system:

ii: Changing Password with sudo Permission

Execute the mentioned command and it will ask you to type the current password of your system; type it correctly and hit enter:

You would be asked to type the new password you want to change, type the new password, and hit enter:

In the next entry, re-enter the new password without any mistake to confirm it and hit the enter button. If your new password matches with the retype new password, you will receive a successfully updated message on screen:

2: Change Linux Mint Password Using GUI

It is quite a handy process to change a password through the system user interface. What you need to do is, open the Account Details from the application manager. You will get it by navigating the cursor towards All Applications icon:

You will see an Account Details screen that holds the account holder’s image, name, and password. In the Password line, click on the dotted hidden password to reset it:

Once you clicked, a dialogue box of Change Password will appear on the screen:

Type the current password of your Linux Mint 21 system in the Current password typing box. Then enter the new password you want to set in the next entry and in the Confirm password tab, rewrite the new password, and hit to Change Button:

The password of the Linux Mint 21 system has been changed successfully.

Conclusion

Changing a password regularly is compulsory to avoid security troubles as our system can contain sensitive and confidential data. Another case would occur when you worked with the team and no longer be a part of it. It is good to reset the password as it can be accessed by any other team member.

Through this article, we have learned the process of how to change/reset passwords on the Linux Mint 21 system. There we have multiple ways to do it; through terminal and GUI. In the terminal, you can set passwords with sudo and root permissions. With the root permission, it is compulsory that you have changed your password earlier at least one time.

About the author

Syeda Wardah Batool

I am a Software Engineer Graduate and Self Motivated Linux writer. I also love to read latest Linux books. Moreover, in my free time, i love to read books on Personal development.

Источник

How to Change Root Password in Linux Mint 21

In a Linux system, a person with root privileges would be able to work as an administrator. Most of the Linux tasks required root-level permission to further proceed. It is quite possible that most of the users working on the same system have root privileges which sometimes create security problems.

Читайте также:  What is sid in linux

However, to avoid security attacks, it is necessary to change the root password regularly. Because resetting the password time to time helps you to get rid of these issues, even if your ex-team member finds your old password, they wouldn’t be able to access the system.

How to Change Root Password in Linux Mint 21

We have two most common ways to change root password on Linux Mint 21 system:

1: Change root Password with sudo Permission

With sudo privileges, a user can easily modify the root password if forgotten or even set it for the first time. But keep in mind, you should know about the older password. Whenever you run the mentioned command, the system will ask you to type the sudo password; type it and hit enter:

In the next move, you will be asked to type the new root password for the Linux mint system:

Re-enter the new root password you have set above for confirmation:

Once both passwords match, you will get a message on terminal that you have successfully updated Linux Mint root password.

2: Change root Password with root Permission

For this method, you should have changed the root password of the Linux Mint system at least one time before. And, you must know the current sudo password to gain root privileges. So, execute the mentioned command and type the current root password of your Linux system:

In the next command, execute the ‘passwd’ command to the terminal for further process. This will allow you to modify the root password:

Type the new password you want to set, and hit Enter:

Re-enter the password you have set above. You will receive a successfully updated message if the password is entered correctly:

3: Change root Password Using GUI

You can also change the root password through a graphical user interface if you don’t prefer the terminal.

What you need to do is, open the applications menu, move to the Administration icon and their select Users and Groups option:

Type the current root password and click to Authenticate button:

After authentication, you will see a user with their respective details like name and password. In the password category, click on the dotted hidden password to reset it:

Once you clicked, a dialogue box of Change Password will be appeared on the screen:

Type the new password of your choice in the New Password entry and re-write it on the Confirm Password tab. If your passwords match, then hit to Change button:

The root password of the Linux Mint 21 system has changed successfully.

Conclusion

Root password is the key to managing your whole Linux system as all administration tasks and queries are handled with root permission. Sometimes, it is necessary to change the root password after some time to avoid unnecessary usage and attacks.

Through this guide, we have learned how to change the root password on Linux Mint 21 system. We have done it using two different approaches, one approach leads to CLI which includes sudo and root permissions. And in the second approach, we used the GUI method.

About the author

Syeda Wardah Batool

I am a Software Engineer Graduate and Self Motivated Linux writer. I also love to read latest Linux books. Moreover, in my free time, i love to read books on Personal development.

Источник

Оцените статью
Adblock
detector