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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT OSF1
chown
chown(1) General Commands Manual chown(1)NAME
chown - Changes the owner of files or directories
SYNOPSIS
chown [-fhR] owner [:group] file...
The chown command changes the owner of the specified files or directories to the specified user name or user ID.
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
chown: XCU5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
OPTIONS
[Tru64 UNIX] Turns off error reporting. [Tru64 UNIX] If file is a symbolic link, chown -h file changes the owner of the symbolic link.
The chown file format changes the owner of the file referenced by the symbolic link. Descends recursively through its directory arguments,
setting the specified owner.
OPERANDS
The pathname of the file for which ownership is to be changed. A user ID and optional group ID to be assigned to file. The owner portion
of this operand must be a user name from the user database or a numeric user ID. Either specifies a user ID to be given to each file named
by one of the file operands. If a numeric owner operand exists in the user database as a user name, the user ID number associated with that
user name will be used as the user ID.
If the group portion of this operand is present, it must be a group name from the group database or a numeric group ID. Either spec-
ifies a group ID to be given to each file. If a numeric group operand exists in the group database as a group name, the group ID
number associated with that group name will be used as the group ID.
DESCRIPTION
[Tru64 UNIX] Only a user with superuser authority can use the chown command.
The owner argument must be a valid user name or a valid numerical user ID. The optional group argument must be a valid group name or a
valid numerical group ID.
EXIT STATUS
The following exit values are returned: The chown command executed successfully and all requested changes have been made. An error
occurred.
EXAMPLES
To change the owner of the file program.c, enter: chown steffan program.c
The user access permissions for program.c now apply to steffan. As the owner, steffan can use the chmod command to permit or deny the
other users access to program.c. See the chmod command for details.
ENVIRONMENT VARIABLES
The following environment variables affect the execution of chown: Provides a default value for the internationalization variables that are
unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization vari-
ables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string value,
overrides the values of all the other internationalization variables. Determines the locale for the interpretation of sequences of bytes
of text data as characters (for example, single-byte as opposed to multibyte characters in arguments). Determines the locale for the for-
mat and contents of diagnostic messages written to standard error. Determines the location of message catalogues for the processing of
LC_MESSAGES.
FILES
Contains user names and numeric user IDs.
SEE ALSO
Commands: chgrp(1), chmod(1), passwd(1)
Functions: chown(2), chmod(2)
Files: passwd(4)
Standards: standards(5)chown(1)