LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-13-2009, 12:49 PM   #1
acctman
LQ Newbie
 
Registered: Feb 2009
Posts: 12

Rep: Reputation: 0
symbolic question/problem


I'm trying to setup a symbolic link for a folder but its creating a file instead.

ln -s /home/rmbimgs/public_html /home/rmbserv/rmbimgs

when I check the rmbimgs on FTP it's telling me its a file
 
Old 02-13-2009, 01:08 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
What does ls or file tell you about the alleged link? It is likely that those do a better job of describing files than does FTP.
--- rod.
 
Old 02-13-2009, 01:22 PM   #3
acctman
LQ Newbie
 
Registered: Feb 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by theNbomr View Post
What does ls or file tell you about the alleged link? It is likely that those do a better job of describing files than does FTP.
--- rod.
lrwxrwxrwx 1 root root 13 Feb 13 13:33 rmbimgs -> /home/rmbimgs/public_html/

it looks correct
 
Old 02-13-2009, 01:32 PM   #4
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
It may just be that your ftp server is set up to not follow symlinks. Or, if you are running your ftp server in a chrooted environment, /home/rmbimgs/public_html/ may not be inside the chroot.


HTH

Forrest
 
Old 02-13-2009, 01:59 PM   #5
acctman
LQ Newbie
 
Registered: Feb 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by forrestt View Post
It may just be that your ftp server is set up to not follow symlinks. Or, if you are running your ftp server in a chrooted environment, /home/rmbimgs/public_html/ may not be inside the chroot.


HTH

Forrest
since I created the symlinks via ssh as root, the symlink has a root grp and owner set. i tried changing the owner & grp to rmbsite but its not taking. any idea on how to own and grp?
 
Old 02-13-2009, 02:29 PM   #6
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
It shouldn't matter who owns the symlink, if the target is available, it will just go there. The chroot command has nothing to do with ownership. What it does is basically set up an area of your hard drive for a particular use and makes it so that anything outside that area isn't able to be seen. Run 'man chroot' for more info.

HTH

Forrest
 
Old 02-13-2009, 06:00 PM   #7
servat78
Member
 
Registered: Jan 2009
Posts: 100

Rep: Reputation: 17
You can also make /home/rmbserv/rmbimgs the real directory and /home/rmbimgs/public_html a link to that location, like
ln -s /home/rmbserv/rmbimgs /home/rmbimgs/public_html

The web server shouldn't have problem following the link by default (unless it has also been set to ignore links).

Debian

Last edited by servat78; 02-19-2009 at 11:25 AM.
 
Old 02-13-2009, 07:58 PM   #8
acctman
LQ Newbie
 
Registered: Feb 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by servat78 View Post
You can also make /home/rmbserv/rmbimgs the real directory and /home/rmbimgs/public_html a link to that location, like
ln -s /home/rmbserv/rmbimgs /home/rmbimgs/public_html

The web server shouldn't have problem following the link by default (unless it has also been set to ignore links).
i have another problem, i'm not able to delete any of the files on the other user. i thought by making a symblink i'd be able to control access to the files as if they were under the same web user directory.

so i guess now whats the easiest way to give myself access to the files and any new files that are added.
 
  


Reply



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
Question Symbolic Link SBN Linux - General 5 07-23-2007 01:25 AM
Small question about /etc/rc.local - Symbolic link question Arodef Linux - General 4 05-13-2006 02:29 AM
question about symbolic links supersucker Linux - Newbie 3 01-06-2006 08:27 AM
symbolic link question vpv Linux - Newbie 6 10-25-2005 04:02 AM
symbolic link question nalkinburgh Linux - General 2 12-20-2002 12:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration