There are other properties you can assign a user, but these are the basic ones that you should use. By assigning the /dev/null shell, we are preventing the user from logging in via SSH. The home directory can really be anywhere, but we are using the standard location in this example. Remember you can't reuse a shortname, so if there is already a user called "ftpuser", you need to pick something else. Feel free to substitute the shortname of your choice. The user I am creating here has a shortname of "ftpuser". The first line here will create the user, but then you need to assign it some properties. You will use it in place of the uid 555 below. User accounts generally start at 501, and work up, so look at the list returned, and pick the next available number to assign to the new user you are creating. Open the terminal and type: nireport / /users name uid | grep "5"This should report all users that are in the 500+ range for the user ID. First you need to know the current users, and their user IDs. Here are the steps required to create a user in the terminal on a Mac OS X machine.
0 Comments
Leave a Reply. |