LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-16-2005, 04:14 PM   #1
dajomu
Member
 
Registered: Aug 2005
Posts: 31

Rep: Reputation: 15
Angry Crappy softlinks


I made a softlink "ln -s" from the directory /var/www/html/public_html --> /home/ddd/public_html
but now I want to delete public_html so I tried;

Code:
rmdir /var/www/html/public_html but I got the error:
rmdir: `public_html/': Not a directory
Then I tried;

Code:
rm -d /var/www/html/public_html but I got the error:
rm: cannot remove directory `public_html/': Is a directory
Any solutions out there?

DaJoMu
 
Old 08-16-2005, 04:18 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
How exactly did you issue the
ln
?
And what does
ls -ld /var/www/html
have to say about it?


Cheers,
Tink
 
Old 08-16-2005, 04:33 PM   #3
dajomu
Member
 
Registered: Aug 2005
Posts: 31

Original Poster
Rep: Reputation: 15
softlink

I issued the softlink in this manner

Code:
ln -s /home/ddd/public_html /var/www/html/public_html
Code:
ls -ld /var/www/html/public_html  
drwxr-xr-x  2 ddd ddd 4096 Aug 15 19:49 /var/www/html/public_html/
Code:
ls -ld /var/www/html
drwxr-xr-x  5 root root 4096 Aug 15 20:18 /var/www/html/
yes, I am logged on as root.
 
Old 08-16-2005, 04:38 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
How bizarre :)

That's an actual directory. And ln -s should have failed.

rm -rf /var/www/html/public_html
should work.


Cheers,
Tink
 
Old 08-16-2005, 04:50 PM   #5
dajomu
Member
 
Registered: Aug 2005
Posts: 31

Original Poster
Rep: Reputation: 15
Not working

Code:
rm -rf /var/www/html/public_html/
rm: cannot remove `/var/www/html/public_html/': Not a directory
I could probably just leave it like this, but if anyone got
other suggestions that would be nice?

Let me say this is a Clarkconnect 3.1 server
Code:
uname -a
Linux gateway.xxx.xxx  2.6.9-19.cc #1 Fri Jul 8 18:40:48 EDT 2005 i686 i686 i386 GNU/Linux

Last edited by dajomu; 08-16-2005 at 04:52 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Softlinks - cannot delete dajomu Red Hat 4 08-17-2005 03:36 PM
crappy laptop drprince89 Linux - Laptop and Netbook 4 09-25-2004 06:01 PM
Improving Crappy Dialup Burgin General 3 08-07-2004 08:28 PM
Hacking the crappy Steam Mega Man X General 2 02-25-2004 02:35 PM
Proftpd + softlinks + no go? BlackRabbit Linux - Software 6 12-16-2003 09:20 AM


All times are GMT -5. The time now is 05:26 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration