{"id":169,"date":"2016-12-12T19:25:59","date_gmt":"2016-12-12T19:25:59","guid":{"rendered":"https:\/\/visworlditsolution.wordpress.com\/?p=169"},"modified":"2016-12-12T19:25:59","modified_gmt":"2016-12-12T19:25:59","slug":"how-to-create-user-and-group-in-linux-redhat-server","status":"publish","type":"post","link":"https:\/\/linux.thingsomething.com\/index.php\/2016\/12\/12\/how-to-create-user-and-group-in-linux-redhat-server\/","title":{"rendered":"How to create user and group in linux redhat server"},"content":{"rendered":"<p>hii guy today we will learn and discuss that how can we create group and user in linux server and also learn how to provide \u00a0different -2 permission every user or group on specify \u00a0file .For example we look any company or organisation \u00a0employ schedule in some person can read only schedule .but some person can manipulation in schedule .so we will learn how to do it basically like this work depend on <strong>read ,write. execute<\/strong>\u00a0permission .<!--more--><\/p>\n<p><strong>\u00a0so let we start create user in linux redhat server<\/strong><\/p>\n<pre><strong>[root@localhost ~]# useradd joon\n[root@localhost ~]# passwd joon\nChanging password for user joon.\nNew UNIX password:12345\nBAD PASSWORD: it is too short\nRetype new UNIX password:12345\n[root@localhost ~]# useradd robet\n[root@localhost ~]# passwd -d robet\nRemoving password for user robet.\npasswd: Success\n[root@localhost ~]# userdd peetr\n-bash: userdd: command not found\n[root@localhost ~]# useradd peetr\n[root@localhost ~]# passwd -d peetr\nRemoving password for user peetr.\npasswd: Success\n[root@localhost ~]# useradd jully\n[root@localhost ~]# passwd -d jully\nRemoving password for user jully.\npasswd: Success<\/strong><\/pre>\n<p>we can remove user<\/p>\n<pre><strong>[root@localhost ~]# userdel -r joon(we can remove all user like this<\/strong><\/pre>\n<p>how to create group and user add \u00a0in group<\/p>\n<pre><strong>[root@localhost ~]# groupadd demo\n[root@localhost ~]# usermod -G demo robet\n[root@localhost ~]# usermod -G demo peetr\n[root@localhost ~]# usermod -G demo jully\n( note check group)[root@localhost ~]# cat \/etc\/group<\/strong><\/pre>\n<p>how can we provide permission in group and user ,other<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-175\" src=\"https:\/\/visworlditsolution.files.wordpress.com\/2016\/12\/untitled1.png?w=300\" alt=\"LINUX IN GROUP\" width=\"723\" height=\"463\" \/><\/p>\n<p>here \u00a0look we have u1,u2,u3, user and HELLO group in jully robut brad user. And file owner (user) joon .we can look through cmd(command) that how we provide each user and group read write execution permission(here we need some \u00a0new user \u00a0diagram according )<\/p>\n<pre>-\n<strong>[root@localhost ~]# useradd u1\n[root@localhost ~]# passwd -d u1\nRemoving password for user u1.\npasswd: Success\n[root@localhost ~]# useradd u2\n[root@localhost ~]# passwd -d u2\nRemoving password for user u2.\npasswd: Success\n[root@localhost ~]# useradd u3\n[root@localhost ~]# passwd -d u3\nRemoving password for user u3.\npasswd: Success\n[root@localhost ~]# groupadd hello\n[root@localhost ~]# usermod -G hello jully\n[root@localhost ~]# useradd robut\n[root@localhost ~]# passwd -d robut\nRemoving password for user robut.\npasswd: Success\n[root@localhost ~]# usermod -g hello robut\n[root@localhost ~]# chown joon data\n[root@localhost ~]# chgrp hello data\n[root@localhost ~]# setfacl -M g:rw,u=rwx,o=r data\n[root@localhost ~]# ls -l\ndrwxr-xr-x 2 joon hello       4096 Dec 13 00:36 data\n<\/strong><\/pre>\n<p>thank you<\/p>\n<p><strong>\u00a0by &#8211; vishnu sharma<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>hii guy today we will learn and discuss that how can we create group and user in linux server and also learn how to provide &hellip; <span class=\"ml-btn\"><a href=\"https:\/\/linux.thingsomething.com\/index.php\/2016\/12\/12\/how-to-create-user-and-group-in-linux-redhat-server\/\" class=\"more-link\">Read More<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[22,8],"tags":[27,35,173],"class_list":["post-169","post","type-post","status-publish","format-standard","hentry","category-basic-linux","category-linux-rhel5","tag-about-linux-user","tag-add-and-remove-new-user-in-linux","tag-linux-user-and-group-diagram-with-command-how-to-create-user-in-linux-how-to-create-user-and-group-in-linux-how-to-provide-permission-user-and-group-in-linux"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/posts\/169"}],"collection":[{"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/comments?post=169"}],"version-history":[{"count":0,"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/posts\/169\/revisions"}],"wp:attachment":[{"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/media?parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/categories?post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/tags?post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}