Page 210 - DCAP602_NETWORK_OPERATING_SYSTEMS_I
P. 210

Network Operating Systems-I




                    notes          4.   Each user’s personal directory is placed in the /home directory. The directory name will be
                                       the same as their user name.
                                       [root@bigboy tmp]# ll /home
                                       drwxr-xr-x    2 root     root        12288 Jul 24 20:04 lost+found

                                       drwx------    2 accounts soho         1024 Jul 24 20:33 accounts
                                       drwx------    2 alice    children     1024 Jul 24 20:33 alice
                                       drwx------    2 derek    children     1024 Jul 24 20:33 derek
                                       drwx------    2 jane     parents      1024 Jul 24 20:33 jane
                                       drwx------    2 paul     parents      1024 Jul 24 20:33 paul
                                       drwx------    2 sales    soho         1024 Jul 24 20:33 sales
                                       [root@bigboy tmp]#




                                      Task     Explain the procedure of adding the Linux users and assigning them to their
                                     respective groups.


                                   11.1.3 How to change passwords?

                                   You need to create passwords for each account. This is done with the passwd command. You are
                                   prompted once for your old password and twice for the new one.
                                   1.   User root changing the password for user paul.
                                       [root@bigboy root]# passwd paul
                                       Changing password for user paul.
                                       New password:
                                       Retype new password:

                                       passwd: all authentication tokens updated successfully.
                                       [root@bigboy root]#
                                   2.   Users might wish to change their passwords at a future date. Here is how unprivileged
                                       user paul would change his own password.
                                       [paul@bigboy paul]$ passwd
                                       Changing password for paul
                                       Old password: your current password
                                       Enter the new password (minimum of 5, maximum of 8 characters)

                                       Please use a combination of upper and lower case letters and numbers.
                                       New password: your new password
                                       Re-enter new password: your new password
                                       Password changed.
                                       [paul@bigboy paul]$







          204                              LoveLy professionaL university
   205   206   207   208   209   210   211   212   213   214   215