特殊:Badtitle/NS100:UbuntuLTSP/UnlockChrootRootAcct:修订间差异
小 创建新页面为 '{{From|https://help.ubuntu.com/community/UbuntuLTSP/UnlockChrootRootAcct}} {{Languages|UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct}} {|border="1" cellspacing="0" |This page is sp...' |
小无编辑摘要 |
||
(未显示同一用户的1个中间版本) | |||
第2行: | 第2行: | ||
{{Languages|UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct}} | {{Languages|UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct}} | ||
{|border="1" cellspacing="0" | {|border="1" cellspacing="0" | ||
|This page is specific to Ubuntu versions 8.04 | |This page is specific to Ubuntu versions 8.04, 8.10, 9.04, 9.10 and 10.04 | ||
|} | |} | ||
''If you find this information applicable to additional versions/releases, '''''please''''' edit this page and modify this header to reflect that. Please also include any necessary modifications for this information to apply to the additional versions.'' | ''If you find this information applicable to additional versions/releases, '''''please''''' edit this page and modify this header to reflect that. Please also include any necessary modifications for this information to apply to the additional versions.'' | ||
第9行: | 第9行: | ||
---- | ---- | ||
This page is dedicated to unlocking the 'root' user account in the LTSP client chroot environment. There are many reasons to do this, which are most likely linked directly to this article (which is possibly how you got to this page in the first place!). | This page is dedicated to unlocking the 'root' user account in the LTSP client chroot environment. There are many reasons to do this, which are most likely linked directly to this article (which is possibly how you got to this page in the first place!). | ||
By default in Ubuntu (server and chroot filesystems), the 'root' account is locked and users are advised to use 'sudo' to perform administrative tasks. This is a good idea, but there are also good reasons to use the root account directly | Bear in mind however, that unlocking a user account does not have the same meaning as in certain other Operating Systems, as the only thing you really unlock is the password, as per [http://manpages.ubuntu.com/manpages/karmic/man8/usermod.8.html usermod(1)], and hence the ability to authenticate and log in by means of it. One still can e.g. log in through SSH using a certificate key, or run cron jobs as this acount. Before proceding, be sure you really need to do this. | ||
* The procedure is fairly simple. First step is to unlock the account inside the chroot: | By default in Ubuntu (server and chroot filesystems), the 'root' account is locked and users are advised to use 'sudo' to perform administrative tasks. This is a good idea, but there are also good reasons to use the root account directly. To create an '''administrative''' user account in the chroot that can sudo to root, see [[UbuntuHelp:UbuntuLTSP/CreateChrootAdminAcct|create|an ''admin'' account in the chroot]]. | ||
* The procedure is fairly simple. Here we use a 32-bit (i386) client for the example. Changes for 64-bit client images should be obvious. First step is to unlock the account inside the chroot: | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo chroot /opt/ltsp/i386 passwd -u root | sudo chroot /opt/ltsp/i386 passwd -u root | ||
第23行: | 第24行: | ||
</nowiki></pre> | </nowiki></pre> | ||
'''All done!''' | '''All done!''' | ||
---- | |||
'''How to re-lock the root account''' | |||
After original reason for unlocking the LTSP client chroot environment root account is gone it is recommended to re-lock this root account. | |||
* This are the commands to reverse the previous unlocking: | |||
<pre><nowiki> | |||
sudo chroot /opt/ltsp/i386 passwd -l root | |||
sudo ltsp-update-image | |||
</nowiki></pre> | |||
---- | ---- | ||
[[category:CategoryLtsp]] | [[category:CategoryLtsp]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2010年5月20日 (四) 00:32的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/UbuntuLTSP/UnlockChrootRootAcct }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/af | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|Afrikaans| [[::UbuntuLTSP/UnlockChrootRootAcct/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/ar | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|العربية| [[::UbuntuLTSP/UnlockChrootRootAcct/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/az | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|azərbaycanca| [[::UbuntuLTSP/UnlockChrootRootAcct/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/bcc | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|جهلسری بلوچی| [[::UbuntuLTSP/UnlockChrootRootAcct/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/bg | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|български| [[::UbuntuLTSP/UnlockChrootRootAcct/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/br | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|brezhoneg| [[::UbuntuLTSP/UnlockChrootRootAcct/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/ca | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|català| [[::UbuntuLTSP/UnlockChrootRootAcct/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/cs | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|čeština| [[::UbuntuLTSP/UnlockChrootRootAcct/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/de | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|Deutsch| [[::UbuntuLTSP/UnlockChrootRootAcct/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/el | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|Ελληνικά| [[::UbuntuLTSP/UnlockChrootRootAcct/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/es | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|español| [[::UbuntuLTSP/UnlockChrootRootAcct/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/fa | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|فارسی| [[::UbuntuLTSP/UnlockChrootRootAcct/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/fi | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|suomi| [[::UbuntuLTSP/UnlockChrootRootAcct/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/fr | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|français| [[::UbuntuLTSP/UnlockChrootRootAcct/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/gu | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|ગુજરાતી| [[::UbuntuLTSP/UnlockChrootRootAcct/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/he | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|עברית| [[::UbuntuLTSP/UnlockChrootRootAcct/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/hu | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|magyar| [[::UbuntuLTSP/UnlockChrootRootAcct/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/id | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|Bahasa Indonesia| [[::UbuntuLTSP/UnlockChrootRootAcct/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/it | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|italiano| [[::UbuntuLTSP/UnlockChrootRootAcct/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/ja | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|日本語| [[::UbuntuLTSP/UnlockChrootRootAcct/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/ko | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|한국어| [[::UbuntuLTSP/UnlockChrootRootAcct/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/ksh | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|Ripoarisch| [[::UbuntuLTSP/UnlockChrootRootAcct/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/mr | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|मराठी| [[::UbuntuLTSP/UnlockChrootRootAcct/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/ms | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|Bahasa Melayu| [[::UbuntuLTSP/UnlockChrootRootAcct/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/nl | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|Nederlands| [[::UbuntuLTSP/UnlockChrootRootAcct/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/no | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|norsk| [[::UbuntuLTSP/UnlockChrootRootAcct/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/oc | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|occitan| [[::UbuntuLTSP/UnlockChrootRootAcct/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/pl | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|polski| [[::UbuntuLTSP/UnlockChrootRootAcct/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/pt | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|português| [[::UbuntuLTSP/UnlockChrootRootAcct/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/ro | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|română| [[::UbuntuLTSP/UnlockChrootRootAcct/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/ru | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|русский| [[::UbuntuLTSP/UnlockChrootRootAcct/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/si | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|සිංහල| [[::UbuntuLTSP/UnlockChrootRootAcct/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/sq | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|shqip| [[::UbuntuLTSP/UnlockChrootRootAcct/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/sr | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|српски / srpski| [[::UbuntuLTSP/UnlockChrootRootAcct/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/sv | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|svenska| [[::UbuntuLTSP/UnlockChrootRootAcct/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/th | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|ไทย| [[::UbuntuLTSP/UnlockChrootRootAcct/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/tr | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|Türkçe| [[::UbuntuLTSP/UnlockChrootRootAcct/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/vi | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|Tiếng Việt| [[::UbuntuLTSP/UnlockChrootRootAcct/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/yue | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|粵語| [[::UbuntuLTSP/UnlockChrootRootAcct/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/zh | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|中文| [[::UbuntuLTSP/UnlockChrootRootAcct/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/zh-hans | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|中文(简体)| [[::UbuntuLTSP/UnlockChrootRootAcct/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct | {{#if: | :}}UbuntuLTSP/UnlockChrootRootAcct}}/zh-hant | • {{#if: UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|中文(繁體)| [[::UbuntuLTSP/UnlockChrootRootAcct/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:UbuntuLTSP/UnlockChrootRootAcct|:UbuntuLTSP/UnlockChrootRootAcct|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :UbuntuLTSP/UnlockChrootRootAcct/zh | | {{#ifexist: UbuntuLTSP/UnlockChrootRootAcct/zh | | {{#ifeq: {{#titleparts:UbuntuLTSP/UnlockChrootRootAcct|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:UbuntuLTSP/UnlockChrootRootAcct|1|-1|}} | zh | | }}
This page is specific to Ubuntu versions 8.04, 8.10, 9.04, 9.10 and 10.04 |
If you find this information applicable to additional versions/releases, please edit this page and modify this header to reflect that. Please also include any necessary modifications for this information to apply to the additional versions.
NOTE: Please use this page as a reference for other pages instead of simply copying the code.
This page is dedicated to unlocking the 'root' user account in the LTSP client chroot environment. There are many reasons to do this, which are most likely linked directly to this article (which is possibly how you got to this page in the first place!). Bear in mind however, that unlocking a user account does not have the same meaning as in certain other Operating Systems, as the only thing you really unlock is the password, as per usermod(1), and hence the ability to authenticate and log in by means of it. One still can e.g. log in through SSH using a certificate key, or run cron jobs as this acount. Before proceding, be sure you really need to do this. By default in Ubuntu (server and chroot filesystems), the 'root' account is locked and users are advised to use 'sudo' to perform administrative tasks. This is a good idea, but there are also good reasons to use the root account directly. To create an administrative user account in the chroot that can sudo to root, see create|an admin account in the chroot.
- The procedure is fairly simple. Here we use a 32-bit (i386) client for the example. Changes for 64-bit client images should be obvious. First step is to unlock the account inside the chroot:
sudo chroot /opt/ltsp/i386 passwd -u root
- Second step (optional) is to provide a password for root. Make sure this is a robust password:
sudo chroot /opt/ltsp/i386 passwd
- Lastly, update the client image to reflect the changes we just made:
sudo ltsp-update-image
All done!
How to re-lock the root account After original reason for unlocking the LTSP client chroot environment root account is gone it is recommended to re-lock this root account.
- This are the commands to reverse the previous unlocking:
sudo chroot /opt/ltsp/i386 passwd -l root sudo ltsp-update-image