Files without owner and group


 
Thread Tools Search this Thread
Operating Systems AIX Files without owner and group
# 1  
Old 09-03-2014
Files without owner and group

Dears

it is normal that the below binaries stay without any owner and group

I have checked it in many servers and the like the below

Code:
 /usr/lpp/bos.net/inst_root/etc/ipsec# ls -lrt
total 248
-r-xr-xr-x    1 987      987           13589 Jun 29 2005  default_group
-r-xr-xr-x    1 987      987           13592 Jun 29 2005  default_group2
-r-xr-xr-x    1 987      987           85560 Jun 29 2005  create_privkey_db
-r-xr-xr-x    1 987      987            7054 Jun 29 2005  ike_initdbs
drwxr-xr-x    3 987      987             256 Dec 28 2005  inet

# 2  
Old 09-03-2014
Hi,

It is not normal to have files that are not owned, these have probably been installed from a tar archive or similar where the original owner and group doesn't exist on these servers.

You can either reassingn the ownership, or create a user and group with the required UID and GID.

Regards

Dave

Last edited by gull04; 09-03-2014 at 04:20 AM.. Reason: Typo
# 3  
Old 09-05-2014
Hi Cobra, Gull and All,

I faced the same issue on my server long back ago.

I'll just explain it with example:

->There is one file system that coming from Window server and mounted on your Unix server:

test01:/mountpt 2657.59 2415.88 241.71 91% /apps/mountptdr

->Where test01:/mountpt is the share path that is coming from window server and /apps/mountptdr is the directory that on you AIX server.

->Now if you try to go inside the path /apps/mountptdr and try to compress all files & dir under this path. All files and dir ower and group will change.

->The reason behind it the actuall path is coming from window server.

->If you will go to test01 server and /mountpt share path there you can see the same files & dor that was under path /apps/mountptdr on AIX.

->AIX are not the acutal ower & grp for compressing or tar file & dir.

->If you want to compress files without changeing its ower and group. Change from Window server side.

->I am sure whther we can change back the ower and group from AIX to previous ower and group.

->In your case, please first check the rqw mount point from where it is coming. Then try to login indie that server and try to compress the files and dir from there.

->I think this information will be sufficient for you to resolve your issue.Smilie

Thnaks & Regards
# 4  
Old 09-10-2014
Ive seen this happen when the owner and group numbers dont match on both systems. Check the owner and group uid on one and then the other if it doesnt match there is your problem.
# 5  
Old 09-10-2014
I've seen many files have UID of 25 and GID of 987 after the last two AIX upgrades I've done. Since neither that UID nor GID exist on my servers, I've added this as one of my post upgrade steps:
Code:
find / -fstype jfs2 \( -user 25 -o -user 987 \) | xargs chown -h root:system

# 6  
Old 09-10-2014
Hi,

If you have any servers in a pre-upgrade condition, it may be worth checking the values of these files on one of them.

Regards

Dave
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

List files whose owner or group is numeric

I want to add a condition is my find command to include files/sub-directory whose owner or group is all numeric number. My current find command is find . \( -user root -o -user soham\) -type f -exec ls -l {} \; 2>&1 ---------- Post updated at 10:20 AM ---------- Previous update was at... (5 Replies)
Discussion started by: Soham
5 Replies

2. Shell Programming and Scripting

Search for files owned by particular owner and group

I am searchingfor files owned by particular owner and group in a particular directory including its sub-directories. I use find <dir> -user <user> -group <group> -exec ls -l {} \; It does not work completely. In the sense is a subdirectory is owned by 'user' and group 'group' then all... (9 Replies)
Discussion started by: Soham
9 Replies

3. Emergency UNIX and Linux Support

To identify the group owner

If I have to identify the group owner of an AIX group, what is the command to be used. Example: there is an mqadm group, how do I find the owner of this group? Please help. (6 Replies)
Discussion started by: ggayathri
6 Replies

4. UNIX for Dummies Questions & Answers

Finding the Group Owner Name

Hi all, How can i find the group owner name...??? Thanks (4 Replies)
Discussion started by: mansahr143
4 Replies

5. UNIX for Dummies Questions & Answers

Setting group and owner with mkdir?

Hi, As root, I want to create a directory and set the group and ownership permissions at the same time with one command, instead of making the directory, then going back and doing a chown and chgrp. I don't see an option for this in the mkdir man page. Would I pipe chown and chgrp with my... (1 Reply)
Discussion started by: moose123
1 Replies

6. UNIX for Dummies Questions & Answers

Group files by owner and show directory

Hello, i would like to find huge files and group them by owners. To find big files i use this command: ls -lR | sort -bnr +4 | head -n 75 which give me 75 biggest files, then i need to see in which subdirectory is every file. second thing i dont know is how to group those files by owner, could... (6 Replies)
Discussion started by: dealer1985
6 Replies

7. UNIX for Advanced & Expert Users

How UNIX admin set up this? how files of 744 of other owner can be removed by another owner?

Hi all, We have some files are under 744 permissions and the the owner is say owner1 and group1. Now we have another user owner2 of group2, owner2 can remove files of the owner1 and the permission of those files are 744, unix admin told us he did some config at his side so we can do that. ... (14 Replies)
Discussion started by: TheGunMan
14 Replies

8. Shell Programming and Scripting

automatically change owner and group

We have a program that when a new account is created using the webpage it creates a new directory on the linux filesystem for the account. The problem is the process that creates the directory is as root user, as I want ftpuser to be able to login I have to manually login and chown -R the... (1 Reply)
Discussion started by: borderblaster
1 Replies

9. Shell Programming and Scripting

permission, owner and group

hello I search a script (ksh for Aix 5.3) to save all permissions, groups and owner for all files. Because we work much to change it, and a mystake ......! So i want execute this script to save/ execute permissions for all files. If you have this script, thank you for your help ;) best... (2 Replies)
Discussion started by: pascalbout
2 Replies

10. UNIX for Dummies Questions & Answers

owner and group in Linux

I am bit unclear of how Linux was set in the real world, please advise me how it's supposed to be. When I log in as root and do a ls -l, I find: /boot, /, /var, /usr, /tmp, /home, /u01, /u02, /u03 and of of this partition is owned by root and the group also belong to root. Is that the way it's... (1 Reply)
Discussion started by: lapnguyen
1 Replies
Login or Register to Ask a Question