{"id":132,"date":"2020-04-04T20:28:30","date_gmt":"2020-04-04T18:28:30","guid":{"rendered":"http:\/\/tietokanta.dy.fi\/linux\/?p=132"},"modified":"2020-04-04T20:28:30","modified_gmt":"2020-04-04T18:28:30","slug":"usermod","status":"publish","type":"post","link":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/2020\/04\/04\/usermod\/","title":{"rendered":"USERMOD"},"content":{"rendered":"\n<p>Options:<br>-c, &#8211;comment COMMENT new value of the GECOS field<br>-d, &#8211;home HOME_DIR new home directory for the user account<br>-e, &#8211;expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE<br>-f, &#8211;inactive INACTIVE set password inactive after expiration<br>to INACTIVE<br>-g, &#8211;gid GROUP force use GROUP as new primary group<br>-G, &#8211;groups GROUPS new list of supplementary GROUPS<br>-a, &#8211;append append the user to the supplemental GROUPS<br>mentioned by the -G option without removing<br>him\/her from other groups<br>-h, &#8211;help display this help message and exit<br>-l, &#8211;login NEW_LOGIN new value of the login name<br>-L, &#8211;lock lock the user account<br>-m, &#8211;move-home move contents of the home directory to the<br>new location (use only with -d)<br>-o, &#8211;non-unique allow using duplicate (non-unique) UID<br>-p, &#8211;password PASSWORD use encrypted password for the new password<br>-R, &#8211;root CHROOT_DIR directory to chroot into<br>-s, &#8211;shell SHELL new login shell for the user account<br>-u, &#8211;uid UID new UID for the user account<br>-U, &#8211;unlock unlock the user account<br>-v, &#8211;add-subuids FIRST-LAST add range of subordinate uids<br>-V, &#8211;del-subuids FIRST-LAST remove range of subordinate uids<br>-w, &#8211;add-subgids FIRST-LAST add range of subordinate gids<br>-W, &#8211;del-subgids FIRST-LAST remove range of subordinate gids<br>-Z, &#8211;selinux-user SEUSER new SELinux user mapping for the user account<\/p>\n\n\n\n<p><em>usermod -l newname <\/em>oldname<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Options:-c, &#8211;comment COMMENT new value of the GECOS field-d, &#8211;home HOME_DIR new home directory for the user account-e, &#8211;expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE-f, &#8211;inactive INACTIVE set password inactive after expirationto INACTIVE-g, &#8211;gid GROUP force use GROUP as new primary group-G, &#8211;groups GROUPS new list of supplementary GROUPS-a, &#8211;append append the user to &hellip; <a href=\"http:\/\/tietokanta.dy.fi\/linux\/index.php\/2020\/04\/04\/usermod\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">USERMOD<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/posts\/132"}],"collection":[{"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/comments?post=132"}],"version-history":[{"count":1,"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/posts\/132\/revisions"}],"predecessor-version":[{"id":133,"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/posts\/132\/revisions\/133"}],"wp:attachment":[{"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/media?parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/categories?post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/tags?post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}