Sponsored Content
Top Forums UNIX for Advanced & Expert Users rm -rf not working on AIX 6.1 Post 302390852 by chris5126 on Friday 29th of January 2010 08:06:31 AM
Old 01-29-2010
rm -rf not working on AIX 6.1

Hi Guys,

I have never seen this happen before, but created a directory as a user when installing some software, software install fails so I try and remove the directory as root and get an error. There is no processes using the folder see output:

Code:
ls -l
total 446336
-rwxr-----    1 u0008862 staff           124 Jan 26 13:11 .profile
-rw-------    1 u0008862 staff          3606 Jan 29 06:44 .sh_history
drwxr-xr-x    4 u0008862 staff           512 Jan 29 06:36 NParchive-dist
-rwxr-xr-x    1 u0008862 staff         42235 Jan 29 05:39 RainStor-4.0.0.0.AIX6.powerpc.sh
-rw-r--r--    1 u0008862 staff     228423680 Jan 29 06:15 RainStor-4.0.0.0.AIX6.powerpc.tar
drwxr-sr-x    2 u0008862 staff           512 Jan 29 06:27 bak
drwxrwx---    2 root     system          512 Jan 26 00:19 lost+found
lb424p038_pub[/home/u0008862] > rm -rf NParchive-dist
rm: 0653-611 Directory NParchive-dist/lib is not empty.
rm: 0653-611 Directory NParchive-dist/sbin/oa6/admin is not empty.
rm: 0653-611 Directory NParchive-dist/sbin/oa6 is not empty.
rm: 0653-611 Directory NParchive-dist/sbin is not empty.
rm: 0653-611 Directory NParchive-dist is not empty.
lb424p038_pub[/home/u0008862] > id      
uid=0(root) gid=0(system) groups=2(bin),3(sys),7(security),8(cron),10(audit),11(lp)
lb424p038_pub[/home/u0008862] > rm -rf NParchive-dist
rm: 0653-611 Directory NParchive-dist/lib is not empty.
rm: 0653-611 Directory NParchive-dist/sbin/oa6/admin is not empty.
rm: 0653-611 Directory NParchive-dist/sbin/oa6 is not empty.
rm: 0653-611 Directory NParchive-dist/sbin is not empty.
rm: 0653-611 Directory NParchive-dist is not empty.
lb424p038_pub[/home/u0008862] > fuser NParchive-dist
NParchive-dist:


Last edited by pludi; 01-29-2010 at 09:18 AM.. Reason: code tags, please...
 

10 More Discussions You Might Find Interesting

1. AIX

^P Not working on AIX.

I'm working on an AIX box, and I generall prefer emacs command line editing in ksh. Most control-commands are working, except not control-P (Recall previous command). ksh set - o emacs ^p Does not result in the expected outcome. does anyone know why this might be? (0 Replies)
Discussion started by: akbar
0 Replies

2. AIX

prtconf command not working in Aix 5.3

put prtconf command,after show this error message: bash-3.00# prtconf /usr/sbin/prtconf: msize=msize + 12544^J12544: syntax error pleae help me...........waiting for replay by mohan.s Aix sysadmin (deleted email, rule violation) (2 Replies)
Discussion started by: smohan62
2 Replies

3. AIX

HACMP 5.4 with AIX 5300-10 not working

I have two IBM_9110-51A boxes OS - fresh installs 5764-G03 TL 5300-10-00 disks dated 5/2009 HACMP - fresh installs HACMP for AIX 5L Base V5.4 5765-F62 dated 7/2006 Bottom line for smit output attempting 2 node cluster config ... (2 Replies)
Discussion started by: DrKillPatient
2 Replies

4. Shell Programming and Scripting

*/5 not working in AIX

Hi Guys, I tried to schedule a script for every 5 mins. i tried */5 but it is not working. Is writing every 5 mins is the only way to do it? like below 05,10,15,20,25,30,35,40,45,50,55 05-08 Thanks And Regards, Magesh (11 Replies)
Discussion started by: mac4rfree
11 Replies

5. AIX

suid not working on AIX ?

Hello, I'm running AIX 6.1 box. I tried to use suid on binary file but it doesn't work. (I set suid on /usr/bin/sleep and tried to run it as user1(sleep owner is bin) - and program still runs as user1. It shoud run as bin isn't it ? - This test run as expected on Linux box) Filesystem is... (3 Replies)
Discussion started by: vilius
3 Replies

6. AIX

rssh not working in AIX 6.1

edit by bakunin: double post SNIPped. Hi, I have a similar problem with my AIX 6.1. In AIX 5.3, I have successfully implemented rssh for the caging of my SFTP users. Since we just upgraded to AIX 6.1 TL6 SP7, the rssh does not work. The SFTP works when the user's shell is set to ksh, but... (1 Reply)
Discussion started by: eddie.lee
1 Replies

7. UNIX for Dummies Questions & Answers

Ssh stopped working AIX

I Was able to ssh into the AIX box. now i cannot When I run the command to start it it comes back that is was started, but still does not work. Here is a shot i what i see # server:/> lslpp -l | grep ssh openssh.base.client 4.3.0.5201 COMMITTED Open Secure Shell Commands ... (2 Replies)
Discussion started by: fierfek
2 Replies

8. Shell Programming and Scripting

Find command not working on AIX

Hello, I am running find command in an AIX Server to find last 7 days modified directories/files. >cd /usr/openv/netbackup/db/class >ls -l total 0 drwxr-xr-x 3 root system 256 May 28 2014 Catalog-Backup drwxr-xr-x 3 root system 256 Sep 18 2012 ... (4 Replies)
Discussion started by: rahul2662
4 Replies

9. Shell Programming and Scripting

Syntax Error in AIX but working in UX

MENU_INTRO(){ date="`date`" HOSTNAME="`hostname`" if ; then cols=$2 else cols=2 fi clear now=`date +%A,%B-%d-%Y@%H:%M:%S` echo " -: INFORMIX DBA MENU :- " echo... (1 Reply)
Discussion started by: fedora132010
1 Replies

10. UNIX for Beginners Questions & Answers

AIX 4.3 - Need help - Printers not working

I am running an old IBM P-Series server running AIX 4.3 (I know a dinosaur). The OS has not been updated. We had a hard drive failure last weekend, and I was able to get most of the system back up, however, I have 3 line printers and 3 label printers that I can not get working. I have tried... (2 Replies)
Discussion started by: Patrick.Crocker
2 Replies
dist(1) 						      General Commands Manual							   dist(1)

NAME
dist - redistribute a message to additional addresses (only available within the message handling system, mh) SYNOPSIS
dist [msg] [+folder] [options] OPTIONS
Annotates the message that you are redistributing. The following lines are added to the message that you are redistributing: Resent: date Resent: addrs The first line records the time at which the message was redistributed; the second records the addresses of the recipients of the redistributed message. The dist command only annotates messages when they are successfully sent. If you do not send the message immediately and file the unsent draft, it will not be annotated. Specifies the folder in which the draft message is created. If you do not send the draft, the mail system will store it in this folder. This option is usually set up in your See mh_profile(4) for more information. If you have this option set up, you can override it by using the -nodraftfolder option. Specifies the file in which the draft message is created. If no absolute pathname is given, the file is assumed to be in your Mail directory, standardly $HOME/Mail. If you do not send the message, it is stored in the named file until you delete it, or send it at a later date. Specifies the editor that you want to use to edit your forwarded message. You can also set up an editor in your file; see mh_profile(4) for more information. Specifies the message header to be used in the draft message. If this option is present, dist takes the header of the draft message from the named file. If this option is not present, the header is taken from the distcomps file in your Mail directory, or failing that, from the mail system default header. Causes annotation to be done in place, to preserve links to the annotated message. This option only works with the -annotate option. Prints a list of the valid options for this command. Suppresses editing of the draft message altogether. Specifies an alternative whatnow program. Normally, dist invokes the default whatnow program. See whatnow(1) for a discussion of available options. You can specify your own alternative to the default program using the -whatnowproc program option. If you do specify your own program, you should not call it whatnow. You can suppress the whatnow program entirely by using the -nowhatnowproc option. However, as the program normally starts the ini- tial edit, the -nowhatnowproc option will prevent you from editing the message. The defaults for dist are: +folder defaults to the current folder msg defaults to cur -noannotate -nodraftfolder -noinplace DESCRIPTION
Use dist to redistribute a message to addresses that are not on the original address list. You can specify the message which you want to redistribute by giving a message number as the msg argument. If you do not supply a message number, dist takes the current message. You can only redistribute one message at a time. You can also specify a message in another folder by giving the +folder argument. This argument can be used in conjunction with the msg argument. The program dist is similar to forw. The main difference between the two commands is that forw encapsulates the message, whereas dist merely resends it. You cannot add any new text of your own to a message that you re-distribute using dist. A message that has been for- warded will appear to have been sent by the person who forwarded the message. A message that has been redistributed using dist will appear to have come from the sender of the original message. This is shown in the scan listing of the messages. In the following example, messages 1 and 2 are identical apart from the method used to send the message on to additional recipients: 1 20/06 goodman Hello <<As you will see from th 2+ 21/06 John As previous, but forwarded <<--- When you use dist, you will get a message form to fill in with the details of the additional recipients. The default message form contains the following elements: Resent-To: Resent-cc: If the file named dist comps exists in your Mail directory, standardly $HOME/Mail, it is used instead of the standard mail header. If the option -form formfile is given, it overrides both of these. You can only put recognized header lines in your message form. The dist program recognizes values in the following fields: Resent-To: Resent-cc: Resent-Bcc: Resent-Fcc: Resent-Xmts: The headers and the body of the original message are copied to the draft when the message is sent. You cannot add any new body text of your own when redistributing a message with dist. If you do not have a draft folder set up, dist creates the message form in a file called draft in your Mail directory. This file must be empty before you can create a new draft, which means that you can only store one draft at a time. If it is not empty, the mail system asks you what you want to do with the existing contents. The options are: Aborts dist, leaving the draft intact. Replaces the existing draft with the appropriate message form. Displays the draft message. Refiles the existing draft message in the specified folder, and provides a new message form for you to complete. If you want to be able to have more than one draft at a time, you can set up a draft folder in your you to keep as many unsent drafts as space allows, and still create new messages as you wish. To do this, make sure that the following line is in your Draft-folder: +drafts For more information on how to do this, see mh_profile(4). You cannot store unsent messages created using dist in your draft folder. If you attempt to do so, only the message form is stored. This does not contain the original message that you are redistributing, so you will not be able to send it later. If you use repl to reply to a message resent to you by dist, the reply will go to the sender of the original message, rather than the per- son who forwarded it to you. The repl command ignores the Resent-xxx: fields when creating the header for your draft reply. PROFILE COMPONENTS
Path: To determine your Mail directory (<mh-dir>) Draft-Folder: To find the default draft folder Editor: To override the default editor fileproc: Program to refile the message whatnowproc: Program to ask the What now? questions FILES
The default system template for re-distributed messages. The user-supplied alternative to the default system template. The user profile. The draft file. SEE ALSO
comp(1), forw(1), repl(1), send(1), whatnow(1) dist(1)
All times are GMT -4. The time now is 04:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy