Fixing nobody IDs and groups on mounted NAS shares.
1. Login to the server and become root.
$ sudo su -
2. Go to the nfs mount and list the content.
# cd /opt/app2/dump/
# ls -l
drwxr-xr-x 4 nobody nobody 4096 Sep 4 14:02 sasuser
drwxrwxrwx 3 nobody nobody 4096 Sep 8 11:40 retired
drwxr-xr-x 7 nobody nobody 4096 Sep 26 14:05 opsdata
3. Exit out off the nfs mount.
# cd /
4) Make the following change in a configuration file.
Change the domain from "localdomain" to "expanor.local".
# vi /etc/idmapd.conf
[General]
Verbosity = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
#Domain = localdomain
Domain = expanor.local
[Mapping]
Nobody-User = nobody
Nobody-Group = nobody
[Translation]
Method = nsswitch
5) Restart idmapd.
# /etc/init.d/rpcidmapd restart
Stopping RPC idmapd: [ OK ]
Starting RPC idmapd: [ OK ]
#
6. Remount the nfs share and veryfy the cotent.
# umount /opt/app2/dump/; mount /opt/app2/dump/
# cd /opt/app2/dump/
# ls -l
drwxr-xr-x 4 dbusr dbmgr 4096 Sep 4 14:02 sasuser
drwxrwxrwx 3 dbusr dbmgr 4096 Sep 8 11:40 retired
drwxr-xr-x 7 dbusr dbmgr 4096 Sep 26 14:05 opsdata
No comments:
Post a Comment