• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 825
  • Last Modified:

Linux system cannot utilize NIS usernames served by Microsoft SFU 3.5

Hello,

Background:
I have a system with Windows 2003 server installed on which I also installed Microsoft's SFU 3.5 (latest version).   I have set up NIS on the SFU server, and it is set up to serve out the passwd, group, and hosts parameters.

The Linux system has Red Hat Enterprise Workstation 3.0, with the latest updates.  After binding to the domain, I can see the passwd, group and hosts files from the SFU server:
----------------------------------------------------------------
root@cicero home]# ypwhich
sfusrvr.muos-dev.lmms.lmco.com
[root@cicero home]# ypcat passwd
drparmen:ABCD!efgh12345$67890:10000:10000::/home/drparmen:/bin/csh
sdavidov:ABCD!efgh12345$67890:10001:10000::/home/sdavidov:/bin/sh
donrpar:ABCD!efgh12345$67890:10002:10001::/home/donrpar:/bin/sh
[root@cicero home]# ypcat group
Domain Users::10000:sdavidov,drparmen
Domain Admins::10001:donrpar
[root@cicero home]# ypcat hosts
129.197.16.114 SFUSRVR sfusrvr.muos-dev.lmms.lmco.com        sfusrvr.lmms.lmco.com
129.197.16.114 SFUSRVR sfusrvr.muos-dev.lmms.lmco.com        sfusrvr.lmms.lmco.com
129.197.16.114 SFUSRVR sfusrvr.muos-dev.lmms.lmco.com        sfusrvr.lmms.lmco.com
129.197.163.25 cicero cicero.muos-dev.lmms.lmco.com        cicero.lmms.lmco.com
129.197.163.25 cicero cicero.muos-dev.lmms.lmco.com        cicero.lmms.lmco.com
129.197.163.25 cicero cicero.muos-dev.lmms.lmco.com        cicero.lmms.lmco.com
[root@cicero home]#
--------------------------------------------------
However, which I try to use the NIS passwd entries to, say, change ownership of a directory, it tells me the NIS user is invalid, as:
--------------------------------------------------
[root@cicero home]# ls -l
total 8
drwxr-x---   17 donp     users        4096 Apr  6 17:27 donp
drwxr-xr-x    2 root     root         4096 Apr  7 16:09 drparmen
[root@cicero home]# chown drparmen drparmen
chown: `drparmen': invalid user
[root@cicero home]#
--------------------------------------------------

Does anyone have any ideas about what is going on here?  I have checked and rechecked my settings  on the Win 2K3 and Linux systems, and also
combed the Web for some answers, but there appears to be nothing like this.

Thanks for any help!

"donpar"


0
donpar
Asked:
donpar
  • 2
1 Solution
 
jlevieCommented:
Does /etc/nsswitch.conf include nis in the list of resources for passwd, group, hosts, etc? For example:

passwd:    files nis
0
 
donparAuthor Commented:
Hello,

I think you're on to something--don't even remember looking at that file.   I'll check the nsswitch.conf file when I get to work in the morning...

Thanks,

donpar
0
 
donparAuthor Commented:

Hello,

That was the problem...  Edited the nsswitch.conf file to add nis to  passwd, group, etc. and the Windows users and Groups are now recognized as valid on the Linux system.  

(Now that nis is fixed, can look into an issue with permissions accessing an NFS mounted file system (from NFS server on Windows system).  I'll pose that as a separate question, though, once I find out more about what might be going on...)

Thanks for your help!

"donpar"
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now