LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-10-2004, 05:44 AM   #1
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Rep: Reputation: 33
root password doesn't work when I use sudo ...


I can use the root password when I type su and then fill out the root password but when I type sudo less /var/log/messages for example, it asks for a password I try 3 times and it says password incorrect, ...

That's kinda strange isn't it?

Thx
Wannes
 
Old 11-10-2004, 05:52 AM   #2
n0sr
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255

Rep: Reputation: 34
Try logging in as root and using the visudo command

This will let you put your user id into the sudoers file.

That should fix your problem.
 
Old 11-10-2004, 05:54 AM   #3
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Original Poster
Rep: Reputation: 33
if I understand it

I am going to say who can access the root privileges from the sudo command
 
Old 11-10-2004, 05:55 AM   #4
n0sr
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255

Rep: Reputation: 34
That's exactly right. You can add any user that you want to have access, and the type of acces they can have.
 
Old 11-10-2004, 06:03 AM   #5
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Original Poster
Rep: Reputation: 33
the sudoers manpage

I'm reading it but it's some kind of too hard to read for me, I'm a newbie and my mother language is not English so, ... I'm gonna try to find a howto on the Internet. Anyway many thanx.


Wannes
 
Old 11-10-2004, 02:50 PM   #6
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
wannessmet, the password that sudo needs is the user's password, not root's password. That's the whole point of using sudo: You don't have to give the root password to users. So if you're logged in as user "wannessmet" and you execute the sudo command, you would supply the password required for "wannessmet", not for "root".

Of course, you first have to setup the sudoers file by using the visudo command (as root).
 
  


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
alsa work with root or sudo but not user walterbyrd Linux - Hardware 5 10-24-2005 01:53 PM
Running a script as root with sudo without entering the user password kloss Linux - General 8 10-10-2005 11:39 AM
root password doesn't work SlowMindThinkin Linux - Newbie 9 04-17-2005 11:19 PM
KDM root password won't work linda Slackware 6 08-12-2004 04:58 PM
How do I put root Password from code in sudo ? rhawi Programming 8 06-18-2004 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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