LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   ln problem (https://www.linuxquestions.org/questions/slackware-14/ln-problem-78611/)

pierow 08-03-2003 01:39 PM

ln problem
 
I want to setup all my web domains in /usr/local/domains and link that
to /home/domains. But the problem I keep getting is too many symbolic
links error. I've googled and haven't came up with any errors related
to this type of ln problem. Here's some info and permissions

root@sleepy:/bin# ls -al ln
-rwxr-xr-x 1 root bin 21988 May 27 2002 ln*

root@sleepy:/usr/local# ls -al
total 52
drwxr-xr-x 13 root root 4096 Aug 3 14:06 ./
drwxr-xr-x 18 root root 4096 Sep 15 2002 ../
drwxr-xr-x 2 root bin 4096 Aug 1 17:33 bin/
drwxr-xr-x 2 root root 4096 Aug 3 14:06 domains/

root@sleepy:/home# ls -al
total 44
drwxr-xr-x 8 root root 4096 Aug 3 14:06 ./
drwxr-xr-x 19 root root 4096 Aug 1 20:17 ../
drwx--x--x 2 admin users 4096 Aug 1 14:10 admin/
lrwxrwxrwx 1 root root 7 Aug 3 14:06 domains ->
domains

Here's the error I recieve when I try to cd into /home/domains -
root@sleepy:/home# cd /home/domains
-su: cd: /home/domains: Too many levels of symbolic links

Thx
~mike

Mara 08-03-2003 01:52 PM

Re: ln problem
 
Quote:

Originally posted by pierow

lrwxrwxrwx 1 root root 7 Aug 3 14:06 domains ->
domains

The symlink points to itself! I mean: /home/domains points to /home/domains, not /usr/local/domains. What command do you use to create it? Modify /home/domains to point to /usr/local/domains instead and it should be OK.

pierow 08-03-2003 01:59 PM

Thx Mara I was rattling my brain trying to figure it out.

The command I was usin to link was -
ln -s domains /usr/local/domains

instead of ln -s /home/domains /usr/local/domains

Thx
~mike


All times are GMT -5. The time now is 06:52 PM.