How to Login to Ubuntu as Root User? كيفية الدخول للمنتديات كما روت المستخدم؟

At times where Linux provides a secure and healthy environment for users, it makes other things even more complicated and intricate. في بعض الاحيان حيث لينكس يوفر بيئة آمنة وصحية للمستخدمين ، فإنه يجعل أمور أخرى أكثر تعقيدا ومعقدة. Despite being such a user-friendly operating system, it is not that easy to login to Ubuntu as a root user. على الرغم من هذا القبيل سهولة نظام التشغيل ، فإنه ليس من السهل الدخول إلى أوبونتو كمستخدم جذر.

Root user has all the administrator privileges so whenever you need to edit system files or configuration from within Gnome, you will feel the need to login to Ubuntu as a root user. جذر مستخدم لديه كل امتيازات المسؤول لذلك كلما كنت بحاجة لتحرير ملفات النظام أو التكوين من داخل غنوم ، وسوف تشعر أنك تحتاج إلى تسجيل الدخول إلى أوبونتو كمستخدم جذر. But the question is here is "How to login to Ubuntu as a root user?" ولكن السؤال هنا هو : "كيف لتسجيل الدخول إلى أوبونتو كمستخدم جذر؟"

Just follow the steps below: فقط اتبع الخطوات التالية :

  1. Open the terminal and type: فتح المعبر ، ونوع :
    sudo passwd root
  2. When you see the prompt that says "Enter new UNIX password", enter the password you want for the root user and confirm it. عندما تشاهد المطالبة التي تقول "أدخل كلمة المرور الجديدة يونيكس" ، وأدخل كلمة السر التي تريد للمستخدم الجذر وتأكيدها.
  3. Type: النوع :
    sudo gedit /etc/X11/gdm/gdm.conf
  4. Locate the line that says "AllowRoot=false". موقع السطر الذي يقول "AllowRoot = كاذبة". Change it to "AllowRoot=true". تغييره إلى "AllowRoot = صحيح".
  5. Save the file حفظ الملف
  6. Exit gedit, logout and then reboot. خروج gedit ، ثم خروج وإعادة تشغيل الكمبيوتر.

I used the same method when I wanted to login as root user to edit configuration files of my graphics card and everything worked great. أنا استخدم نفس الأسلوب عندما أردت الدخول كمستخدم جذر لتحرير ملفات التهيئة لبطاقة الرسومات الخاصة بي وعملت كل شيء عظيم. However the only issue in this case is that by logging to Ubuntu as root you are making your operating system more vulnerable. لكن المسألة الوحيدة في هذه القضية هو أنه عن طريق تسجيل الدخول إلى أوبونتو كجذر كنت ترغب بجعل نظام التشغيل الخاص بك أكثر عرضة للخطر.

