1827473 Members
1751 Online
109965 Solutions
New Discussion

Re: NFS Permission Issue

 
Mousa55
Super Advisor

NFS Permission Issue

Hi,

 

i need to create shared filesystem between two HP-UX servers 11.31 with size of 2 TB.

my questions is

This shared directory should be accessible by oracle user (rwx) on server host and apps user (rwx) on client host.


How to give shared filesystem rwx permission ?

 

And i know when i share filesystem from server A to server B, there will be a matching process by uid and gid in /etc/passwd and /etc/group respectively. i can change the ownership on server A for oracle user, but on server B how to give apps user full access rwx to shared filesystem ?

Server A : uid=111(dsadm) gid=107(dstage)
Server B : uid=110(wasadmin) gid=106(wasgroup) groups=107(mqm)

Thanks

15 REPLIES 15
Mousa55
Super Advisor

Re: NFS Permission Issue

Hi,

 

Please your support

 

Thanks

Steven E. Protter
Exalted Contributor

Re: NFS Permission Issue

Shalom,

apps user is in the sys group. oracle user is in the adm group.

That is problematic.

Oracle guides generally recommend the database binary owner (oracle) and the application binary user (in this case apps) be in the same group.

I generally have a group called dba for both.

Then chmod g+rwx <directory name>

This should get you around the difficulty.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dennis Handly
Acclaimed Contributor

Re: NFS Permission Issue

>This shared directory should be accessible by oracle user (rwx) on server host and apps user (rwx) on client host.

 

The way to solve this is to make it accessible by both on the host and then on the client.  Either with groups or by ACLs (which NFS may not support?).


Mousa55
Super Advisor

Re: NFS Permission Issue

Hi,

the user id and group id above it's just example. now this below correct id on both server.

Server A : uid=111(dsadm) gid=107(dstage)
Server B : uid=110(wasadmin) gid=106(wasgroup) groups=107(mqm)

I want to share file system from server A to server B with rw permission How i can do it that 11.31 ?

 

Then how to give the dsadm user on server A full access on the shared filesystem and to give wasadmin user on server B full access to shared filesystem ?

This only my two questions.

Thanks

Mousa55
Super Advisor

Re: NFS Permission Issue

Hi,

 

Please i still waiting your answer.

 

Thanks

V. Nyga
Honored Contributor

Re: NFS Permission Issue

Hi,

on server define oracle user as owner. And group dstage as group owner (check 'man chown' 'man chgrp').
Give owner and group rwx permissions (check 'man chmod').
Export shared filesystem as writeable for this group (check 'man exports'), read also what's /etc/exports for!
Mount it at the client as writeable (option rw) - check 'man mount' - read also 'man fstab' what`s /etc/fstab for.

With appsuser in the same group there should be no problem. If you get any error message, please post it here.

HTH
V.
*** Say 'Thanks' with Kudos ***
V. Nyga
Honored Contributor

Re: NFS Permission Issue

>Please i still waiting your answer.
Are you admin?
Do you know what you're doing?

Sorry, don't want to offend you, but we still don't know what is your problem.
Most parts of this you should be able to do while you're sleeping ....
*** Say 'Thanks' with Kudos ***
V. Nyga
Honored Contributor

Re: NFS Permission Issue

>Dennis: Either with groups or by ACLs (which NFS may not support?).

Oh yes - obviously NFS has to run:

nfs-server at server side, nfs-client at client side.

Is it running at your systems?

*** Say 'Thanks' with Kudos ***
Mousa55
Super Advisor

Re: NFS Permission Issue

Hi,

i don't want to change any group on any server, if is there any way to make the shared file system as following

 

On Server A

# bdf
/dev/vg015/lvol15 2097152  952547 1073156   47% /mount1
# ll -d

drwxrwxrwx  17 dsadm        dstage           1024 Apr  6 10:55 /mount1

 

On Server B

# bdf

serverA:/dev/vg015/lvol15 2097152  952547 1073156   47% /mount2

# ll -d

drwxrwxrwx  17  wasadmin        wasgroup           1024 Apr  6 10:55 /mount2

Thanks for your support

V. Nyga
Honored Contributor

Re: NFS Permission Issue

You have write access for aynboy (world rwx) - so that should work - what's your problem?
Any error message?
*** Say 'Thanks' with Kudos ***
Mousa55
Super Advisor

Re: NFS Permission Issue

Hi,

i still not starting to share filesystem, i want to know if i can share filesystem from server A to server B with different ownership and group as following


Example

 

On Server A

# bdf
/dev/vg015/lvol15 2097152  952547 1073156   47% /mount1
# ll -d

drwxrwxrwx  17 dsadm        dstage           1024 Apr  6 10:55 /mount1

On Server B

# bdf

serverA:/dev/vg015/lvol15 2097152  952547 1073156   47% /mount2

# ll -d

drwxrwxrwx  17  wasadmin        wasgroup           1024 Apr  6 10:55 /mount2

becuase i know when you try to share some filesystem on any server it's will make a match process between the uid and gid, for that you see the ownership and group it's different about the local server except on one case if the uid and gid are same on both server.

but on my case i want the dsadm user and dstage group it's owner of the local filesystem, and the wasadmin user , wasgroup group it's owner of the shared filesystem.

 

This is my story :smileyvery-happy: 

 

Thanks

Mousa55
Super Advisor

Re: NFS Permission Issue

Hi,

i still not starting to share filesystem, i want to know if i can share filesystem from server A to server B with different ownership and group as following


Example

 

On Server A

# bdf
/dev/vg015/lvol15 2097152  952547 1073156   47% /mount1
# ll -d

drwxrwxrwx  17 dsadm        dstage           1024 Apr  6 10:55 /mount1

On Server B

# bdf

serverA:/dev/vg015/lvol15 2097152  952547 1073156   47% /mount2

# ll -d

drwxrwxrwx  17  wasadmin        wasgroup           1024 Apr  6 10:55 /mount2

becuase i know when you try to share some filesystem on any server it's will make a match process between the uid and gid, for that you see the ownership and group it's different about the local server except on one case if the uid and gid are same on both server.

but on my case i want the dsadm user and dstage group it's owner of the local filesystem, and the wasadmin user , wasgroup group it's owner of the shared filesystem.

 

Thanks

Dennis Handly
Acclaimed Contributor

Re: NFS Permission Issue

>Ii want to know if I can share filesystem from server A to server B with different ownership and group as following

 

The short answer is no.  If you want two different users being able to access the files, then they have to be set up that way on the server.  And then the client can do the same thing.

Unless using something like Samba, CIFS?

 

On Server A
drwxrwxrwx  17 dsadm          dstage           1024 Apr  6 10:55 /mount1
On Server B
drwxrwxrwx  17  wasadmin  wasgroup       1024 Apr  6 10:55 /mount2

>I know when you try to share some filesystem on any server it's will make a match process between the uid and gid

 

Yes.


>but in my case I want the dsadm user and dstage group it's owner of the local filesystem, and the wasadmin user, wasgroup group it's owner of the shared filesystem.

 

You can't do that. You can give the illusion of that by changing the passwd file to make these users identical but that doesn't buy you much.

Mousa55
Super Advisor

Re: NFS Permission Issue

Hi Dennis,

 

>Unless using something like Samba, CIFS?

 

Thanks for your support, but how i can share file system between two HP-UX server by using CIFS With achieving what I want.

 

On Server A
drwxrwxrwx  17 dsadm          dstage           1024 Apr  6 10:55 /mount1
On Server B
drwxrwxrwx  17  wasadmin  wasgroup       1024 Apr  6 10:55 /mount2

 

# swlist | grep CIFS
  CIFS-CLIENT                             A.02.02.02     HP CIFS Client
  CIFS-SERVER                           A.02.04.03     HP CIFS Server

 

Thanks

Dennis Handly
Acclaimed Contributor

Re: NFS Permission Issue

>how I can share file system between two HP-UX server by using CIFS With achieving what I want.

 

This is just a conjecture.  If CIFS allows windows IDs to be mapped to Unix IDs, perhaps it will allow Unix IDs to be mapped other Unix IDs?

 

In any case, why do you want such a complex setup, instead just make the two IDs on the systems identical?