Authentication fails

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read how to get help
Post Reply
hlemuss
Level 1
Level 1
Posts: 6
Joined: Sat May 04, 2013 2:19 am
Location: Spain

Authentication fails

Post by hlemuss »

Hi everyone

Suddenly when I try to authenticate in my system, I get a weird behavior.:

If I want to use Software update or software manager, I enter the password, and after accept the window closes and nothing else happens.
If I try sudo or su in the terminal, I enter the password and after hit enter nothing happens.
When I try programs like gparted or users & groups, I get and authentication failed message.

I have Linux Mint 14 Cinnamon and I was messing with samba to create my local network. I searched in the forum and in Internet with no result. I tried a lot of methods but nothing worked. I feel is something related with permissions, but not quite sure.

I hope somebody knows what happen here.

Greetings
User avatar
xenopeek
Level 25
Level 25
Posts: 25331
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Authentication fails

Post by xenopeek »

Sounds like you are no longer member of the sudo group? Please open a terminal and run this command to check:

Code: Select all

groups
Output should be similar as (with the first replaced with your username):

Code: Select all

vincent adm cdrom sudo dip plugdev lpadmin sambashare
Notice I'm member of the sudo group.
Image
hlemuss
Level 1
Level 1
Posts: 6
Joined: Sat May 04, 2013 2:19 am
Location: Spain

Re: Authentication fails

Post by hlemuss »

Hi xenopeek

This is the output I get from my terminal:

hlemuss adm cdrom sudo dip plugdev lpadmin vboxusers vboxsf sambashare

Looks like I belong to the group sudo. I'm very puzzled about this problem. I appreciate your answer.
User avatar
xenopeek
Level 25
Level 25
Posts: 25331
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Authentication fails

Post by xenopeek »

Okay, so either you are not giving the right password (you should type your password; not root's password) or else there is something wrong with the sudo configuration. Did you edit the /etc/sudoers file? (only view or edit this file with visudo!)
Image
hlemuss
Level 1
Level 1
Posts: 6
Joined: Sat May 04, 2013 2:19 am
Location: Spain

Re: Authentication fails

Post by hlemuss »

Hi xenopeek

As soon as I get home I will send you my /etc/sudoers file

Greetings
hlemuss
Level 1
Level 1
Posts: 6
Joined: Sat May 04, 2013 2:19 am
Location: Spain

Re: Authentication fails

Post by hlemuss »

Hi again xenopeek

I'm unable to see sudoers' content. I can't get root privileges. I access it using a live CD but still nothing. I tried from grub entering in recovery mode, open the command line as root but still if I try to do anything with the file it says that is read only. I will try later again with a live usb.

Thanks again
User avatar
xenopeek
Level 25
Level 25
Posts: 25331
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Authentication fails

Post by xenopeek »

From recovery mode as root, you can access the file with command visudo. As I shared, don't edit this file with anything else--that can damage your system.
Image
hlemuss
Level 1
Level 1
Posts: 6
Joined: Sat May 04, 2013 2:19 am
Location: Spain

Re: Authentication fails

Post by hlemuss »

Hi xenopeek

Here is the content of /etc/sudoers:

#
# 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 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
hlemuss ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin 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


I had problems accessing the file but it was that in recovery mode the system mounts as read only. I changed that and that made the trick. My user (as you are guessing) is hlemuss.
Let me know anything. I will appreciate it.

Greetings
User avatar
xenopeek
Level 25
Level 25
Posts: 25331
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Authentication fails

Post by xenopeek »

Well, nothing strange in there I think. Here is Linux Mint 14 Cinnamon default sudoers file:

Code: Select all

#
# 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

# Members of the admin group may gain root privileges
%admin 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
Image
hlemuss
Level 1
Level 1
Posts: 6
Joined: Sat May 04, 2013 2:19 am
Location: Spain

Re: Authentication fails

Post by hlemuss »

Thank you xenopeek

I will work on it next weekend. If I get new information I will post it. If not I will close the thread. Probably I will wait for Mint 15 and make a fresh install.

Thanks again and greetings
Post Reply

Return to “Other topics”