انجمنهای فارسی اوبونتو
کمک و پشتیبانی => نصب، راهاندازی و بروزآوری => نویسنده: MADMAN در 23 شهریور 1401، 06:38 بظ
-
سلام نسخه تازه نصب شده از دبیان رو دارم که هنگام اجرای sudo این پیغامها نمایش داده میشه:
>>> /etc/sudoers: syntax error near line 27 <<<
sudo: parse error in /etc/sudoers near line 27
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
محتوای فایل هم:
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
-
این پرونده رو دستی تغییر دادی؟
-
خیر
ولی وقتی از یک نصب دیگه کار میکرد کپی کردم باز هم همون بود.
تو اون یکی خط آخر به جای # از @ استفاده شده بود. همچنین در کامت بالاییش از به حای # از @ استفاده کرده بود.
-
با visudo بازش کن، اشکالش رو میگه
-
با visudo بازش کن، اشکالش رو میگه
whisper@pc:~ $ sudo visudo
>>> /etc/sudoers: syntax error near line 27 <<<
sudo: parse error in /etc/sudoers near line 27
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
whisper@pc:~ $ visudo
visudo: /etc/sudoers: Permission denied
یک نکتهای که شاید تاثیرگذار باشه اینکه دبیان ۸ (۳۲ بیتی) نصبه و یادم رفت بگم
-
چرا؟؟؟