Free Essay

Project 9 Unix Linux Admin1

In:

Submitted By noorisw4
Words 924
Pages 4
Part I

1-What version number of webmin did you install?
Version 1.791-1

2- What do you do to update webmin, and all webmin modules? After we open the webmin go to webmin configuration then click on upgrade webmin Click on upgrade webmin then update modules.

3- Using webmin, create a new user account auser with the real name Anne User. Use defaults for all other values. A. What was the default group used? auser B. What was the default shell used? /bin/sh C. Was the account created enabled or disabled? Enable D. What was the password used? Aaa4321 E. When (if ever) does the password expire? I didn’t put expire password F. When (if ever) does the account expire? There’s no expireation for the account
What files were modified on your system as a result of the user account creation?
Passwd , group, gshadow, shadow

4- A. Set new accounts default shell to /bin/bash. useradd -s /bin/bash auser1 B. Set new accounts to expire on December 15 (of this year). useradd -e 2016-12-15 auser2 C. Set new account passwords to expire after 3 months. useradd –f 45 D. Set new accounts to be disabled one week after the password has expired. (That is, after one week of inactivity after the password has expired.) useradd –e 2016-08-05 –f 45 auser3 What were the options used for each command?

5- create a new user account buser with real name Bob User. Make sure the account is initially disabled (locked). Be sure to set a password

What is actually different in the configuration file(s) for locked/disabled accounted versus unlocked/enabled accounts?

There’s no change in configuration I just put old date at the expire date option so the user will be disable . GUI option
Command option we just need to type this command useradd buser -c "Bob" -p sec111 -L What happens when you try this with a locked account (such as buser)? (Don't try to login as root, it won't work.) I chanced the login shell to /sbin/nologin that’s the different config or usermod -L -e 1980-01-01 buser Unlock/enable the buser account now using any non-GUI method. What two commands on Linux can be used to enable (unlock) an account? Verify you can use both ftp and sftp with the buser account now. From /etc/passwd change the login shell to /bin/bash Or usermod –L –e 2020-01-01 buser Change the login shell of buser to “/sbin/nologin”. Try ftp and sftp for that user again. What happened? The user lock not working As root, try the following commands: “su -c 'id' buser” and “su buser”. Did either command work? Su –c ‘id’ buser Uid=1002(buser) gid=1002(buser) group=1002(buser) context-unconfig…… Change the login shell of buser to “/bin/false”. Try both ftp and sftp for that user again. What happened this time? Can you explain these results? (HINT: Examine /etc/shells for a list of valid shells on your system.) Connection closed The problem with the login shell when we change it to /bin/false the connection doesn’t understand it and who will deal with account so the connection will be close Restore the login shell of buser to “/bin/bash”. As root, try the following commands: “su buser” and “su -c 'id' buser”. Did either command work this time? Yes it’s work . Force user buser to change the password immediately at the next login. (On Linux use the chage command. On Solaris, use the passwd command.) What was the exact command used? passwd –e buser

6- What command will remove a user account? What command will allow you to modify a user account's settings? userdel buser uermod 7- How can you set the system to use text based logins, or if GUI logins are the default how can you use a non-GUI login for some user?

How can you set the system to use text based logins, or if GUI logins are the default how can you use a non-GUI login for some user?

Suppose you remain over your soft limit for more than the grace period (set earlier). What do you think will happen?

What is different between the “after” and the “before” output?

Try to create a small file using vi (staying under the hard limit). Did this work? What happens if you try to create more large files in the user's home directory, that would cause the user to go over the hard limit. Did this work? What happened when you attempted to go over the hard limit?

Now log out and attempt to login again as auser. Was this allowed? If so, was any email sent?

Now attempt to login as auser. Was this allowed? If so, was any email sent? Run the quota command now. What is the “grace” period now?

8- A. Create an alias sales for buser. Alias sales=’buser’ B. Create an alias abuse for buser. Alias abuse=’buser’ C. Create an alias postmaster for buser. Alias postmaster=’buser’ D. Create an alias sysadmins for users buser and root (simple mailing list). Alias sysadmins=’buser’ Alias sysadmins=’root’ E. Have root's email forwarded to your personal account. Yes forwarded F. Save your changes and update the aliases by running the newaliases command.

Using any MUA of your choosing (such as pine) try to send email messages in turn to each of auser, buser, root, and sysadmins. What happened in each case?

Similar Documents