Operating System - HP-UX
1752800 Members
5271 Online
108789 Solutions
New Discussion юеВ

Re: issue in changing dir permission

 
madhuchakkaravarthy
Trusted Contributor

issue in changing dir permission

when i tried to change the permission of a particular file i am getting execution permission denied.

cat /etc/group output
/>cat /etc/group
oinstall::202:
dba::203:oracle

-------------

cat /etc/passwd

>cat /etc/passwd | grep -i oracle10
oracle10:*:222:202::/home/oracle10:/sbin/sh

---------------

rwxr-xr-x 8 root sys 8192 Mar 21 2009 fintrdbASIA

drwxrwxr-x 4 oracle oinstall 1024 Dec 15 20:51 fintrdataASIA
-rwxrwxr-x 1 oracle oinstall 7340040192 Dec 16 10:34 users07.dbf

cd fintrdbASIA/fintrdataASIA

chown oracle10:oinstall users07.dbf

[FT-DB]:[ftin]:/fintrdbASIA/fintrdataASIA=>chown oracle10:oinstall users07.dbf
sh: chown: Execute permission denied.

done su - oracle and tried to change the permission ,eventhough the owner is oracle i am n ot able to change the permission

regards

MC
7 REPLIES 7
Turgay Cavdar
Honored Contributor

Re: issue in changing dir permission

If CHOWN right is removed then normal users can't change the owner of the files only root can do. Please check /etc/privgroup file for "-n CHOWN".

Also see:
# man 1m setprivgrp
Steven Schweda
Honored Contributor

Re: issue in changing dir permission

> when i tried to change the permission of a
> particular file i am getting execution
> permission denied.

> chown [...]

"chown" changes ownership, not permissions.

man chown

With my weak psychic powers, and your lack of
detail ("uname -a" output, say), it's hard to
be very specific, but many computer operating
systems require some privilege to change the
ownership of a file.
madhuchakkaravarthy
Trusted Contributor

Re: issue in changing dir permission

hi

i dont have any file privgroup under /etc.

hi

ver v3 and i am trying to change the ownership and not permission,, mistyped it.

regards

MC
Turgay Cavdar
Honored Contributor

Re: issue in changing dir permission

Can you please post :
# ll /usr/bin/chown
madhuchakkaravarthy
Trusted Contributor

Re: issue in changing dir permission

hi

ll /usr/bin/chown
-r-xr--r-- 1 bin bin 74848 Jun 28 2008 /usr/bin/chown

regards

MC
Turgay Cavdar
Honored Contributor

Re: issue in changing dir permission

That is the poblem. It should be: -r-xr-xr-x.
madhuchakkaravarthy
Trusted Contributor

Re: issue in changing dir permission

hi cavdar

thanks for u r response, since i was reading man page from last night not able to find the solution,but @ last it was simple permission pblm.


regards

MC