hi probs with rm command


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers hi probs with rm command
# 8  
Old 03-05-2007
re: prob with rm

i m executing the script to remove from a directory in iacora1..
# 9  
Old 03-05-2007
I assume the "iacora1" is the node name.

That need not be considered

You need to check whether you have got permissions to delete the particular directory
# 10  
Old 03-05-2007
re: rm cmd

i have given the permissions to files in it to the directoy or folder and also the script
# 11  
Old 03-05-2007
what are the permissions that are currently set to the directory / files under consideration ?

Did you try after giving the permissions ? Smilie
# 12  
Old 03-05-2007
rm cmd

[QUOTE=matrixmadhan]what are the permissions that are currently set to the directory / files under consideration ?

Did you try after giving the permissions ?

i gave every read write execute permission to files as well as the directory
# 13  
Old 03-05-2007
Consider this directory structure,
Code:
cd ~/sub/abc
ls -l
rwxrwxrwx    1 user  group          0 Mar  5 16:53 one*
cd ..
ls -l
dr-xr-xr-x    2 user  group       4096 Mar  5 16:54 abc/
rm abc/one
rm: cannot remove `abc/one': Permission denied


Though rwx is available for the files, the directory in which the files are available should have a minimum of 'w' and 'x'.
Then only the file(s) can be deleted!
# 14  
Old 03-05-2007
re: prob with rm

hi ....

it has
drwxrwxrwx 2 aabb developer 81 Mar 5 06:20 abc

files are presen in abc
-rwxrwxrwx 1 aabb developer 16 Mar 5 04:46 xx_c_050307044610.dat

the commad i give as

rm -f /abc/xx_c_050307044610.dat

also tried as

rm xx_c_050307044610.dat

still gives as "Remove directory operation failed"
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

passing command output from one command to the next command in cshell

HI Guys, I hope you are well. I am trying to write a script that gets executed every time i open a shell (cshell). I have two questions about that 1) I need to enter these commands $ echo $DISPLAY $ setenv $DISPLAY output_of_echo_$display_command How can i write a... (2 Replies)
Discussion started by: kaaliakahn
2 Replies

2. Virtualization and Cloud Computing

Connection probs in virt. OSolaris in Qemu under Ubuntu

Hi, I'm trying to do this: Set up OpenSolaris with Qemu (Ubuntu is hostOS). I was able to get it up and running and I have installed it on my .img. But now I need internet connection. On my Ubuntu host I did this: #brctl addbr br0 #tunctl #brctl addif br0 wlan0 #brctl addif br0 tap0... (1 Reply)
Discussion started by: fisfia
1 Replies

3. UNIX for Dummies Questions & Answers

probs executing crontab script

Hi everyone In an existing crontab script for the root user, I've added 5 new lines of code, however for some unknown reason, these lines of code were not executed. Here is what I did 30 0 * * * ./usr/people/atlab/jamesgoh/disk_reader/disk_reporter /picnic 30 0 * * *... (6 Replies)
Discussion started by: JamesGoh
6 Replies

4. Programming

probs adding linker option in g++

Hi all Im trying to compile a C++ program, however Im having issues trying to link a particular library to the compiling and linking statement. Here is what Im doing g++ mips4 -std=c++98 -g disk_reporter.cpp -o disk_reporter If I do this alone, the linker complains that library... (2 Replies)
Discussion started by: JamesGoh
2 Replies

5. Programming

probs compiling with gcc + lpthread

Im trying to write a program atm which uses mutexes to control thread access to a certain code section ( the critical section). However, whenever I compile the code using gcc I get the following message from gcc Unresolved text symbol "pthread_mutex_lock" Unresolved text symbol... (1 Reply)
Discussion started by: JamesGoh
1 Replies

6. UNIX for Dummies Questions & Answers

Dell - Installing SCO Openserver 6.0 probs with ADAPTEC 1210SA

Trying to install Sco OSR 6.0 on Dell Optiplex with SERIAL ATA ADADPTEC 1210SA controller. Sco says its sipported by the AACRAID driver but on installation its says that it doesnt recognise the partitions In the middle of re-formatting at the moment - just wondered if anyone had anu... (0 Replies)
Discussion started by: farmacy
0 Replies

7. Solaris

More SSH probs ...

Server 1 SSH Version Sun_SSH_1.0 Server 2 OpenSSH_3.8.1p1 Server 3 OpenSSH_3.8p1 I created the rsa keys on server1. Public and private. I copied the id_rsa.pub file to server2 and server3 and appended this to the authorized_keys file in the .ssh directory on both. (All servers using the root... (2 Replies)
Discussion started by: frustrated1
2 Replies

8. UNIX for Dummies Questions & Answers

copy probs

need help....just wanna copy all files with no extensions but with tree-informations to one dir first I make a new directory with all foldertrees...like find / -name "*" -type d >a1 sed -e 's/^/new/g' <a1 >b1 mkdir -p `cat a1` then I wanna copy all specific files with no... (12 Replies)
Discussion started by: svennie
12 Replies

9. Shell Programming and Scripting

probs compiling lex

this is my lex file ------------ test.l %% printf("%c",yytext+'a'-'A');.ECHO; how do i compile it $ lex test.l cc lex.yy.c -o test -ll <------| | if this is correct do i add this line--------| @the command line or does it... (0 Replies)
Discussion started by: sinner
0 Replies

10. UNIX for Dummies Questions & Answers

oracle probs on HPUX11

Hi all we r using hpUX11.00 9000 sever as oracle 8i db server... But the problem is we have 4 instances of dbs but upto my knowledge there are only to ports available for TNS listen... how can i configure or get wht ever it may be the other two ports for tns listener......... ... (2 Replies)
Discussion started by: Prafulla
2 Replies
Login or Register to Ask a Question