1833777 Members
2389 Online
110063 Solutions
New Discussion

directory owner ship

 
SOLVED
Go to solution
Indrajit Bhagat
Regular Advisor

directory owner ship

hfxnsp2:/opt/bmc/7.2.10/Patrol3/AIX5.2.0.0-64/best1/7.2.10/bgs>chown root:root lib64
chown: 3002-132 root is an unknown groupname.
hfxnsp2:/opt/bmc/7.2.10/Patrol3/AIX5.2.0.0-64/best1/7.2.10/bgs>

i have to change the owner ship of lib64 directory to root. but above following error is coming
5 REPLIES 5
Dave Hutton
Honored Contributor
Solution

Re: directory owner ship

cat /etc/group | grep root

Looks like your group file might be missing it.
root::0:root

Hopefully thats your first line of your /etc/group file.

Indrajit Bhagat
Regular Advisor

Re: directory owner ship

following is the output

hfxnsp2:/opt/bmc/7.2.10/Patrol3/AIX5.2.0.0-64/best1/7.2.10/bgs>cat /etc/group |grep root
system:!:0:root
bin:!:2:root,bin
sys:!:3:root,bin,sys
security:!:7:root
cron:!:8:root
audit:!:10:root
lp:!:11:root,lp,printq
mqm:!:125:l364266,mqm,prdia,QRFSPR79,QWDCRA31,QRFSPR80,harvest,root,QWDCTR31,QRFSPR8A,QRFSPR8B,QMBPROC5,QMBPROP5
hfxnsp2:/opt/bmc/7.2.10/Patrol3/AIX5.2.0.0-64/best1/7.2.10/bgs>
Dave Hutton
Honored Contributor

Re: directory owner ship

I didn't notice the first time that it looks like your running AIX?

I'm still guessing your /etc/group file's first line that says only root is wrong. But honestly I could be wrong. On HPUX that is what my line looks like. It may differ slightly on AIX. Its been 6+ years since I've looked at AIX.
Pete Randall
Outstanding Contributor

Re: directory owner ship

Generally, ownership for root's files are set to root:sys, or root:bin. There is not usually a group named root.


Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: directory owner ship

Hi:

If this is AIX then you probably want "system" as the group:

# chown root:system ...

By the way, though, this is an HP Forum!!!

Regards!

...JRF...