LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 02-10-2007, 01:21 AM   #1
Peacepunk
Member
 
Registered: Apr 2006
Location: Cambodia
Distribution: Slackware 12.2 &... VirtualBox!
Posts: 51

Rep: Reputation: 16
SuSE93 Root password rejected from normal user mode (No Sudo, No YaST)


Hi Community

I've seen this on the formum, but none help:

None of the users can "sudo" or access admin privileges on my SuSE93 box, when prompt for password it's stated as "incorrect"

-I can still log as root
-I changed the root password

-All users (3) face the same issue.
-Main User is set to group Wheel (thsi doesn't look to dangerous to edit)

At some point on these forums, I found advice on the need to do "visudo" (edit my sudoers' profile specs). It looks frightening, I don't wan't to play with that fiel without a bit more assistance.

-Name of my main user: "jph"
-Name of restricted users (no admin, no root shell, but dvdrom mount, scanning & printing ok): "moufflets";"poutou"

-Actual content of my sudoers:

Quote:
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults specification
Defaults targetpw # ask for the password of the target user i.e. root
%users ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'!

# Runas alias specification

# User privilege specification
root ALL=(ALL) ALL

# Uncomment to allow people in group wheel to run all commands
%wheel ALL=(ALL) ALL

# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL

# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
~
~
~
~
~
~
1,1 Al
Word of advice ?

Thanks

Jean-Philippe.

Last edited by Peacepunk; 02-10-2007 at 02:14 AM.
 
Old 02-10-2007, 05:57 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
%wheel ALL=(ALL) ALL

If you uncomment this line, then members of group wheel can use sudo.
You need to include the full pathname when using sudo. This is a precaution in case someone has inserted an identically named program in your PATH.

For example: "sudo /sbin/route" instead of "sudo route".

Members of the wheel group don't magically get extra access. It is a convenient standardized name for the group that is allowed administrative access when configured. In other words, it's the group name in /etc/sudoers that is assumed you want to use.
 
Old 02-11-2007, 06:34 PM   #3
Peacepunk
Member
 
Registered: Apr 2006
Location: Cambodia
Distribution: Slackware 12.2 &... VirtualBox!
Posts: 51

Original Poster
Rep: Reputation: 16
Hmm...

I lost the ability to sudo with my latest mods

Code:
sudo /sbin/YaST2 returns

sudo: must be setuid root
According to MAN pages, I tried to add my normal user to do it all (Don't like that, but...)

Fail again, can't su, can't sudo, can't do admin things either

Mod lines in sudoers:

Code:
# User alias specification
User_Alias     FULLTIMERS = jph


# Cmnd alias specification

# Defaults specification
Defaults targetpw    # ask for the password of the target user i.e. root
%users ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'!

# Runas alias specification

# User privilege specification
root	ALL=(ALL) ALL

# Uncomment to allow people in group wheel to run all commands
%wheel	ALL=(ALL)	ALL
FULLTIMERS     ALL=NOPASSWD: ALL

# Same thing without a password
# %wheel	ALL=(ALL)	NOPASSWD: ALL
???

Jean-Philippe
 
  


Reply

Tags
password, root, sudo



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
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
Slackware's Single User Mode requires root password too? StevenO Slackware 2 01-25-2006 08:28 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 when I use sudo ... bucovaina78 Linux - Security 5 11-10-2004 02:50 PM
Super User mode, my root password doesn't work? kko88 Linux - Newbie 8 05-20-2003 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 11:08 AM.

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