Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AIX 4.3.2 chown: Operation not permitted 1

Status
Not open for further replies.

OskarMaag

MIS
Mar 10, 2001
5
Hi all,

on AIX 4.3.2 (with lots of patches: CASIL_9907, ...IY03471) and on AIX 4.3.3 (with some patches) I do not understand this:

cmd: id
output: uid=121(maag) gid=1023(userCATI)

cmd: ls -ld /tmp/maag
output: drwxrwxr-x 2 maag userCATI 1024 May 31 17:22 /tmp/maag

cmd: ls -l
output: -rw-rw-r-- 1 maag userCATI 792 May 31 17:22 t.t

cmd: grep brix /etc/passwd
output: brix:!:1008:1023:Brix:/home/brix:/bin/ksh

cmd: chown brix /tmp/maag/t.t
output: chown: t.t: Operation not permitted.

cmd: chgrp userUG t.t
output: chgrp: t.t: Operation not permitted.


maag is subdir of local (jfs) mounted /tmp

On my HP-UX (10.20) boxes chown and chgrp work fine

Thanks for reading this and any idea, what patches must be installed.

TIA oskar
 
AIX only permits [tt]chown[/tt] command to user [tt]root[/tt].

I hope it works...
Unix was made by and for smart people.
 
Hi Elgis,

thanks for Your response.
Sorry for not supplying the lines:

cmd: grep maag /etc/passwd
output: maag:!:121:1023:Maag:/home/maag:/bin/ksh

And I forgot to say that "man chown ..." tells me what You have answered, but chgrp should be possible for maag ( member of groups userCATI(=1023) and userUG and owner of the file). As stated above chgrp is not possible and that's my problem.

The "religous question of chmod security" is obviously considered differently under aix, hp-ux and Linux (not to mention that I come from VAX-VMS ...) and I just don't understand the reasons. For my purpose "chown" would have been the easiest solution ie. no "sudo" and similar things.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top