محتوای فایل etc/sudoers اتون رو بدید! O-)
سر در نیارم ازش
خوب چیکارش کنم؟؟؟؟؟؟؟؟؟
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
# Uncomment to allow members of group sudo to not need a password
# %sudo ALL=NOPASSWD: ALL
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
#<ebox>
# DO NOT MODIFY ANYTHING BETWEEN THESE MARKS.
# EBOX WILL OVERWRITE IT.
# sudoers file for ebox
# Allow httpd user to execute all commands
ebox ALL = NOPASSWD:ALL
#</ebox>
این خط رو به آخرش اضافه کن
%mahmood ALL=NOPASSWD: ALL
اگه نام کاربر ات غیر این هستش! جایگزین کن! اگه بازم شعور ش باز نشد! گنوم-ترمینال رو purge کن و مجدد نصب کن
دو تا سوال
۱)purge یعنی جی
۲) sudo: /etc/sudoers is mode 0660, should be 0440 اررور رو میده -- چه کنم؟
اومدم synaptic رو run کنم که نشد
اومدم با تر مینال رانش کنم که اینجوری شد :
mahmood@mahmood-pc:~$ sudo synaptic
sudo: /etc/sudoers is mode 0660, should be 0440
mahmood@mahmood-pc:~$ sudo nautilus /etc/
sudo: /etc/sudoers is mode 0660, should be 0440
mahmood@mahmood-pc:~$ sudo synaptic
sudo: /etc/sudoers is mode 0660, should be 0440
mahmood@mahmood-pc:~$ gksudo gedit /etc/sudoers
mahmood@mahmood-pc:~$ gedit /etc/sudoers
mahmood@mahmood-pc:~$ gksudo gedit /etc/sudoers