Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-13-2008, 05:55 AM   #1
Registered: Oct 2007
Location: Kuala Lumpur,Malaysia
Distribution: Debian Etch, OpenSuse
Posts: 132

Rep: Reputation: 17
/etc/sudoers problem

Hi guys, i have a problem

i have put tis in /etc/sudoers file
user1 ALL=NOPASSWD: /bin/su

this can make user1 can change to any users.
but i want user1 to change account to user2 only. How to do that.

Please help

Old 04-13-2008, 07:19 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
Try to be as explicit as you need to be
user1 ALL=NOPASSWD: /bin/su user2

Last edited by jschiwal; 04-13-2008 at 07:23 AM.


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
/etc/sudoers Setting Problem drpaudel Linux - Newbie 1 03-26-2008 11:29 AM
/etc/sudoers problem Braynid Linux - Newbie 4 10-21-2006 09:11 AM
I deleted /etc/sudoers and creates a new file call sudoers but now it doesnt for visu abefroman Linux - Software 1 11-10-2005 05:03 PM
Sudoers problem hinetvenkat Linux - Security 3 05-14-2005 11:47 AM
sudoers problem kzar Linux - General 5 12-09-2004 04:59 PM > Forums > Linux Forums > Linux - Newbie

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

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
Open Source Consulting | Domain Registration