LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-06-2005, 05:40 AM   #1
alnreddy
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, 07:11 AM   #2
huibert.alblas
Member
 
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"

Code:
# /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
ROOT_USERS      ALL=ROOT_SHELL
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, 05:58 AM   #3
alnreddy
LQ Newbie
 
Registered: Nov 2004
Posts: 29

Original Poster
Rep: Reputation: 15
Sudo Problem

Hi,

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

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, 12:53 PM   #4
huibert.alblas
Member
 
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:
Code:
I made the changes to the sudo config as root like this
"visudo"
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 12:57 PM.
 
  


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


All times are GMT -5. The time now is 01:29 PM.

Main Menu
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