Ownership mismatch from solaris to linux


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Ownership mismatch from solaris to linux
# 1  
Old 03-05-2012
Ownership mismatch from solaris to linux

Hi all,

I have NFS share that is being mounted on both solaris10 and RHEL5.
The ownership of files is right on solaris box but not on RHEL5 box.
I logged in as root and when i try to change ownership with group, i am getting following error.


Code:
chown -R oracle dba <filename>
chown: changing ownership of  <filename> permission denied

Code:
on solaris
 
drwxr-xr-x   4 oracle   dba         2.0K Feb 13  2007 filename
 
on linux
 
drwxr-xr-x 4 avahi-autoipd users         2.0K Feb 13  2007  filename

# 2  
Old 03-05-2012
Where are you logged as root ? The NFS server or one of the clients (RHEL or solaris) ?
Without changing the export option on NFS server (no root squash), you will not be able to use root on client for such actions.

Use oracle user on solaris client to change permissions.
On NFS server you will be able to change permissions as root.
# 3  
Old 03-05-2012
Hi Peasant,
Thank you for reply.

I logged in as root on client boxes (solaris and linux).
On solairs permissions are good and i want the change only to occur on linux box. How can i use oracle user to change the permissions that can persist on linux box ?
# 4  
Old 03-06-2012
Quote:
Originally Posted by lramsb4u
Hi Peasant,
How can i use oracle user to change the permissions that can persist on linux box ?
You cannot. The Oracle user cannot take ownership of a file from avahi-autoipd, only root can do that.
# 5  
Old 03-06-2012
You would want to..

1. Define oracle:dba uid/gid on NFS server, numeric gid/uid should not exist on client.
2. Define oracle:dba on both clients where numeric gid/uid is the same as on NFS server.

You will have consistent gid/uid situation over nfs.

If you intend to use NFS in your enviroment, make a table of users and groups which you will use on all your servers in same fashion, for instance dba group has GID 105 and oracle has UID 108 on every server.
# 6  
Old 03-06-2012
Quote:
You would want to..

1. Define oracle:dba uid/gid on NFS server, numeric gid/uid should not exist on client.
2. Define oracle:dba on both clients where numeric gid/uid is the same as on NFS server.

You will have consistent gid/uid situation over nfs.
Or use NFS4 which relaxes that requirement.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help in comparing two files in UNIX with a mismatch

Hi Everyone, I am comparing results of two environments using unix files. I am writing two different csv file using spool and merging both the files using paste command paste -d, file1.csv file2.csv > prod_uat_result.csv and then finding the difference and attaching the same in a mail... (8 Replies)
Discussion started by: karthik adiga
8 Replies

2. Programming

Linux/Solaris System Administrator to become a Linux/Solaris System Programmer?

Hi all What is the qualification required by Linux/Solaris System Administrator to become a Linux/Solaris System Programmer as to gain complete knowledge on computers. Thanks (1 Reply)
Discussion started by: Tlogine
1 Replies

3. Shell Programming and Scripting

Count mismatch in UNIX

Hi, I have a requirement like below. client is sending the .txt filles.In that file we have 10 records but when I execute the below command it is showing 9 records. klena20> wc -l sample_file.txt|awk '{print $1}' It is showing the output as 9 But in a file records are 10. I found... (7 Replies)
Discussion started by: kirankumar
7 Replies

4. Red Hat

chroot sftp, samba share, ownership issue linux hosts

Hello, I have sftp server with chroot for a group and username is on a Linux host, I have created a few subdirectories under sftpuser home directories with 775. Then using a Samba I shared this user home directory to another linux client. On the Linux client, I have jboss user to access... (2 Replies)
Discussion started by: bobby320
2 Replies

5. UNIX for Advanced & Expert Users

Linux column(1) from util-linux-ng for Solaris? Which *.pkg to install?

Hi On Linux systems there is a command called "column". column - columnate lists Synopsis column -tx] -c columns] -s sep] file ...] Description The column utility formats its input into multiple columns. Rows are filled before columns. Input is taken from file operands, or,... (3 Replies)
Discussion started by: slashdotweenie
3 Replies

6. Red Hat

Memory Reprentation Mismatch In TOP

Hi All I have server of Redhat Enterprise Linux 6.1 with the below configuration OS: RHEL 6.1 Kernel:2.6.32-131.0.15.el6.x86_64 SOCKET:1 CPU:6 Memory 12 GB I am running a tool & after that when i run top command i see the below output. Tasks: 241 total, 2 running, 239... (1 Reply)
Discussion started by: ajaincv
1 Replies

7. HP-UX

about HP-UX error exa_parm mismatch?

Hi, anyone can give me the answer about Fatal: HP-UX error exa_parm mismatch? We are running HP-UX ver. 9.0.1 also running some OCP software along with Licensed dongle. Every three to four hour (some time it will last up to 24 hour) the OCP software shutdown unexpectedly (0 Replies)
Discussion started by: monukwt
0 Replies

8. Red Hat

Linux file ownership

Hi Friends, I am using RHEL5.3 64bit. I have a data filesystem on this, which have lot of files copied from another server. I cannot see correct owner and group displayed for these servers. It shows 113 for owner and 755 for group. Anybody please tell me why it is? Regards, Arumon (1 Reply)
Discussion started by: arumon
1 Replies

9. Shell Programming and Scripting

To find String mismatch

Hi, I have a doubt when searching files for the existence of a particular key. I have a property file has data with key and value pair like below and i call it as property file.ini here are the contents in File: popertyfile.ini location.property=2 agent.method=begin newkey=23 ... (2 Replies)
Discussion started by: raghu.amilineni
2 Replies

10. UNIX for Dummies Questions & Answers

Interesting date/ps time mismatch

# date;ps -ef|grep confused. Tue Dec 13 11:11:22 EST 2005 root 12847 12733 0 11:21 pts/83 00:00:00 grep confused. I am really confused on why my ps and my date command are returning different values for the time. Anyone know how to resolve this? Running FC2, if it helps. (14 Replies)
Discussion started by: r0sc0
14 Replies
Login or Register to Ask a Question