LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-21-2004, 06:01 AM   #1
drigz
Member
 
Registered: Apr 2004
Distribution: Gentoo ~x86
Posts: 407

Rep: Reputation: 30
sudo problem


sudo thinks my root password is wrong:
Code:
drigz@ayro:~$ head -n 1 /etc/shadow
head: cannot open `/etc/shadow' for reading: Permission denied
drigz@ayro:~$ sudo head -n 1 /etc/shadow

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these two things:

        #1) Respect the privacy of others.
        #2) Think before you type.

Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
sudo: 2 incorrect password attempts
drigz@ayro:~$ su
Password:
root@ayro:/home/drigz# head -n 1 /etc/shadow
root:$1$TfSYIi2Q$b4T4v/NNATwGDh667Na4O/:12589:0:::::
root@ayro:/home/drigz# sudo head -n 1 /etc/shadow
root:$1$TfSYIi2Q$b4T4v/NNATwGDh667Na4O/:12589:0:::::
I'm getting the password right, so don't ask that

This is a problem because if I want to change do stuff from gnome system monitor, i have to open a console, su, then run gnome-system-monitor. adn this means there is a terminal open. why is this?

EDIT: I chose head -n 1 /etc/shadow as it was the first thing I though of that you can't do as anyone but root. Crack my root password if you really want.

Last edited by drigz; 06-21-2004 at 06:02 AM.
 
Old 06-21-2004, 06:45 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Well, did you actually add anyone or groups with particular access in your /etc/sudoers file? And its not root's password that is used when using sudo.
 
Old 06-21-2004, 03:41 PM   #3
drigz
Member
 
Registered: Apr 2004
Distribution: Gentoo ~x86
Posts: 407

Original Poster
Rep: Reputation: 30
I added:
%user ALL=(ALL) NOPASSWD: ALL
to my /etc/sudoers file - what password should I use now? I tried no passwd but it didn't work:
drigz@ayro:~$ sudo touch /root/test

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these two things:

#1) Respect the privacy of others.
#2) Think before you type.

Password:
drigz@ayro:~$ su
Password:
root@ayro:/home/drigz# ls /root
Desktop loadlin16c.txt
TransGaming_Drive loadlin16c.zip
amsn-0.91-i386-1plw.tgz mail
amsn_received minicom.log
dropline-installer-2.4.7-i686-1dl.tgz swaret-1.6.2-noarch-1.tgz

note absense of test.
 
Old 06-21-2004, 03:45 PM   #4
drigz
Member
 
Registered: Apr 2004
Distribution: Gentoo ~x86
Posts: 407

Original Poster
Rep: Reputation: 30
ok got it (wasn't using visudo...) now sudo works. however, gnome-system-monitor still cant change priorities...
 
Old 06-21-2004, 03:46 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
If it prompts for a password it should be your users
OWN password ...


Do a sudo -l to see which commands the current
user is allowed.


Cheers,
Tink
 
  


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
FC3 problem with sudo fiservguy Fedora 4 01-25-2012 05:38 PM
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 03:20 PM
sudo permissions problem cuto19 Ubuntu 8 11-30-2005 11:50 PM
Problem with sudo SwannAnderson Linux - Newbie 5 10-03-2005 07:10 PM
Problem with sudo punx120 Linux - Software 0 05-08-2004 10:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:22 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