LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Proftpd + softlinks + no go? (https://www.linuxquestions.org/questions/linux-software-2/proftpd-softlinks-no-go-122384/)

BlackRabbit 12-03-2003 03:20 PM

Proftpd + softlinks + no go?
 
Hello,

until now I used a temporary setup where I mounted all my harddisks at /data/everyone/[somedir] with "/data/everyone" being the Proftp "root" when logged in..
This setup worked, but since Games, Series and Albumz were stored in "Stuff" (e.g. mount /dev/hdc1 /data/everyone/Stuff), it was'n very clear what was inside the "stuff" directory.

So I desided to use softlinks:


I divided the various files over various disks:
hdb1 = games + applications
hdc1 = movies
hdd1 = Series + albumz

Wrote me a little script:


--------------------------------------------------------------------------------
#! /bin/bash
#
mount /dev/hdb1 /tmp/hdb1
mount /dev/hdc1 /tmp/hdc1
mount /dev/hdd1 /tmp/hdd1
#softlinks (FTP => /data/everyone)
ln -s /tmp/hdb1/Series /data/everyone/Series
ln -s /tmp/hdb1/Albumz /data/everyone/Albumz
ln -s /tmp/hdb1/Mp3 /data/everyone/Mp3

ln -s /tmp/hdc1/Movies /data/everyone/Movies

ln -s /tmp/hdd1/Games /data/everyone/Games
ln -s /tmp/hdd1/Applications /data/everyone/Applications

--------------------------------------------------------------------------------

I tested on the server with cd if I could get to see the files,and I could.
Now I logged in to the FTP, saw the list of (what appears to be) directories and tried to enter 1 of the dirs:

550: "no such file or directory"
:scratch:

Tried several kinds of softlinks, but it never worked.. Is it possible that I cannot use softlinks when FTPing? (When cd'ing through sshd, it works..)


Thanks!


PS: SlackWare 9.1 BTW

Tinkster 12-03-2003 03:36 PM

Have a look at
/<where ever RH puts docs>/proftpd<version-mumble>/doc/Configuration.html

Supposedly there's a few settings in the
respect of handling links.



Cheers,
Tink

BlackRabbit 12-03-2003 04:02 PM

Quote:

Compatibility: 0.99.0pl6 and later Symbolic links (if supported on the host OS and filesystem) can be either shown in directory listings (including the target of the link) or can be "hidden" (proftpd dereferences symlinks and reports the target's permissions and ownership). The default behavior is to show all symbolic links when normal users are logged in, and hide them for anonymous sessions. If a symbolic link cannot be dereferenced for any reason (permissions, target does not exist, etc) and ShowSymlinks is off, proftpd displays the link as a directory entry of type 'l' (link) with the ownership and permissions of the actual link. Under ProFTPD versions 1.1.5 and higher, the default behavior in regard to ShowSymlinks has been changed so that symbolic links are always displayed as such (in all cases), unless ShowSymlinks off is explicitly set.
Tried on/off
off => no softlinks (dirs invisible)
on => visible, but not enterable (problems stays)

The directories do say "l"..



MOD: and is it normal I cannot chmod a softlink?

Tinkster 12-03-2003 04:11 PM

Quote:

Originally posted by BlackRabbit
MOD: and is it normal I cannot chmod a softlink?
Yep.


Cheers,
Tink

BlackRabbit 12-03-2003 04:40 PM

Quote:

Originally posted by Tinkster
Yep.


Cheers,
Tink

Thanks

(but I still don't know what to do :( )

BlackRabbit 12-04-2003 04:20 AM

So if I understand correctly, it should work with the currect settings?

Then why can't I enter the directory the softlink is targetting at?
I do have r+x rights to the target...

BlackRabbit 12-16-2003 08:20 AM

It's still not working..

This is my configfile, maybe you guys see something I don't see..

Code:

ServerName                      "Datanuke FTP Server"
Port                            21
ServerType                      standalone
DeferWelcome                    off


# FXP
AllowForeignAddress    on
#AllowLogSymlinks              on #on/off doesn't make a difference here
ShowSymlinks                    on #off => dirs(symlinks) are not shown; on => shown, but inaccesible
MultilineRFC2228                on

DefaultServer                  on
AllowOverwrite                  on
AllowRetrieveRestart            on
AllowStoreRestart              on

MaxClientsPerHost              2
TimeoutNoTransfer              600
TimeoutStalled                  600
TimeoutIdle                    1200

DisplayLogin                    motd
DisplayFirstChdir              .message
ListOptions                    "-l" # don't know what options I can add here
DefaultRoot                    ~

DenyFilter                      \*.*/

RequireValidShell              off
MaxInstances                    20

User                            nobody
Group                          nogroup
UserAlias                      datanuke nobody

<Directory /*>
  Umask                        022  022
  AllowOverwrite                on
</Directory>



All times are GMT -5. The time now is 04:17 AM.