03-11-2015
Here is a follow-up for someone who may someday come down this path. RedHat 7 does not used idmapd so there is no idmap.conf. It uses sssd, which has a parameter ldap_id_mapping which controls how it gets uid/gid from the AD server. When ldap_id_mapping = true in sssd.conf, the RH machine will use the SID concocted by Windows. When ldap_id_mapping=false, the linux box will use the uid/gid that is contained in each user's individual AD configuration panel under the Unix Attributes tab. If you had, for example, existing local users and wanted to move them to AD, you would create their accounts in AD and use the same uid/gids in the Unix Attributes tab. So local user Joe with UID 10001 on a linux box would be set up as AD UID 10001 in AD. RedHat 7 documentation says it doesn't matter what the name is...one could be JoeDoe and the other could be Joe...all that matters is that the uid/gid match. This doesn't seem to be completely true, however, since I have group acorn (gid225) on Unix and acornx (gid225) on AD, and the directory ends up with the group "nobody." Unfortunately, Linux doesn't have a way of finding out what the two machines said to each other when they talked about gid 225 and how they determined that they weren't a match so the Linux side would substitute "nobody" for acorn. As Neil Young says, "You pay for this and they give you that."
---------- Post updated Mar 11th, 2015 at 10:24 AM ---------- Previous update was Mar 10th, 2015 at 04:21 PM ----------
Final resolution. NFS client must specify nfsvers=3 as mount option either on command line for mount command (e.g. mount -t nfs -o nfsvers=3 nfsserver:/share /data)
or in fstab.
This User Gave Thanks to cjhilinski For This Post:
10 More Discussions You Might Find Interesting
1. Solaris
Hello,
I'm doing a Perl script to parse the dfstab file and find dangerous configurations (rw to everyone, root access, etc). My question is, if I have a share command like this:
share -F nfs -o ro=chrome:copper:zinc,root=chrome /usr/man
it means that the /usr/man is "rw" to everyone... (6 Replies)
Discussion started by: psimoes79
6 Replies
2. Red Hat
I got a problem while creating files on a NFS mounted share in a RHEL box. That is when I create an empty file, this is what appears on the screen
###############################################
E325: ATTENTION
Found a swap file by the name ".test.swp"
owned by: jsmith dated: Tue... (2 Replies)
Discussion started by: rcmrulzz
2 Replies
3. Linux
I´m using LDAP for groups and NFS for home dirs. My problem is as follows:
I only have a few groups, so it's not the problem everyone else had. When I've mounted a disk over NFS, I need to have my primary group in order to read in the groups I'm a member of. Secondary groups is not working.
... (0 Replies)
Discussion started by: velmont
0 Replies
4. Solaris
Hi all,
I had share the server Gemini /u10 to the server Centaurus.
/etc/dfs/dfstab
share -F nfs -o root=centaurus /u10
My problem is:
in the server Gemini the the owner for /U10 is oracle:dba
but when in the server Centaurus, I am not able to change the owner become oracle:dba, it show... (8 Replies)
Discussion started by: SmartAntz
8 Replies
5. UNIX for Advanced & Expert Users
Here is the scenario...
NFS share that is accessed every few minutes by approx 70 systems (AIX 5.3/6.1). Filesystem space is being eaten up rapidly according to df however du numbers really never change. lsof and fuser cannot see any unlinked files on either the NFS server or remote... (3 Replies)
Discussion started by: masterpengu
3 Replies
6. Solaris
Can any one tell me how to add a virtual disk from NFS share in Ldom .. i have one share /VMshare/boot.img file shared/exported from one server but i do now know how to add nfs based vdsdev as it gives primary domain cannot validate the disk. (1 Reply)
Discussion started by: fugitive
1 Replies
7. Red Hat
I am setup a samba share server which is authenticating from Active Directory.
I am able to access the share with AD user but not able to access when group defined in "valid users" parameters.
below are the steps i performed.
In smb.conf
workgroup = QASLABS
password server =... (3 Replies)
Discussion started by: sunnysthakur
3 Replies
8. Red Hat
Hi,
I have an NFS server, i want to mount that nfs share which is having around 500GB to my client system. But my client system doesnt have any free space, is it possible to mount that nfs share in my client.
Regards,
Mastan (1 Reply)
Discussion started by: mastansaheb
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have created a NFS share in Solaris 10 server1 and mounted it on solaris 10 server 2.But I want to change owner of the files from nobody to a particular user in client.
Which command should I use. I have tried the following but it doesn't allow to change permissions in the server2 as... (0 Replies)
Discussion started by: Rossdba
0 Replies
10. Shell Programming and Scripting
I need a help of good people with effective bash script to mount nfs shared,
By the way I did the searches, since i haven't found that someone wrote a script like this in the past, I'm sure it will serve more people.
The scenario as follow:
An NFS Client with Daily CRON , running bash script... (4 Replies)
Discussion started by: Brian.t
4 Replies
LEARN ABOUT OPENSOLARIS
nfs_selinux
nfs_selinux(8) NFS SELinux Policy documentation nfs_selinux(8)
NAME
nfs_selinux - Security Enhanced Linux Policy for NFS
DESCRIPTION
Security Enhanced Linux secures the NFS server via flexible mandatory access control.
BOOLEANS
SELinux policy is customizable based on the least level of access required. SELinux can be configured to not allow NFS to share files. If
you want to share NFS partitions, and only allow read-only access to those NFS partitions, turn the nfs_export_all_ro boolean on:
setsebool -P nfs_export_all_ro 1
If you want to share files read/write you must set the nfs_export_all_rw boolean.
setsebool -P nfs_export_all_rw 1
These booleans are not required when files to be shared are labeled with the public_content_t or public_content_rw_t types. NFS can share
files labeled with the public_content_t or public_content_rw_t types even if the nfs_export_all_ro and nfs_export_all_rw booleans are off.
If you want to use a remote NFS server for the home directories on this machine, you must set the use_nfs_home_dirs boolean:
setsebool -P use_nfs_home_dirs 1
system-config-selinux is a GUI tool available to customize SELinux policy settings.
AUTHOR
This manual page was written by Dan Walsh <dwalsh@redhat.com>.
SEE ALSO
selinux(8), chcon(1), setsebool(8)
dwalsh@redhat.com 9 Feb 2009 nfs_selinux(8)