- How to create a new normal user with sudo permission in Kali Linux
- Here’s how you will create a normal user
- Adding a New Non-Root User in Kali Linux
- Adding a New Non-Root User in Kali Linux
- Статья Как добавить или удалить обычного (не root) пользователя в Kali Linux
- Как создать не root пользователя в Kali Linux
- Преимущества стандартного пользователя в Kali Linux
- Добавление пользователя в Kali Linux
- Learning #Part 1 : How To Add a New User In Kali Linux
How to create a new normal user with sudo permission in Kali Linux
Posted October 11, 2014 by ‐ 2 min read
Kali Linux, the pentester’s Linux does not need an introduction. Today, I’ll show you how to create a normal user under Kali Linux. You might ask, Why would someone want to create a normal/standard user in Kali? What’s wrong with root only? Well, simply saying, being root all the time is not so good. Some applications won’t work in root. (Google chrome won’t work in root by default). If you want to use Kali as a day to day operating system, I’d suggest you to create a standard user and use it. If you want to do pentesting and stuff, you could ‘sudo’ or just log in as root.
Note: This procedure can be used in any Linux distro to add a normal user. That includes ubuntu, Linux mint, or even Centos
Here’s how you will create a normal user
Open a terminal and issue the following command.
Now we have to set a password for the user.
It will ask you to create a new password.
At this point, we have a new user account. But we might want to add our new user to the “sudoers” group, so that we can use “sudo” to do administrative actions.
The option -a means to add and ‘-G sudo’ means to add the user to the sudo group. If you want to know more about the usermod command, issue man usermod command to know more about usermod
Now we have to specify the shell for our new user.
chsh command is used to change the login shell for a user.
All done.! you are all set. You could logout and login to your new account.
Источник
Adding a New Non-Root User in Kali Linux
Adding a New Non-Root User in Kali Linux
Kali Linux is a fantastic operating system for penetration testing and security evaluation. It comes with virtually all security tools built in, it’s lightweight by default, and it has a huge ecosystem that is constantly helping with the project.
For instructor-led Security training see our course schedule.
I created a new installation of Kali Linux recently. One of the first post-installation tasks I did was to create a new user for daily use. Sadly, Kali only creates a default root user during setup. Running as root all the time is a horrible security practice, so I recommend that you create a new user as soon as possible after installation.
To create a new user in Kali Linux, first pop open a Terminal window.
Then use the adduser command. In this example I’m creating a user named mikedan with a home directory of /mikedan so the command is adduser –home /mikedan mikedan.
Adduser prompts for the rest of the information, which is optional.
The user account is created. Now I test it by logging out from root and logging in as mikedan. To be sure I open a new Terminal window and type whoami.
Finished! The user account took only a few seconds to create and works as expected.
Mike Danseglio teaches IT Security Training, Windows, System Center and Windows Server 2012 classes at Interface Technical Training. His classes are available in Phoenix, AZ and online with RemoteLive™.
Источник
Статья Как добавить или удалить обычного (не root) пользователя в Kali Linux
Стандартные пользователи и суперпользователи в Linux
Обычной практикой в большинстве дистрибутивах Linux является работа из-под обычного пользователя, который не имеет привилегий суперпользователя. Когда в этих привилегиях возникает необходимость, то, в зависимости от дистрибутива, используется команда sudoили вход под суперпользователем su –. В Kali Linux эта традиция нарушается, по умолчанию вся работа происходит под рутом. Этому есть объяснение — многие инструменты в дистрибутиве требуют прав рута, да и пользователями Kali Linux обычно являются не новички, и они понимают как безопасно работать и не разрушить систему.
Тем не менее, достаточно многих людей раздражает постоянная работа под суперпользователем. Эта инструкция расскажет, как добавить и как удалять пользователей (стандартных, которые не являются рутом) в Kali Linux. Кроме Kali Linux эта инструкция в полной мере применима к Debian и производным от Debian (Ubuntu, Linux Mint).
В первую очередь, это руководство покажет как:
- Добавить пользователя и все необходимые пользовательские директории (т. е. как избежать ошибки “Could not update .ICEauthority var/lib/gdm3/.ICEauthority” и вообще всех ошибок содержащих ICEauthority или проблемы с разрешениями).
- Добавить пользователя в группу sudo, чтобы позволять ему использовать команды рута. Вы также можете добавить пользователя в группу ‘lpadmin’, что позволит ему использовать принтеры Canon, HP и другие.
- Изменить шелл по умолчанию с chsh на bash. Или на любой шелл, например, Bourne Shell (sh), Bourne-Again Shell (bash), C Shell (csh) или Korn shell (ksh) и т.д..
- Войти под пользователем и показать, что не возникает никаких ошибок.
- Научиться использовать sudo, понимать группы и использовать их преимущества.
- Безопасно удалить пользователя.
Преимущества стандартного пользователя в Kali:
Войдя под обычным пользователем вы получаете несколько преимуществ в Kali
- Установка и запуск Google Chrome
- Установка и запуск менеджера пользователей и групп Gnome (установить gnome-system-tools)
- Использовать Kali в качестве главной операционной системы без постоянного беспокойства сломать её.
Ну а теперь давайте перейдём к самой инструкции.
Добавление пользователя Kali Linux:
- Откройте терминал и напечатайте туда следующее для создания нового пользователя (замените mial на желаемое имя пользователя):
Источник
Как создать не root пользователя в Kali Linux
Недавно я cделал новую установку Kali Linux.
Одна из первых задач после установки, которую я делал, – создать нового пользователя для ежедневного использования.
К сожалению, Kali создает во время установки пользователя root по умолчанию.
Запуск от имени root всегда является ужасной практикой безопасности, поэтому я рекомендую вам создать нового пользователя как можно скорее после установки.
Преимущества стандартного пользователя в Kali Linux
Немного преимуществ, которые у вас есть в качестве пользователя без полномочий root или стандартного пользователя в Kali Linux
Установка и запуск Google Chrome
Установка и запуск менеджера пользователей и групп Gnome (установка gnome-системных инструментов)
Используйте Kali в качестве первичной операционной системы, не беспокоясь о ее разрыве.
Добавление пользователя в Kali Linux
Прежде всего, давайте подтвердим, какая версия Linux и ядра используется.
В командной строке введите:
Теперь давайте добавим пользователя.
Откройте терминал и введите следуюее для создания нового пользователя (замените fsociety на нужное имя пользователя)
Добавить пользователя в группу sudo (чтобы пользователь мог установить программное обеспечение, разрешить печать, использовать привилегированный режим и т. д.)
(Примечание: -a означает добавление или добавление и -G для указанной группы / групп)
Измените оболочку по умолчанию ранее созданного пользователя на bash
(Примечание: chsh означает команду для изменения имени, -s – это имя указанной оболочки, которую вы хотите для пользователя, в этом случае / bin / bash)
Ну все, все получилось так, как ожидалось.
Теперь давайте выходим из системы и заходим в систему как наш новый стандартный пользователь без права root (fsociety)
Источник
Learning #Part 1 : How To Add a New User In Kali Linux
Kali Linux operating system differs from other Linux distributions, because Kali Linux has a default user / superuser (root) and can be interpreted as an administrator who has full access to all of the operating system to execute any existing application. However there is a risk when using user / superuser.
There are two things the risks of using user / superuser :
- Can cause damage to the system if the wrong to type command and install the program
- If the root user on the system is infected by malware it will be very dangerous because malware that attacks users can access the full system on the operating system. the user will be more dangerous because of Kali Linux has the tools that are dangerous.
There is also the advantage of using user / superuser :
- Have full access rights to the system
- No need to type «sudo» and password when installing a program on Kali Linux
I prefer to use additional user because it will be safer to use Kali Linux as a beginner like me. Using user / superuser (root) is the biggest challenge for a user Kali Linux. Kali Linux is famous for penetration tools are very complete and dangerous appeal to people who want to learn to be a hacker.
Now I will try to discuss how to add a new user to Kali Linux. It is intended that the basic Kali Linux users can learn well without problem when an error occurs when typing commands or exposed to malware attacks.
How to add a new user to the Kali Linux :
Steps :
- Log in as root and open a terminal and create a new user by typing this command
After the command first one is finished, create a password for the new user by typing this command
Add new users to the group sudo user in order to execute an application that requires root privileges by typing this command
To add users to the default shell typing this command
After all typed commands, the user can only be used after we log out the root user and then log back in with your username and new password.
Good luck, and hopefully this article useful.
Источник