Sponsored Content
Top Forums UNIX for Advanced & Expert Users How UNIX admin set up this? how files of 744 of other owner can be removed by another owner? Post 302385627 by ceubank on Friday 8th of January 2010 05:34:13 PM
Old 01-08-2010
That's usually done by the filesystem ACL mechanism.

You can see if ACL support is enabled on the filesystem by looking for the 'acl' option in the output of the 'mount' command (linux).

Try running 'getacl' or 'getfacl' on the directories/files. This tells you what other groups or users have write access (also delete)

Hope this helps
 

10 More Discussions You Might Find Interesting

1. Solaris

Owner of file gets 'not owner' error for chgrp

Hi Folks, I know that changing users and groups is pretty basic admin, but this one has got me stumped. When I try to change the group of a file for which I am the owner for, it still gives me a 'Not owner' error. For example, when I am logged in as 'webadmin', I have the following file: ... (4 Replies)
Discussion started by: brizrobbo
4 Replies

2. UNIX for Dummies Questions & Answers

How to set the name of the group and the owner while creation of the file?

How to set the name of the group and the owner while creation of the file? -rwxrwxr-x 1 root sys 1202 Dec 5 2002 abc.awk like here i need to set the name of root and sys to xxx xxx Any help is appreciated. Thanks. (2 Replies)
Discussion started by: nehak
2 Replies

3. UNIX for Dummies Questions & Answers

command to find the files under particular owner

Hi, I need a command to find a files under particular owner ?All the files in the system for the particular user id is the owner? Please help me on this? (2 Replies)
Discussion started by: jayaramanit
2 Replies

4. UNIX for Dummies Questions & Answers

Find files by owner

Hello, I have a problem, I need to find files in folder by owner, not using find command at all and ls -R parameter. Thanx a lot. Best regarts (1 Reply)
Discussion started by: Boliakas
1 Replies

5. Shell Programming and Scripting

find files by OWNER

i have written a script in which i have to go to a dir and search there for files belonging to owner pipe and then delete them Can anyone tell me how to find files by owner pipe. below some of the files belonging to owner pipe -rw------- 1 pipe pipe 163840 Mar 18 2008 ... (7 Replies)
Discussion started by: ali560045
7 Replies

6. Solaris

Where to look owner's configuration files?

Where to look owner's configuration files? For example: -r-xr-xr-x 1 103 staff 2723 Jun 17 1999 user_init I need to look owner 103 behavior. (3 Replies)
Discussion started by: wolfgang
3 Replies

7. Shell Programming and Scripting

mv warning set owner/group: Operation not permitted

Hi, Thanks for looking into this. I am running into below situation in free BSD. I have a file in /tmp/sample.txt with owner as 'xyz' and group as 'wheel' I am moving it to my home dir/newsample.txt whihc has owner 'xyz', but group 'someother' with below command, getting warning, but it is... (2 Replies)
Discussion started by: ramanaraoeee
2 Replies

8. Solaris

Privileges : modify dir/file owner by other that's not owner

i need to do the following operations in solaris 10: 1.change owner and group owner for files which are not owned by the current user and user group 2.to can delete files in the /tmp directory which are not of the current user 3. allow to a standard user the deletion of files in the /tmp... (1 Reply)
Discussion started by: sirmark
1 Replies

9. AIX

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 /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

10. AIX

How to set owner and permission for files/directory in directory in this case?

Hi. My example: I have a filesystem /log. Everyday, log files are copied to /log. I'd like to set owner and permission for files and directories in /log like that chown -R log_adm /log/* chmod -R 544 /log/*It's OK, but just at that time. When a new log file or new directory is created in /log,... (8 Replies)
Discussion started by: bobochacha29
8 Replies
getacl(1)						      General Commands Manual							 getacl(1)

