Sponsored Content
Top Forums UNIX for Dummies Questions & Answers find directories owned by a given user Post 302526964 by poojabhat on Thursday 2nd of June 2011 03:35:21 AM
Old 06-02-2011
find directories owned by a given user

Hi,

I want to know if the is a way I can list the directories owned by a given user. Say i am logged in as that user.

I found out the find command lists the files owned by a certain user/group
but i want to know only the directories and if possible the permissions associated with these directories.

Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to delete everything owned bya particular user?

Hi I am an Oracle DBA and I want to delete everything owned byOracle on the AIX server. What command would do that? (5 Replies)
Discussion started by: sarangishere
5 Replies

2. UNIX for Dummies Questions & Answers

How to find out in which directories a user can write?

Hi everybody, what command can show me the directories in which a certain user can write to? Kind Regards FranzB (2 Replies)
Discussion started by: FranzB
2 Replies

3. Shell Programming and Scripting

Kill Process not owned by other user

Hi Here is my problem: 1)I am login to unix server through my login id and do SU - xxx 2) Start the script which is running in background I want that other user which login to there id and do SU - yyy(Different user) kill that script. Could you please help me in this. (9 Replies)
Discussion started by: mr_harish80
9 Replies

4. Solaris

fbconsole process owned by user

I did a ps-ef on a host and discovered many /usr/openwin/bin/fbconsole processes running. They were owned by several users and its parent PID in etc/init. I bellieve that this process should be owned by root and not the user, and also the parent PID should be the dtlogin. Any ideas of how this... (0 Replies)
Discussion started by: amp4cats
0 Replies

5. UNIX for Advanced & Expert Users

kill process owned by another user

How can I kill a process owned by user1? I will be using another user (user2) (not root) and we are on the same primary and secondary group. I copied everything including it's .profile and set the path accordingly. user1@hostnmae0:/home/user1 $ pkill java pkill: Failed to signal pid 1234:... (2 Replies)
Discussion started by: lhareigh890
2 Replies

6. Shell Programming and Scripting

Find the total size of all directories that are owned by a particular User

Hi All, I am writing a script in which i need find the total size of all the directories that are present in a directory which are owned by a particular user. I will explain in details i have a dir DIR1 in which i have 5 dir's DIRA DIRB DIRC DIRD DIRE. DIRA DIRC DIRE are owned by "eswar" i... (2 Replies)
Discussion started by: firestar
2 Replies

7. UNIX for Dummies Questions & Answers

user able to delete directory owned by root

I've tried to figure this out. I'm only about 6 mos into my AIX admin duties, but I've got a "security" problem I can't figure out. I've created a sub directory as follows: drwx------ 2 root system 256 Apr 13 16:02 mike I've logged in another session with the following user: $ id... (2 Replies)
Discussion started by: mpheine
2 Replies

8. AIX

find command to list all the 777 files and directories owned by root user

Hi I'm logged in to an AIX box now and we need to do an audit on this box. cbssapr01:# pwd / Which command will show all the files and directories owned by root user with permissions as 777 ? (8 Replies)
Discussion started by: newtoaixos
8 Replies

9. Shell Programming and Scripting

Delete everything owned by a particular user

I want to delete all files and folders owned a user say abcuser in the folder /tmp . Can you please give me the command ? Thanks Matt (2 Replies)
Discussion started by: lijjumathew
2 Replies

10. UNIX for Dummies Questions & Answers

Loop over certain user directories and find files

Hello I have user directories that contain /temp directory. Example folders: /user1/temp/ /user2/temp/ /user3/temp/ How can i loop over all user directories and find all files only in their /temp folder? Thanks a lot for help! (3 Replies)
Discussion started by: flavius42
3 Replies
ZLOCATE(1)						      General Commands Manual							ZLOCATE(1)

NAME
zlocate - find a user using Zephyr SYNOPSIS
zlocate [ -a | -d ] [ -1 ] [ -p ] user ... DESCRIPTION
Zlocate uses the Zephyr(1) Notification Service to find where a user is currently logged in. If the user is not logged in, or has set his location information such that you do not have access to see it, zlocate prints "Hidden or not logged-in". Otherwise, each machine that the user is currently logged into is printed, along with the time of login and location. The location is usually the X window system dis- play name of the user's display, but may be the terminal name if he is not using X or for some other reason is only using the terminal interface to zwgc(1). By default, all zlocate requests are authenticated using Kerberos. If you do not have Kerberos tickets, or for some other reason do not want to authenticate, the -d option will turn off authentication. The -a option is the default, authentication on. When locating multiple users, zlocate will display the user name on a line by itself, followed by the locations for that user. To display the user name on the same line as the output, use the -1 option (the numeral one). To look up multiple users in parallel asynchronously, use the -p option. DIAGNOSTICS
zlocate exits with status zero (0) if at least one user was found, and one (1) if no users were found. SEE ALSO
zctl(1), zephyr(1), znol(1), zwgc(1), zhm(8), zephyrd(8), X(1) Project Athena Technical Plan Section E.4.1, `Zephyr Notification Service' AUTHORS
Robert S. French (MIT-Project Athena) Marc Horowitz (MIT-Project Athena) RESTRICTIONS
Copyright (c) 1987,1988 by the Massachusetts Institute of Technology. All Rights Reserved. zephyr(1) specifies the terms and conditions for redistribution. MIT Project Athena April 17, 1990 ZLOCATE(1)
All times are GMT -4. The time now is 08:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy