{"id":74,"date":"2010-10-10T16:10:39","date_gmt":"2010-10-10T14:10:39","guid":{"rendered":"http:\/\/blog.sfsoft.it\/?p=74"},"modified":"2010-10-10T16:12:27","modified_gmt":"2010-10-10T14:12:27","slug":"aggiunta-di-un-utente-su-ubuntu-tramite-shell","status":"publish","type":"post","link":"http:\/\/www.sfsoft.it\/blog\/2010\/10\/10\/aggiunta-di-un-utente-su-ubuntu-tramite-shell\/","title":{"rendered":"Aggiunta di un utente su Ubuntu tramite shell"},"content":{"rendered":"<p>Ci sono due metodi per creare un utente da shell.<\/p>\n<p>Il primo \u00e8 il pi\u00f9 standard diciamo ma anche il pi\u00f9 complicato se si pu\u00f2 dire cos\u00ec, si tratta di utilizzare il comando useradd eventualmente con i parametri -d per indicare la home e il -m per farla creare ( e impostare la password in seguito con passwd )<\/p>\n<p>[bash]<br \/>\nsudo useradd -d \/home\/testuser -m testuser<br \/>\nsudo passwd testuser<br \/>\n[\/bash]<\/p>\n<p>Altrimenti cosa pi\u00f9 facile diciamo \u00e8 quella di usare il comando adduser, ed eventualmente la &#8211;home<\/p>\n<p>[bash]sudo adduser testuser &#8211;home \/home\/dir[\/bash]<\/p>\n<p>Il quale vi chieder\u00e0 in seguito alcune informazioni dell&#8217;utente stesso.<\/p>\n<p>Ovviamente rimando ai vari man per maggiori informazioni e eventuali parametri aggiuntivi.<\/p>\n<p><a href=\"http:\/\/www.howtogeek.com\/howto\/ubuntu\/add-a-user-on-ubuntu-server\/\" target=\"_blank\">http:\/\/www.howtogeek.com\/howto\/ubuntu\/add-a-user-on-ubuntu-server\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ci sono due metodi per creare un utente da shell. Il primo \u00e8 il pi\u00f9 standard diciamo ma anche il pi\u00f9 complicato se si pu\u00f2 dire cos\u00ec, si tratta di utilizzare il comando useradd eventualmente con i parametri -d per indicare la home e il -m per farla creare ( e impostare la password in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[15,3,23],"tags":[27,16,8,5,26],"_links":{"self":[{"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/posts\/74"}],"collection":[{"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/comments?post=74"}],"version-history":[{"count":6,"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/posts\/74\/revisions"}],"predecessor-version":[{"id":80,"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/posts\/74\/revisions\/80"}],"wp:attachment":[{"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/media?parent=74"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/categories?post=74"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/tags?post=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}