From the course: Complete Guide to Linux Security: Protecting Your Linux Server Environment

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Password settings

Password settings

- Let's work with password settings in Linux. And we're going to be working in lab four for this particular sublesson. We'll change over to our Debian client once again. And what we're going to do is we're going to build a new user with the add user command, and we're going to modify settings for the password within the chage command. But to do this, I want to work as roots, just to make things easier. Root has full power. So for now, we'll work as roots, and I'm going to do that by typing su -, that's substitute user or switch user. And we'll show more about this command later in the course. But for now, to connect as root, you can do an su -. We'll press Enter. We have to know the password of the root's accounts. So I'll type that now, and I'm in as root. So now I can do anything I want on this system. Got to be careful. So let's do it. Let's create a new user. I'm going to do an adduser sysadmin. Now we're working in a Debian system. In the Debian Ubuntu environments, we use the…

Contents