chown rejected from

Hello everybody,

I appreciate your help with this problem I have when trying to change file owner from 'root' to 'nobody' user:

[root@hostA] # id

uid=0(root) gid=1(other)

[root@hostA] # ls -al alarm

-rw-r--r--1 rootother 20 Jan 27 18:18 alarm

[root@hostA] # chown nobody:other alarm

chown: alarm: Not owner

[root@hostA] # pwd

/var/log/alarms

File is in a NFS:

From /etc/mnttab:

/dev/vx/dsk/DiskGroup/ALARMS /export/dirvxfsrw,suid,log,largefiles,cluster,ioerror=disable,crw,dev=39c6979 1139844377

ExtIntA:/export/dir/var/log/alarmsnfsrw,xattr,bg,dev=4500002 1139844439

From /etc/vfstab:

#device device mountFSfsckmountmount

#to mountto fsck pointtypepassat boot options

#

ExtIntA:/export/dir - /var/log/alarms nfs - yes rw,xattr,bg

What am i doing wrong, or overseeing? How can I change the owner from 'root:other' to 'nobody:other'?

Thanks,

JP.

[985 byte] By [jpmedina77] at [2007-11-26 7:17:11]
# 1
You probably need to export the filesystem with the "root" option enabled, othervise root wont be able to maintain it.In Solaris this is done with -o rootNB; enabling root access to a filesystem might be a potential security risk. 7/M.
mAbrante at 2007-7-6 18:54:38 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2
But I am trying 'chown' from the same node, not from the NFS Clients.What command do I use then to export with the -o root option?JP.
jpmedina77 at 2007-7-6 18:54:38 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3
Are you trying this from /eport/dir or from /var/log/alarms?If you're in /var/log/alarms, it doesn't matter. If you're NFS mounting the directory, you'll have this problem. Go to /export/dir, that should work for you.HTH,Roger S.
Jo_nage at 2007-7-6 18:54:38 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 4
Hi,Thanks a lot for your suggestions. Nevertheless, everything seems to be ok. I will try to re-execute the application generating the files with an user different than 'root'.JP.
jpmedina77 at 2007-7-6 18:54:38 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...