From the course: Complete Guide to Navigating Linux: Working with Users, Files, and Networks

Unlock this course with a free trial

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

Lesson 2 lab solution: Managing users and processes

Lesson 2 lab solution: Managing users and processes

- [Instructor] Alright, so first, sudo useradd -m linda. That's how you create user with the name Linda. I think the user already exist and as you can see we get the message about it and that's okay. Now I need to open a shell as user Linda. Oh yeah, I needed to set the password, the shell. So sudo passwd Linda, prompts for the password once. Ignore the warning about failed dictionary check because it's just what it is, only a warning. Now I have my user and I can open a shell as user Linda. Su -linda will prompt me for the password of user Linda. And then I can create a simple textile with the contents echo hello world. Echo echo hello world will do that. And I need to create a simple textile. We didn't have a clue about the name so I'm calling it simple. Then I need to run this fail as a program fail. Now what is the essence about it? The essence is if you want to run it as a program fell, you need the execute permission. So ch *X on simple, that'll make it executable. And then what…

Contents