For Ubuntu users it is recommended to use the account which they created on time of install and use the "sudo" command while in terminal to execute commands as root user. لمستخدمي أوبونتو فمن المستحسن استخدام الحساب التي تم إنشاؤها في الوقت المناسب لتثبيت واستخدام سودو "" في حين أن الأمر في محطة لتنفيذ الأوامر كمستخدم جذر.

  • Bad bad bad idea, really. فكرة سيئة سيئة سيئة حقا.

    Never run X with root's power, there isn'ta reason to do that. أبدا تشغيل العاشر الجذرية مع السلطة ، ليست هناك سبب للقيام بذلك. If you need to configure something as root-root use sudo properly: 'sudo -i' إذا كنت بحاجة إلى شيء تكوين كجذر الجذر استخدام سودو صحيح : 'سودو - ط'
  • Mike مايك
    I aggree that you should not login to X as root. أنا aggree أنه لا ينبغي عليك تسجيل الدخول إلى العاشر كجذر. But Ubuntu style to use sudo is very bad bad bad idea too. ولكن اسلوب لاستخدام أوبونتو سودو سيء جدا سيئة فكرة سيئة للغاية. If you always login using user who has sudo rights it's even more dangerous than to login as a root. إذا كنت دائما تسجيل الدخول باستخدام مستخدم لديه حقوق سودو انها اكثر خطرا من الدخول الى كجذر.
  • Michael مايكل
    You say to edit the gdm.conf file to allow root log in. Well you can edit the "Log In Window" settings under the System > Administration menu you to do this easier. كنت أقول لتحرير الملف gdm.conf للسماح سجل الجذرية فيها حسنا يمكنك تحرير المفتاح "في نافذة" الإعدادات في إطار النظام> الإدارة القائمة لك أن تفعل هذا أسهل. Under the "Security" tab enable "Allow local system administrator log in". في إطار "أمان" تمكين "السماح المحلية المسؤول عن النظام في السجل".
  • boss مدرب
    I agree with Michael's idea وأنا أتفق مع مايكل فكرة
    It worked. أنه يعمل.
  • Matthew ماثيو
    Actually thanx a lot Michael...my linux system stuck and I couldn't install nothing...now its cool :D thanx فعلا لمايكل الكثير... بلدي تمسك نظام لينكس وأنا لا يمكن تثبيت أي شيء... والآن باردة : مد
  • jason جايسون
    I tried this but sudo gedit /etc/X11/gdm/gdm.conf just opens a blank page with no text ??? حاولت ذلك ولكن gedit سودو / etc/X11/gdm/gdm.conf فقط يفتح صفحة فارغة مع أي نص؟؟
  • r jesse ص جيسي
    hi Jason مرحبا جايسون
    i tried sudo gedit /etc/X11/gdm/gdm.conf and it didnt work for me either! حاولت gedit سودو / etc/X11/gdm/gdm.conf وانها didn't العمل بالنسبة لي سواء! BUT: there is a better way to just do that! ولكن : هناك طريقة أفضل للقيام بذلك فقط! guess what: go to prompt and type: تخمين ما يلي : الذهاب الى الأوامر واكتب :

    $locate gdm.conf $ موقع gdm.conf

    where you will get something like: حيث ستحصل على شيء من هذا القبيل :

    /etc/gdm/gdm.conf / الخ / معج / gdm.conf
    /etc/gdm/gdm.conf-custom / الخ / معج / gdm.conf - العرف
    /etc/gdm/gdm.conf~ / الخ / معج / gdm.conf ~
    ...etc ... الخ

    to me the above was my output. بالنسبة لي ما سبق كان لي الانتاج.

    this gives you a whole lots of locations where files with name *like* gdm.conf can be found. هذا يمنحك الكثير من كامل المواقع التي الملفات التي تحمل الاسم * مثل * gdm.conf يمكن العثور عليها. THIS IS THE FILE WE NEED TO EDIT. هذه ونحن بحاجة إلى تحرير الملف.

    you can tell from the listing that the first option is the one we r after (or it depends on your output but look for EXACTLY "gdm.conf" file), so you can go for you gedit command now: remove the /X11/ and type it like: يمكن أن أقول لكم من القائمة أن الخيار الأول هو واحد بعد ونحن ص (أو أنه يعتمد على الانتاج ولكن لننظر بالضبط "gdm.conf" ملف) ، حتى تتمكن من الذهاب لكنت gedit الأمر الآن : إزالة X11 / / ونوع من مثل :

    sudo gedit /etc/gdm/gdm.conf سودو gedit / الخ / معج / gdm.conf

    ..there we r... .. نحن هناك r...

    r jesse ص جيسي
    Dar. در.
  • Sus سوس
    Michael مايكل
    April 20, 2008 at 6:51 pm 20 أبريل 2008 في الساعة 6:51

    You say to edit the gdm.conf file to allow root log in. Well you can edit the “Log In Window” settings under the System > Administration menu you to do this easier. كنت أقول لتحرير الملف gdm.conf للسماح سجل الجذرية فيها حسنا يمكنك تحرير المفتاح "في نافذة" الإعدادات في إطار النظام> الإدارة القائمة لك أن تفعل هذا أسهل. Under the “Security” tab enable “Allow local system administrator log in”. في إطار "أمان" تمكين "السماح المحلية المسؤول عن النظام في السجل".
  • Itchyfinger Itchyfinger
    I wish people would get the facts straight before they go bleeting one way or the other on how something impacts Ubuntu system security, because it's important for all users, new and old, to know the straight dope. وأتمنى أن يحصل الناس على الحقائق مباشرة قبل الذهاب bleeting بطريقة أو أخرى على الآثار كيف شيء أوبونتو نظام الضمان ، لأنه من المهم لجميع المستخدمين ، الجديدة والقديمة ، لمعرفة منشطات على التوالي. Not only do they need it explained in non-superstitious terms what they can and can't do while logged in as user or root, but they need better justification for the restrictions in play. ليس فقط أنها لا تحتاج إليها هو موضح في شروط غير الخرافية ما يمكن وما لا يمكن فعله في الوقت الذي يسجل في كمستخدم أو الجذرية ، لكنها في حاجة إلى تحسين مبرر للقيود في اللعب. It takes this sort of review process to perfect a system, and the perfect system is NOT the most secure one - fact is that the most secure system is also the most useless. يأخذ هذا النوع من عملية الاستعراض لاتقان النظام ، والنظام المثالي ليس هو الأكثر أمانا -- الحقيقة هي أن النظام الأكثر أمانا هو أيضا أكثر جدوى.

    While I know only a little myself, being a fairly new user, I went and tried tried the first fix before forming my opinion! بينما أنا أعرف نفسي قليلا فقط ، ويجري مستخدم جديد نوعا ما ، وذهبت وحاولت وحاولت إصلاح أولا قبل تشكيل رأيي! The result is that I no longer get some asinine hassle when I want to browse partitions which are BY DEFAULT less security-sensitive than my system partition, and since you don't need root priveleges to write to your system partitions in Ubuntu (not so with other distros), Then I want to know what were you Ubuntu Engineers thinking in making an issue of browsing secondary partitions? والنتيجة هي أن الأول لم يعد الحصول على بعض المتاعب أبله عندما أريد أن تصفح الأقسام التي يتم افتراضيا أقل حساسة أمنيا من بلادي قسم النظام ، وبما أنك لا تحتاج الجذر امتيازات الكتابة إلى الأقسام الخاصة بك في نظام أوبونتو (حتى لا مع توزيعات أخرى) ، ثم أريد أن أعرف لماذا كنت أوبونتو المهندسين التفكير في جعل مسألة تصفح الأقسام الثانوية؟

    Anyway, despite being able to browse your own files while logged in as root, you still can't change your system files without the sudo command - I tried that, and it won't let me. على أي حال ، على الرغم من كونه قادرا على تصفح الملفات الخاصة بك بينما يسجل في كجذر ، كنت لا تزال لا يمكن تغيير ملفات النظام دون أن يكون الأمر سودو -- حاولت ذلك ، وانها لن تسمح لي. Very strange, but that's how it works. غريب جدا ، ولكن هذا كيف يعمل.
  • Itchyfinger Itchyfinger
    In summary (see above), total write-access does not exist any more (or any less) between a logged-in user and logged-in root user without the use or the sudo command, and then the only thing which non-root-user-status can make particularly difficult is access to partitions not containing his system (unless of course the system is on a separate partition from his home directory). في الموجز (انظر أعلاه) ، ومجموع الوصول للكتابة لا توجد أي أكثر (أو أي أقل) بين تسجيل المستخدم في وتسجيل المستخدم في الجذر دون استخدام أو الأمر سودو ، ومن ثم كان الشيء الوحيد الذي غير الجذر المستعملين حالة خاصة يمكن أن تجعل من الصعب الوصول إلى أقسام لا تحتوي على نظام بلده (بالطبع ما لم يكن هذا النظام هو على قسم منفصل من والدليل الرئيسي).
blog comments powered by Disqus بلوق التعليقات مدعوم من هارد