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
It does not work completely. In the sense is a subdirectory is owned by 'user' and group 'group' then all files under that directory are also displayed even though they are owned by different user/group.
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)
Under oracle user file abc.txt was created. Oracle user belong to dba group on UNIX Server. However other non Oracle users which belongs to some other network groups need read only access to this file.
Every time when I login as other then oracle user and try to view this file it saying that I... (2 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)
Hi All,
I have to search for all files in the current directory where the owner having execute operation.
I can find the files with specific permission such as 666
find . -type f -perm 666
But how to find files with only execute permission to user.
tried with :
find . -type f... (3 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)
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
LEARN ABOUT SUSE
groupmod
groupmod(8) System Manager's Manual groupmod(8)NAME
groupmod - modify a group entry
SYNOPSIS
groupmod [-D binddn] [-P path] [-g gid [-o]] [-p password]
[-A user] [-R user] [--service service] [--help] [-v]
[--usage] group
DESCRIPTION
groupmod modifies a group entry using the values specified on the command line.
OPTIONS -g, --gid gid
Force the new group ID to be the given number. This value must be positive and unique. The group of any file owned by the old group
must be changed manually.
-o, --non-unique
Allow duplicate (non-unique) group IDs.
-p, --password password
Set the encrypted password as returned by crypt(3) as the new group password.
-A, --add-user user
Add the user account to the specified group.
-R, --remove-user user
Remove the user account from the specified group.
-D, --binddn binddn
Use the Distinguished Name binddn to bind to the LDAP directory. The user will be prompted for a password for simple authentica-
tion.
-P, --path path
The group file is located below the specified directory path. groupmod will use this file, not /etc/group.
--service service
Modify the group from a special directory. The default is files, but ldap is also valid.
--help Print a list of valid options with a short description.
--usage
Print a short list of valid options.
-v, --version
Print the version number and exit.
FILES
/etc/group - group account information
SEE ALSO login.defs(5), group(5), groupadd(8), groupmod(8)AUTHOR
Thorsten Kukuk <kukuk@suse.de>
pwdutils April 2004 groupmod(8)