LinuxQuestions.org
Review your favorite Linux distribution.
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-16-2009, 06:16 PM   #1
zrnaqvi
LQ Newbie
 
Registered: Nov 2009
Posts: 12

Rep: Reputation: 0
trouble setting up sudo to allow su - user


I have run into a problem setting up sudo on a few systems to allow a set number of user to su - to some other users. Here is the relevant section in the sudoers file

User_Alias NGQA= %group-1
Host_Alias NGQA_SYS= ALL
Runas_Alias NGQA_IDS = user-1
Cmnd_Alias NGQA_CMD = /bin/bash,/bin/sh,/bin/csh,/bin/ksh
NGQA NGQA_SYS = (NGQA_IDS) NOPASSWD: NGQA_CMD


essentially this will allow all members of group-1 to execute the listed shells as user-1

The setup works perfectly on one box and not the other. I know it is a slightly vague question as there could be a lot of differences between teh boxes but they were build from the same kickstart image so they should be very similar. But I'm new to linux as well as sudo and having some hard time tracking down errors. Is there a truss equivalent on linux?
 
Old 11-16-2009, 06:42 PM   #2
zrnaqvi
LQ Newbie
 
Registered: Nov 2009
Posts: 12

Original Poster
Rep: Reputation: 0
looks like I solved the problem myself. On one set of servers the login shell was setup as /sbin/nologin
 
  


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
Trouble setting up User Private Group(UPG) in RHEL5 Metropolis Linux - General 13 06-30-2009 05:00 PM
unchecked link between pc user and sudo user on Mint5 how do I get it back,stop laugh Fred Caro Linux - Newbie 2 04-22-2009 08:36 PM
Gconf-editor settings not sticking for root, sudo user, or user when run sandaili Fedora 1 07-19-2008 08:31 AM
I'm having trouble setting up a new user, especially the password donJulio Slackware 8 08-09-2006 02:59 AM
a little trouble with sudo vardhan Linux - Newbie 1 11-30-2005 09:55 PM


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

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