LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I cant remove directory (https://www.linuxquestions.org/questions/linux-newbie-8/i-cant-remove-directory-948117/)

thiyagusham 06-02-2012 06:18 AM

I cant remove directory
 
Hi to all;

I am using host/guest operating system. Recently i shared Oracle software. Software corrupted. Trainer told me need to check binary files in oracle. I don't know

1.how to check binary files in oracle ???

Quote:

[root@localhost hgfs]# rm -rf Dbsharing/
rm: cannot remove directory `Dbsharing/': Permission denied
[root@localhost hgfs]#
Thanks and Regards
Thiyagusham.G

thiyagusham 06-02-2012 06:21 AM

Hello to everyone ;

I tried to delete manually but i am got error message.

Quote:

mnt/hgfs/Dbsharing"
cannot be deleted because you do not have permissions to modify its parent folder.
I want to remove Dbsharing folder. How can i remove ???

Thanks and Regards
Thiyagusham.G

kareempharmacist 06-02-2012 06:37 AM

type the following command in the parent folder
Code:

ls -l
paste the output here
I may help u in the deletion process but I can't answer your question about checking the binaries in oracle..

lithos 06-02-2012 06:45 AM

Perhaps it would be wise to "unmount" it first !

Then you probably will be able to delete it.

pixellany 06-02-2012 06:48 AM

To add a directory, you have to have both write and execute privileges in the parent directory. I think it's the same for removing a directory, but you can run some tests to see.

thiyagusham 06-02-2012 07:44 AM

@ kareempharmacist , @ lithos , @pixellany

" Thanks for all replies"

Quote:

[root@localhost ~]# cd /mnt
[root@localhost mnt]# cd hgfs/
[root@localhost hgfs]# ls -l
total 0
drwxrwxrwx 1 root root 0 Jun 2 16:26 Dbsharing
[root@localhost hgfs]# cd Dbsharing/
[root@localhost Dbsharing]# ls -l
total 0
[root@localhost Dbsharing]#
I executed rm -R <dir.name> but cant delete Dbsharing folder. but i lost contents inside Dbsharing.
Quote:

[root@localhost hgfs]# rm -R Dbsharing/
rm: remove directory `Dbsharing/'? y
rm: remove directory `Dbsharing/'?
[root@localhost hgfs]# ls -l
total 0
drwxrwxrwx 1 root root 0 Jun 2 16:26 Dbsharing



pixellany 06-02-2012 10:26 AM

As I said, you will probably need to change the permissions on the parent directory.

lithos 06-02-2012 11:18 AM

Show the "mount" command output,
I'm almost sure you have to unmount that "dbsharing" first.

thiyagusham 06-02-2012 11:26 AM

@ kareempharmacist , @ lithos , @pixellany ,@ lithos

Due to continuous issues completely linux os removed .Again i installing REDHAT LINUX 5.
I am having major problem with ORA 600 ERROR.Completely error is "etc/hosts".
1.Can anyone suggest me how to configure etc/hosts file.
I searched with google not good. IS there any specific url ???


Thanks and Regards
Thiyagusham.G

thiyagusham 06-02-2012 12:08 PM

1 Attachment(s)
@ hi to all

I think whenever i login linux os i am getting message.
I attached this error screen shot. Please review what should i do to avoid ORA 600 errror.
I think it belongs "etc/hosts ".
Can anyone help me ???

Thnaks and Regards
Thiyagusham.G

pixellany 06-02-2012 01:12 PM

I have no idea what's going on, but I would suggest starting by doing what the error message says....

lithos 06-03-2012 02:04 AM

Hi thiyagusham

This is a different problem than what you have posted in your thread title "I cant remove directory ",
you should start a new Thread instead.


While your troubles remain, you're mixing things up not doing the install and configuration on your server completed (you have just started the setup and you let alone to finish it expecting to work "out of box").

Your current problem is that you have configured your network with DHCP to automatically acquire IP address
but obviously you don't have any DHCP server where you connected your "server" to obtain IP address.

Configure it manually (2nd example).


All times are GMT -5. The time now is 08:51 AM.