LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-23-2011, 11:08 AM   #1
jdix123
LQ Newbie
 
Registered: Feb 2008
Posts: 17

Rep: Reputation: 0
sudo does not work in lxde but works fine in terminal


I recently installed MintPPC 9 (http://mintppc.org) onto an older G$ powerbook I had lying around. After switching out the video driver its looking good, but for some reason the graphical version of sudo doesn't accept my password.

For example, when I click the update notification, it tells me three updates are available, and asks the sudo password, which it never accepts (I've tried it enough to know I am not mistyping).

When I run:

~ $ sudo apt-get update && sudo apt-get install
[sudo] password for jas:

then it runs just fine, although it doesn't find any updates for me, and tells me 2 packages are not upgraded.

I'm stumped.
 
Old 07-23-2011, 12:17 PM   #2
4play
LQ Newbie
 
Registered: Oct 2003
Location: london
Distribution: Centos
Posts: 27

Rep: Reputation: 15
check what errors you are getting in /var/log/secure
 
Old 07-23-2011, 01:10 PM   #3
jdix123
LQ Newbie
 
Registered: Feb 2008
Posts: 17

Original Poster
Rep: Reputation: 0
Code:
jas@Evelyn 
~ $ sudo cat /var/log/secure
[sudo] password for jas: 
cat: /var/log/secure: No such file or directory
jas@Evelyn 
~ $ cd /var/log
jas@Evelyn 
/var/log $ ls
alternatives.log  dmesg.1.gz      lastlog               pycentral.log
apt               dmesg.2.gz      lpr.log               samba
aptitude          dmesg.3.gz      mail.err              syslog
auth.log          dmesg.4.gz      mail.info             syslog.1
boot              dpkg.log        mail.log              unattended-upgrades
btmp              exim4           mail.warn             user.log
ConsoleKit        faillog         messages              wicd
cups              fontconfig.log  mintppc9_install.log  wtmp
daemon.log        fsck            mintsystem.log        Xorg.0.log
debug             gdm             news                  Xorg.0.log.old
dmesg             installer       ntpstats
dmesg.0           kern.log        pm-powersave.log
 
Old 07-23-2011, 01:12 PM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
You would be looking for auth.log.
 
Old 07-23-2011, 01:21 PM   #5
jdix123
LQ Newbie
 
Registered: Feb 2008
Posts: 17

Original Poster
Rep: Reputation: 0
Code:
Jul 23 11:32:24 Evelyn su[4241]: pam_unix(su:auth): authentication failure; logname= uid=1000 euid=0 tty=/dev/pts/1 ruser=jas rhost=  user=root
Jul 23 11:32:26 Evelyn su[4241]: pam_authenticate: Authentication failure
Jul 23 11:32:26 Evelyn su[4241]: FAILED su for root by jas
Jul 23 11:32:26 Evelyn su[4241]: - /dev/pts/1 jas:root
Jul 23 11:32:30 Evelyn su[4248]: pam_unix(su:auth): conversation failed
Jul 23 11:32:30 Evelyn su[4248]: pam_unix(su:auth): auth could not identify password for [root]
Jul 23 11:32:30 Evelyn su[4248]: pam_authenticate: Authentication failure
Jul 23 11:32:30 Evelyn su[4248]: FAILED su for root by jas
Jul 23 11:32:30 Evelyn su[4248]: - /dev/pts/3 jas:root
Jul 23 11:34:07 Evelyn sudo:      jas : TTY=pts/0 ; PWD=/var/log ; USER=root ; COMMAND=/bin/cat user.log
I think this is the relevant section? I don't quite know what I'm looking at
 
Old 07-23-2011, 01:26 PM   #6
jdix123
LQ Newbie
 
Registered: Feb 2008
Posts: 17

Original Poster
Rep: Reputation: 0
I don't know if this is relevant, but as I was installing the base Debian Squeeze system, I did not input a root password. I left it blank, thinking this would activate sudo to my basic user password.

Am I mistaken? Is that what is happening here, it wants the root password instead of my user password?
 
Old 07-23-2011, 01:36 PM   #7
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by jdix123 View Post
I don't know if this is relevant, but as I was installing the base Debian Squeeze system, I did not input a root password. I left it blank, thinking this would activate sudo to my basic user password.

Am I mistaken? Is that what is happening here, it wants the root password instead of my user password?
Yes, it is asking for the root password.

What you need to do is to use the

passwd command to set a non-empty password the your root account.
 
Old 07-23-2011, 02:18 PM   #8
jdix123
LQ Newbie
 
Registered: Feb 2008
Posts: 17

Original Poster
Rep: Reputation: 0
why is it asking for root instead of user password?

I did use passwd and that appears to have solved it but it seems like a workaround instead of a fix.

Thanks for your help!
 
Old 07-23-2011, 03:15 PM   #9
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by jdix123 View Post
why is it asking for root instead of user password?

I did use passwd and that appears to have solved it but it seems like a workaround instead of a fix.

Thanks for your help!
If you would rather use your user password to launch a graphical application as root you can use
Code:
gksudo application
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lubuntu- Wireless works fine in LXDE, but not icewm or openbox FunkyPenguin Linux - Newbie 7 01-17-2011 06:11 PM
Can't connect to mysql via http, terminal works fine LarryFrigginWachs Linux - Server 1 08-17-2006 07:45 PM
won't work WITHOUT wep, works fine with....eh? exactly darrell256 Linux - Wireless Networking 4 08-02-2006 01:04 AM
su works but sudo doesn't work. magnum81 Ubuntu 2 04-22-2006 10:52 PM
cant work on terminals even though GUI works just fine! vishi_1982 Linux - Newbie 1 07-20-2004 02:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration