View Full Version : [ubuntu] how can i access system administration
oma54r
December 13th, 2008, 01:36 AM
Hello i use ubuntu 8.10 and i have a problem that i can't access to synaptic package manager when i try to open it its give me this: Failed to run usr/sbin/synaptic as user root.
the underlining authorization mechanism(sudo) does not allow you to run this program.contact the system administrator.
and when i try to open users and groups gives me this message: the configuration could not be loaded.
you are not allowed to access the system configuration
please i need some help i don't want to uninstall it
prshah
December 13th, 2008, 02:24 AM
the underlining authorization mechanism(sudo) does not allow you to run this program.contact the system administrator.
Looks like a problem with your /etc/sudoers file; did you try to edit it?
To repair, boot into recovery mode; give the command visudo This will open up the file in either nano editor or vi (vim) editor.
Look for lines similar to # User privilege specification
root ALL=(ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
If the lines look different from the above, change them to exactly match the above.
Then save and exit (if you're using nano press, Ctrl+o, Ctrl+x, if you are using vim type :wq).
Also give the additional commands
cp /etc/sudoers /root/sudoers
chmod o+r /root/sudoers
Now reboot into regular mode and check if sudo is working. If it still isn't post the result of the commandcat /root/sudoers
oma54r
December 13th, 2008, 09:48 AM
i write visudo on recovery mode and give me the same lines with another lines and i delete the other lines and i write the additional commands but nothing happened. i check with the terminal with this command cat /root/sudoers and give me what in visudo and still i can't access
by the way i use this command before this happened gksudo nautilus
bodhi.zazen
December 13th, 2008, 01:21 PM
Ubuntu uses sudo to give admin access.
so
sudo visudo
See also : https://wiki.ubuntu.com/RootSudo
prshah
December 13th, 2008, 06:57 PM
check with the terminal with this command cat /root/sudoers and give me what in visudo and still i can't access
Please post the output of the command (Need to see your sudoers file)cat /root/sudoers
oma54r
December 13th, 2008, 08:49 PM
this is what shown in cat /root/sudoers
oma54r
December 13th, 2008, 08:52 PM
# /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
ths is what in cat /root/sudoers
cariboo907
December 14th, 2008, 02:48 AM
I hope you realize that prshah's comment has a typo the correct command is:
sudo cat /etc/sudoers
Jim
oma54r
December 14th, 2008, 05:50 AM
i found it for this u can add this command
adduser username admin
username should be ur username
prshah
December 14th, 2008, 01:49 PM
Also give the additional commands
cp /etc/sudoers /root/sudoers
chmod o+r /root/sudoers
post the result of the commandcat /root/sudoers
I hope you realize that prshah's comment has a typo the correct command is:
sudo cat /etc/sudoers
Nope; you need to follow the thread from the beginning:
Points to note for _this_ thread:
a)"sudo" is locked out for him.
b) the /etc/sudoers file is +r for root:root only. So, in regular mode, he cannot access the file in any way (even to read / cat) since his sudo is broken.
c) Which is why I asked him to make a copy of the /etc/sudoers file to /root when in Recovery Mode (root prompt), as well as change the permissions to allow other users to read the file.
d) Then, if the suggested change does not work, he is to post the copy of the sudoers file which he has placed in /root and made world readable.
Thus he cannot use the command you have given him, and has to stick with what I've given him.
prshah
December 14th, 2008, 01:53 PM
Defaults env_reset
.. change to
Defaults !lecture,tty_tickets,!fqdn
Obviously you need to do this using "visudo" from Recovery Mode. (_NOT_ "sudo visudo")
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.