LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-15-2013, 06:29 PM   #1
devUnix
Member
 
Registered: Oct 2010
Posts: 606

Rep: Reputation: 59
Windows AD Account having UNIX Attributes Issues


There is a user account (Windows AD is in place for log-in to Red Hat Linux Servers) having UID 10133, as shown below

Code:
 [root@ric ~]# getent passwd fookming.soo
 fsoo:*:10133:10008:FookMing Soo:/home/fookming.soo:/bin/bash
but it is not showing as existing...

Code:
[root@ric ~]# getent passwd 10133
 <No Output>
 [root@ric ~]# getent group 10133
 <No Output>
However, the GID 10008 resolves to the following group:

Code:
[root@ric ~]# getent group 10008
 gsg-infra-netops:*:10008:fookming.soo,xyz.abc,and-so-on
to which the user is already added and hence the user should be able to access the server "ric".

But he is not able to log-in to it.


On another server where he is able to log-in, I found the followings:

Code:
[root@ny ~]# getent passwd fsoo
fsoo:*:10133:10008:FookMing Soo:/home/fookming.soo:/bin/bash

# getent passwd 10133
fsoo:*:10133:10008:FookMing Soo:/home/fookming.soo:/bin/bash

# getent group 10008
GSG-Infra-Netops:*:10008:........
His username (fsoo) is different there but the UID (10133) is the same.


However, the username fsoo and the associated UID 10133 do not exist on the server ric:

Code:
 [root@ric ~]# getent passwd 10133
 [root@ric ~]# getent passwd fsoo

 [root@ric ~]# getent passwd fookming.soo
 fsoo:*:10133:10008:FookMing Soo:/home/fookming.soo:/bin/bash
I got information from the service desk that they created the Windows AD credentials for this user and the other users belonging to the same group and that their usernames were changed later. The other users have not reported any issues, though.

Now the service desk is asking me if they should change the UID of the user. Would it not affect his directories / files on the other servers where he has access and done work on...?

I just noticed that the same GID / Group Name has different users on the two servers even though they are not local group accounts:

Code:
[root@ny ~]# getent group 10008
 GSG-Infra-Netops:*:10008:soonli.lim,selder,dmifsud,fsoo,kevin.hutchison
 [root@ny ~]# getent passwd fsoo
 fsoo:*:10133:10008:FookMing Soo:/home/fookming.soo:/bin/bash
 [root@ny ~]# grep -i gsg-infra-netops /etc/group
<no Output>
 =====================

 [root@ric ~]# getent group 10008
 gsg-infra-netops:*:10008:fookming.soo,jcook,rhuitenga,kmatlock
 [root@ric ~]# grep -i gsg-infra-netops /etc/group
 [root@ric ~]#
and also that the usernames are different for the same UID 10133 in question.

Last edited by devUnix; 11-15-2013 at 06:50 PM.
 
Old 11-18-2013, 02:42 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,345

Rep: Reputation: Disabled
You're right in that changing the UID would be a monumentally bad idea, as it would indeed cause any files currently belonging to the user to become inaccessible, or worse, end up being owned by another user.

It is possible that the username changes are what's causing the problem, possibly because old information is cached somewhere. However, this does not explain why the getent command returns nothing at all for certain UIDs on one of the servers.

How do you authenticate against AD? Samba/winbind? LDAP? What are the "passwd:" and "group:" entries in /etc/nsswitch.conf on the affected server?
 
1 members found this post helpful.
Old 11-19-2013, 04:55 PM   #3
devUnix
Member
 
Registered: Oct 2010
Posts: 606

Original Poster
Rep: Reputation: 59
Quote:
Originally Posted by Ser Olmy View Post

How do you authenticate against AD? Samba/winbind? LDAP? What are the "passwd:" and "group:" entries in /etc/nsswitch.conf on the affected server?

Here it is:

Code:
[root@ric ~]# egrep -i "passwd|group" /etc/nsswitch.conf
#passwd:    db files nisplus nis
#group:     db files nisplus nis
passwd:     files sss
group:      files sss
netgroup:   files sss

I think the authentication method is PAM:

Code:
Nov 19 17:53:30 ric sshd[21797]: pam_unix(sshd:session): session opened for user devunix by (uid=0)

Last edited by devUnix; 11-19-2013 at 04:57 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
AD Unix Attributes and Linux Fedora creating /home/user rgto Linux - Server 1 09-28-2012 03:15 AM
server 2003 Unix attributes zerocool22 Linux - Server 18 05-06-2008 08:16 AM
Get Windows advanced attributes in Linux mulciber Programming 2 05-19-2005 12:44 PM
unix file attributes - windows exploder k1mgy Linux - Networking 1 01-13-2005 02:29 PM
What file are the Windows Attributes stored in? francisjk Linux - General 3 09-23-2002 09:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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