LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-06-2010, 08:38 AM   #1
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 657

Rep: Reputation: 40
Uppercase usernames in /etc/sudoers triggers warnings


Hello all.


We're syncing users from Active Directory over to our linux LDAP server (Red Hat Directory Server). The user names on the AD side are all written in uppcase letters, which is the company policy.

The uppername usernames causes problems when setting up /etc/sudoers, since uppercase words are interpreted as aliases. For example, if I add user KENNETH to a User_Alias (i.e. something like "User_Alias ADMINS = KENNETH"), I will get a warning from visudo which expects KENNETH to be an alias and thus not a username. Despite the warning, sudo does seem to work correctly. But is there a way to tell visudo or sudo that usernames are uppercase, and should not trigger a warning? Or are there other ways to go about this sort of thing?


Best regards,
kenneho

PS. I posted this message on the red hat mailing list, but are posting it here too since I didn't get any replies.
 
Old 01-06-2010, 09:15 AM   #2
kschmitt
Member
 
Registered: Jul 2009
Location: Chicago Suburbs
Distribution: Crux, CentOS, RHEL, Ubuntu
Posts: 96

Rep: Reputation: 23
When pulling data via "net rpc vampire" to a samba/ldap configuration I know there's a way you can force the posix username to be lowercase, while leaving the samba username alone. I know a full AD setup is different, but I think there's still separate (or the ability to be separate) entries for the windows and the posix username.

Obviously it differs greatly by schema, and I have no idea what AD's looks like, but poke it with ldapsearch, something may jump out at you.

Good luck!
 
Old 01-07-2010, 09:00 AM   #3
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 657

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by kschmitt View Post
When pulling data via "net rpc vampire" to a samba/ldap configuration I know there's a way you can force the posix username to be lowercase, while leaving the samba username alone. I know a full AD setup is different, but I think there's still separate (or the ability to be separate) entries for the windows and the posix username.

Obviously it differs greatly by schema, and I have no idea what AD's looks like, but poke it with ldapsearch, something may jump out at you.

Good luck!
Thanks for the tip - I'll check and see if maybe I can separate the entries, or maybe see if it's possible to make changes to the entry on our RHDS without having it synced back to AD.
 
  


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
Parallel port drum triggers danga1993 Linux - Software 11 06-25-2006 10:54 AM
only Samba triggers Internet connection burkie Linux - Networking 4 01-20-2006 02:11 PM
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
Mouse triggers? carlosinfl Linux - Hardware 0 01-31-2005 02:18 AM
perl & oracle triggers champ Programming 2 07-12-2004 08:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

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