LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-04-2015, 10:24 AM   #1
azamsab
LQ Newbie
 
Registered: Nov 2014
Posts: 4

Rep: Reputation: Disabled
Can we ignore case for users in Sudoers file


Hi Linux gurus, we are using centralized Sudoers file for all our RHEL servers, we have assigned lower cases for users in sudoers file. But on few servers users are created using both upper and lower case letters and on those servers the sudo doesn't workl for them, Is there way we can ignore the cases in sudoers file to avoid this kind of issue? Following is an example:

host01:/# id markt
uid=1008(MarkT) gid=1(staff) groups=2209(informix)

host01:/# grep markt /etc/sudoers
User_Alias UA_UNIXTEAM = root,kevinge,rtomines,markt,tammon,amohamme,adsharma

host01:/# sudo -l -U markt
User MarkT is not allowed to run sudo on txcomregappqa51.
 
Old 02-04-2015, 08:23 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,346
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
I have not tested this, but, as Linux is case sensitive, I don't think so. The best course of action would be to educate your users, but I know that that can be a thankless task.

You may find something useful in this document (PDF) that describes how to use NAME_REGEX to enforce rules for user names. I can't test this, but I hope it helps.
 
  


Reply



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
Filtering of Users in Sudoers File Vineeth Zacharia Linux - Newbie 1 11-07-2013 07:19 PM
[SOLVED] Help Urgent : Filtering of Users in Sudoers File unSpawn Linux - Kernel 7 11-07-2013 04:06 PM
[SOLVED] want nemo file manager to ignore case Greenfuse Linux - Desktop 2 08-03-2013 07:24 AM
Allow users to chmod certain directories via sudoers file johnmccarthy Linux - General 18 02-22-2013 08:55 AM
[SOLVED] After modifying /etc/sudoers file, new users can not run specified commands mansour Linux - Newbie 15 04-13-2011 11:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:51 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