LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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, 07: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 07:02 AM.
 
Old 06-21-2004, 07:45 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
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, 04: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, 04: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, 04:46 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 12:00 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration