Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to delete everything owned bya particular user? Post 302135553 by daveisme on Monday 10th of September 2007 02:06:13 PM
Old 09-10-2007
pipe more

Try adding |more at the end of the command
 

10 More Discussions You Might Find Interesting

1. Cybersecurity

File owned by oracle user and dba group need readonly access to other users

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)
Discussion started by: groosha
2 Replies

2. 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

3. 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

4. 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

5. 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

6. 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

7. UNIX for Dummies Questions & Answers

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... (6 Replies)
Discussion started by: poojabhat
6 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. Web Development

Apache write permission issues to another user owned directory

Hi I am trying to make a web program which is command line equivalent. i have done the coding in cgi program in perl and html for basic forms to take inputs. when i ran the program from web application i see permission denied messages. after analyzing i found apache is running as wwwrun which... (2 Replies)
Discussion started by: rakeshkumar
2 Replies

10. 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
DROP 
OWNED(7) SQL Commands DROP OWNED(7) NAME
DROP OWNED - remove database objects owned by a database role SYNOPSIS
DROP OWNED BY name [, ...] [ CASCADE | RESTRICT ] DESCRIPTION
DROP OWNED drops all the objects in the current database that are owned by one of the specified roles. Any privileges granted to the given roles on objects in the current database will also be revoked. PARAMETERS
name The name of a role whose objects will be dropped, and whose privileges will be revoked. CASCADE Automatically drop objects that depend on the affected objects. RESTRICT Refuse to drop the objects owned by a role if any other database objects depend on one of the affected objects. This is the default. NOTES
DROP OWNED is often used to prepare for the removal of one or more roles. Because DROP OWNED only affects the objects in the current data- base, it is usually necessary to execute this command in each database that contains objects owned by a role that is to be removed. Using the CASCADE option might make the command recurse to objects owned by other users. The REASSIGN OWNED [reassign_owned(7)] command is an alternative that reassigns the ownership of all the database objects owned by one or more roles. COMPATIBILITY
The DROP OWNED statement is a PostgreSQL extension. SEE ALSO
REASSIGN OWNED [reassign_owned(7)], DROP ROLE [drop_role(7)] SQL - Language Statements 2010-05-14 DROP OWNED(7)
All times are GMT -4. The time now is 02:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy