cancel
Showing results for 
Search instead for 
Did you mean: 

NFS Permission Issue

 
Highlighted
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
Highlighted
Super Advisor

Re: NFS Permission Issue

Hi,

 

Please your support

 

Thanks

Highlighted
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
Highlighted
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?).


Highlighted
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

Highlighted
Super Advisor

Re: NFS Permission Issue

Hi,

 

Please i still waiting your answer.

 

Thanks

Highlighted
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 ***
Highlighted
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 ***
Highlighted
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 ***
Highlighted
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