Visit The New, Modern Unix Linux Community


NFS Share - chown problem


 
Thread Tools Search this Thread
Operating Systems Solaris NFS Share - chown problem
# 1  
NFS Share - chown problem

Hi all,

I had share the server Gemini /u10 to the server Centaurus.
/etc/dfs/dfstab
Code:
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 me oracle:nobody in Server Centaurus.

Code:
Server Gemini
drwxr-xr-x   4 oracle   dba          512 Aug  3 08:26 u10

/etc/group
dba:*:101:root,oracle,ora10g


Code:
Server Centaurus
drwxr-xr-x   4 oracle   nobody       512 Aug  3 08:26 u10

etc/group
dba::101:oracle,ora10g,mysql,lss

How i need to do,to change the owner become oracle:dba for /u10 in server Centaurus?
# 2  
Please checkthe GID of the dba group in both the servers.

My guess is that the "nobody" user in centauras is having the same GID of the "dba" user in Gemini.

Usually group permissions are set based on the name maching the GID of the NFS share directory on the client side.

If this is the case, simply you can change the GID in the NFS client in /etc/group

Regards
Ramkumar
# 3  
Thanks for ur reply.
below is the both /etc/group

Gemini
Code:
root::0:
other::1:root
bin::2:root,daemon
sys::3:root,bin,adm
adm::4:root,daemon,pongla
uucp::5:root
mail::6:root
tty::7:root,adm
lp::8:root,adm
nuucp::9:root
staff::10:
daemon::12:root
sysadmin::14:pongla
smmsp::25:
gdm::50:
webservd::80:
postgres::90:
nobody::60001:
noaccess::60002:
nogroup::65534:
sasl::100:
dovecot::104:
nagios::102:
nagioscm::103:nagios
dba:*:101:root,oracle,ora10g

Centaurus
Code:
root::0:
other::1:root
bin::2:root,daemon
sys::3:root,bin,adm
adm::4:root,daemon
uucp::5:root
mail::6:root
tty::7:root,adm
lp::8:root,adm
nuucp::9:root
staff::10:
daemon::12:root
sysadmin::14:
nobody::60001:
noaccess::60002:
nogroup::65534:
smmsp::25:
gdm::50:
webservd::80:
postgres::90:
users::100:
onsite::105:
softdev::102:lss,dss,netsys,css,scss,amts,packout,dcm,arch,hsa,eco,ecoman,can
guest::102:devp,guest
oper::103:coherent,brtv,oracle
dba::101:oracle,ora10g,mysql,lss
ftp::30000:ftp,coherent,brtv
sib::60090:tibco,patrol
systems::60095:harvest

The nobody have the different GID.. any idea?

---------- Post updated 08-05-09 at 08:25 AM ---------- Previous update was 08-04-09 at 11:55 AM ----------

Hi all , the problem solve
solution: unshare the filesystem, and redo again the prosess to share the filesystem.
# 4  
Are you using any naming services? Please post your /etc/nsswitch.conf from both machines.
# 5  
Centaurus and geminy are likely on different NFSv4 domains, probably because they have a different DNS domain defined in /etc/resolv.conf. In such case, groups ids are ignored as they might not match.

You can force the domain on both servers by setting NFSMAPID_DOMAIN in /etc/default/nfs.

Search NFSMAPID_DOMAIN in "man nfs" for details.
# 6  
Quote:
Originally Posted by jlliagre
Centaurus and geminy are likely on different NFSv4 domains, probably because they have a different DNS domain defined in /etc/resolv.conf. In such case, groups ids are ignored as they might not match.

You can force the domain on both servers by setting NFSMAPID_DOMAIN in /etc/default/nfs.

Search NFSMAPID_DOMAIN in "man nfs" for details.
Both the resolv.conf have the same domain.Smilie
# 7  
These boxes are very likely on different NFSv4 domains. That would explain the group being ignored. Don't focus on resolv.conf and fix your configuration if you want this to be corrected.

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #38
Difficulty: Easy
The standard port number for SMTP applications is 25.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Mount NFS Share On NFS Client via bash script.

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

2. Red Hat

NFS share and groups

I am having an issue with getting the proper group settings on NFS-shared directories. NFS server, NFServe, nfs-shares hundreds of project directories...running Solaris 10 latest patches/updates. SAS server, SAServe, statistical analysis server running on RedHat 7 with latest kernel/patches/etc.... (14 Replies)
Discussion started by: cjhilinski
14 Replies

3. UNIX for Dummies Questions & Answers

Permissions for NFS share

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

4. Red Hat

Problem about NFS to change the share folder at several servers.

All, I re-wrote our scripts to speed-up the compiling time, original time is about 1hrs. now dispatch the sub task to different servers through SSH. Now my question is that: If dispatch these tasks into the current server, there is no errors during compiling process. If dispatch these tasks... (0 Replies)
Discussion started by: fduan001
0 Replies

5. Red Hat

NFS share

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

6. UNIX for Advanced & Expert Users

du and df do not match on NFS share

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

7. Web Development

NFS Share & Mount problem

Hi, I want to mount an NFS Shared folder on Windows XP to vxWorks. There doesnt seem to be a problem with the sharing. Now, when i try to mount the directory onto vxWorks (it runs on a Tumbleweed card), using a mount script (.sh), the following is the print i see on Tera Term: hostAdd... (0 Replies)
Discussion started by: chinmayzen
0 Replies

8. IP Networking

Problem Mounting NFS share

I have one machine "The server" ip: 192.168.1.1, it runs ubu 8.04(LTS) and - I have a folder (/shareme) that I want to share with other linux machines on my LAN. - The server runs NFS server and common and portmap and so do the other machines on my LAN. - The server has the export file with the... (2 Replies)
Discussion started by: fcron
2 Replies

9. Red Hat

NFS share error

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

10. Solaris

NFS share options

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

Featured Tech Videos