1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Random Linux+ Question #59

Discussion in 'Linux+' started by tripwire45, Aug 10, 2005.

  1. tripwire45
    Honorary Member

    tripwire45 Zettabyte Poster

    13,493
    179
    287
    You want to create a new user named "mjohnson" on a Debian machine at the command line. You want to make sure that this user has a home directory and create a password for the user. Of the following options, which one will give you the desired result? Select only one answer.

    NOTE: I use the word "password" for the user's password for the sake of the exercise. In real life, it would not be accepted because it is insufficiently complex.

    1.
    Code:
    adduser -l mjohnson -c "Mark Johnson" -p password -d /home/mjohnson
    2.
    Code:
    adduser -d /home/mjohnson -c "Mark Johnson" mjohnson
    3.
    Code:
    adduser -h /home/mjohnson -c "Mark Johnson" -p password
    4.
    Code:
    useradd -l mjohnson -c "Mark Johnson" -p password -h /home/mjohnson
    5.
    Code:
    useradd -n mjohnson -c "Mark Johnson" -h /home/mjohnson
    passwd password
    6. None of the above options will work.

    Answer later.
     
    Certifications: A+ and Network+
  2. ffreeloader

    ffreeloader Terabyte Poster

    3,661
    106
    167
    None of the above.
     
    Certifications: MCSE, MCDBA, CCNA, A+
    WIP: LPIC 1
  3. tripwire45
    Honorary Member

    tripwire45 Zettabyte Poster

    13,493
    179
    287
    Correct answer is #6. If you were to use the command "adduser" with no switches, you would be guided through an interactive process of creating a user on the command line.
     
    Certifications: A+ and Network+

Share This Page

Loading...