NAME
getacl - Displays the specified access control list (ACL) on a file of directory SYNOPSIS
getacl [-d|-D] [-g group[,group...]] [-n] [-m] [-u user[,user...]] file... FLAGS
Displays the default access ACL instead of the access ACL. Valid for directories only. The -d and -D options are mutually exclusive. [Tru64 UNIX] Displays the default directory ACL instead of the access ACL. Valid for directories only. The -d and -D options are mutu- ally exclusive. [Tru64 UNIX] Display the entries for the designated group names or GIDs only. If a numeric group name exists in the group database, then the entry for that group is displayed, not the entry for the GID. For example if there is a group name "521" with GID 40, a group name "mygroup" with GID 521, and you request the entry using the -g 521 flag then the entry for the group name "521" is dis- played, not the entry for the group name "mygroup". The -g flag is not defined by POSIX. [Tru64 UNIX] Display the output in multi- columns. The -m flag is not defined by POSIX. [Tru64 UNIX] Display numeric IDs. The -n flag is not defined by POSIX. [Tru64 UNIX] Display the entries for the designated user names and UIDs only. If a numeric user name exists in the user database, then the entry for that user is displayed, not the entry for the UID. For example if there is a user name "39456" with UID 420, a user name "fred" with UID 39456, and you request the entry using the -u 39456 flag then the entry for user name "39456" is displayed, not the entry for user name "fred". The -u flag may be used multiple times on the command line. DESCRIPTION
This command is based on Draft 13 of the POSIX P1003.6 standard. The getacl command displays the selected type of ACL for each file or directory named on the command line. The following three types of ACLs may be displayed: Access ACL Used to control access to a file or directory. Default directory ACL Used to specify ACLs inherited by new subdirectories in a directory. Valid on directories only. Default access ACL Used to specify ACLs inheried by new subdirectories and files in a directory. Valid on directories only. For more nformation on the types of ACLs see the acl(4) reference page and the Security guide. If the access ACL is selected for display, and there is no access ACL, the getacl command displays the permission bits in ACL format. If a default ACL is selected for display, and the selected default ACL doesn't exist on the specified directory, only the ACL header will be displayed. The user readable format of the ACL consists of the ACL header section and the entries section. The ACL header section contains, at a min- imum, the following three lines: name of the object object owner group owner It may also contain blank comment lines or warning messages. Each line of the ACL header section begins with a # character. The ACL entries section by default consists of one line per entry. Each line contains three colon-separated fields defined as: The ACL entry tag type (user/group/other). The ACL entry tag qualifier. This is the name or id that this entry pertains to. If this field is empty the entry refers to the owning user, owning group or other. The access being granted by the entry. The output display format and relative ordering of ACL entries is as follows: user::perm user:uid1:perm user:uid2:perm group::perm group:gid1:perm group:gid2:perm other::perm The following are some typical getacl outputs: % getacl /ufs/test # # file: /ufs/test # owner: root # group: system # user::rwx user:fran:-wx user:adm:r-- group::r-x other::r-x % getacl -g adm /ufs/test # # file: /ufs/test # owner: root # group: system # % getacl -u adm /ufs/test # # file: /ufs/test # owner: root # group: system # user:adm:r-- If any ACL entry is wider than the screen, the access control list is continued on the next line, indented to the previous line. The width of the screen is taken from the COLUMNS environment variable, if the variable is not set, the default width is 80 columns. The -m option may be used to cause the ACL to be displayed in a multicolumn format. The user entries defined in the ACL are placed on the screen in the maximum number of columns allowed by the current size of the screen, followed by the group entries. The output from the getacl command is in the correct format for input to the setacl command. The output may be redirected into a file, then the output file can be used as input to the setacl command. This technique is useful for assigning the ACL on an existing file to one or more new files. For example: $ getacl file1 > entries_file $ setacl -U entries_file file2 file3 file4 The getacl command displays the access control lists of those files that resides in directories that the user has search permissions to. ACLs may be set on files and directories if ACLs are disabled on the system, but ACL access checks and ACL inheritance won't take place. The getacl command will print a warning if ACLs are disabled on the system. Not all types of filesystems support ACLs. The getacl command will print a warning if ACLs are not supported on the filesystem. EXIT VALUES
If successful, the getacl command exits with a status of zero. Otherwise, this command exits with a status of 1 if it aborted because of syntax errors, or if the ACL of one or more files could not be accessed. RELATED INFORMATION
Commands: setacl(1) Files: acl(4). Security delim off getacl(1)
All times are GMT -4. The time now is 07:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy