From the course: Practical Linux for Network Engineers: Part 1

Unlock this course with a free trial

Join today to access over 22,500 courses taught by industry experts.

Modify users

Modify users

- [Instructor] Now, this user, James, doesn't have a shell environment. Notice when David logs in, bash will be started. So again, user, tab, tab, add help. We have the option to specify the login shell for the new user. So we could modify James and add bin as a shell. So now cat etc passwd. Notice James will use the bash shell when James logs in to the server. So there was an example of how to add a user and how to modify a user. This, again, is a username. This is the password of the user, not displayed here. But as an example, we could say sudo passwd James. And we could specify a password for the user James. And if I cat that out, notice we stall CNX for the user password. But on Ubuntu 2, we should be able to SSH as James to the Ubuntu server and log in. And notice we logged in. PWD shows us where we are. Notice there's a problem. James is directly in root here because there was a problem with the home directory of James. So if I go back a directory, notice there's no home…

Contents