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


  Search this Thread
Old 06-06-2005, 06:40 AM   #1
LQ Newbie
Registered: Nov 2004
Posts: 29

Rep: Reputation: 15
About sudo

Hi all,
I need to give full access for users in the sudo file

I tried so many times but no use

anyone can help me
Old 06-06-2005, 08:11 AM   #2
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
here is my sudo config.
You can change yours with the command "visudo"

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

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL) ALL

# Benutzer Gruppen Definitionen
User_Alias ROOT_USERS   =       USER1,USER2

# Kommando GRuppen Definitionen
Cmnd_Alias      ROOT_SHELL      = /bin/su

# Berechtigungs Definitionen
Substitiute USER1 and USER2 with the users who are allowed to get a root shell.
For security reasons this is not considered "best practise"
You should define some real policies and give the users only the access they really need.

This example hover is from a server on which a friend of mine and I both need root permission.

Now as USER1 do "sudo su" and you will be prompted for the password of USER1.

Simple, uh?

Happy hacking.
Old 06-13-2005, 06:58 AM   #3
LQ Newbie
Registered: Nov 2004
Posts: 29

Original Poster
Rep: Reputation: 15
Sudo Problem


what ever you send that has tried in my system
User_Alias ROOT_USERS = ranga
Cmnd_Alias ROOT_SHELL = /bin/su

After this i logon on the usermode

its not login

if you don,t mind you explain clearly

In which site documentation is avaliable
Old 06-13-2005, 01:53 PM   #4
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
You need to be more precice in what you are trying to do.

"After this i logon on the usermode its not login "

is not an adequate problem discription.
I don't know your user mode, "it's not login" does not say _how_ you tried to login, nor does it state what exactly failed.

A better description would be like:
I made the changes to the sudo config as root like this
After I safed my changes the new configuration was accpeted by sudo 
(It does print this in the shell after you close the editor)

Then I logged into a terminal (or with ssh) as a normal user.
Then, as this user I tried 
"sudo su"
Which prompted for a password.
I typed in my root password, but it says "wrong password"
That kind of description helps others to understand what you have been trying to do, and at what point axactly things went wrong.

My example is easily fixed: after doing "sudo su" you are prompted for a password, but this is not the root password, but your user account password.
(that's what sudo is for)

So please explain your self better.

- What do you want to do?
- (maybe)answer: (I want to give my users root access, without them having to know the root password)
- How did you try it?
- (maybe)answer: (edited the sudo config with visudo, you errors were repoerted)
- then what did you type
- (sudo su)
- what went wrong? what was the exact message the system gave you? what had you expected the message would be?

That would certainly help.

Last edited by huibert.alblas; 06-13-2005 at 01:57 PM.


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
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 04:20 PM
su and sudo muman Linux - Security 9 12-30-2004 11:55 AM
sudo pk21 Linux - Newbie 7 10-07-2003 08:53 AM
need help with sudo mla Linux - Software 4 10-02-2003 12:05 PM
sudo? nabil Linux - Security 1 02-12-2001 02:18 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:41 PM.

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