03-20-2018
If you have uid's/gid's showing as numeric in list (e.g. ls) commands then it's (probably) because those uid/gid have been removed (deleted) from either /etc/passwd (or /etc/shadow) and /etc/group respectively.
If you can reinstate the entries in those files then the system will translate them into human readable uid/gid and they will no longer appear numeric. They are only appearing numeric now because those numbers do not appear in the files and so cannot be made human readable. Perhaps the original owner's user account was deleted? Change the ownership of those files to a currently valid account.
Last edited by hicksd8; 03-20-2018 at 02:56 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. Shell Programming and Scripting
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
3. UNIX for Dummies Questions & Answers
Hi,
I need a command or a script to change the group permissions to be the same as the owner permissions for all my files and directories (recursive)
any idea ? (4 Replies)
Discussion started by: ynixon
4 Replies
4. UNIX for Advanced & Expert Users
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
5. UNIX for Dummies Questions & Answers
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
6. UNIX for Dummies Questions & Answers
Hi all,
How can i find the group owner name...???
Thanks (4 Replies)
Discussion started by: mansahr143
4 Replies
7. Emergency UNIX and Linux Support
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
8. AIX
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
/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 ... (5 Replies)
Discussion started by: thecobra151
5 Replies
9. UNIX for Beginners Questions & Answers
Hi Team,
Am a newbie to Unix. As I would like to see the Server Name,Owner Name ( not numeric form), Group Name ( not numeric ID), ROOT path.
I would like to send this list as an attachment to my personal mail. Can any one please help me out to to resolve this .
Here is the sample result... (6 Replies)
Discussion started by: vasuvv
6 Replies
10. Shell Programming and Scripting
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
CHOWN(8) BSD System Manager's Manual CHOWN(8)
NAME
chown -- change file owner and group
SYNOPSIS
chown [-R [-H | -L | -P]] [-fhv] owner[:group] file ...
chown [-R [-H | -L | -P]] [-fhv] :group file ...
DESCRIPTION
chown sets the user ID and/or the group ID of the specified files.
The options are as follows:
-H If the -R option is specified, symbolic links on the command line are followed. (Symbolic links encountered in the tree traversal
are not followed.)
-L If the -R option is specified, all symbolic links are followed.
-P If the -R option is specified, no symbolic links are followed.
-R Change the user ID and/or the group ID for the file hierarchies rooted in the files instead of just the files themselves.
-f Don't report any failure to change file owner or group, nor modify the exit status to reflect such failures.
-h If file is a symbolic link, the owner and/or group of the link is changed.
-v Cause chown to be verbose, showing files as they are processed.
The -H, -L and -P options are ignored unless the -R option is specified. In addition, these options override each other and the command's
actions are determined by the last one specified.
The -L option cannot be used together with the -h option.
The owner and group operands are both optional, however, one must be specified. If the group operand is specified, it must be preceded by a
colon (``:'') character.
The owner may be either a user name or a numeric user ID. The group may be either a group name or a numeric group ID. Since it is valid to
have a user or group name that is numeric (and doesn't have the numeric ID that matches its name) the name lookup is always done first. Pre-
ceding an ID with a ``#'' character will force it to be taken as a number.
The ownership of a file may only be altered by a super-user for obvious security reasons.
Unless invoked by the super-user, chown clears the set-user-id and set-group-id bits on a file to prevent accidental or mischievous creation
of set-user-id and set-group-id programs.
The chown utility exits 0 on success, and >0 if an error occurs.
COMPATIBILITY
Previous versions of the chown utility used the dot (``.'') character to distinguish the group name. This has been changed to be a colon
(``:'') character so that user and group names may contain the dot character.
SEE ALSO
chflags(1), chgrp(1), find(1), chown(2), lchown(2), fts(3), symlink(7)
STANDARDS
The chown command is expected to be POSIX 1003.2 compliant.
The -v option and the use of ``#'' to force a numeric lookup are extensions to IEEE Std 1003.2 (``POSIX.2'').
BSD
December 9, 2005 BSD