On Tue, 09 Mar 2004 11:51:15 -0600, Josh Close <josh at teamfreeze.com> wrote:

> I just made a symlink like this
>
> ln -s /path/to/directory /home/user
>
> and it worked. So it is like the user is actually in that directory.
>

hummm  - a while back I had to use lofs because the ftp server/chroot  
wouldn't allow soft links...  this was on solaris or AIX tho - I can  
remember which...


sorry for the mislead.

> -Josh
>
>
> -----Original Message-----
> From: Johnny Fulcrum [mailto:johnnyfulcrum at mn.rr.com]
> Sent: Tuesday, March 09, 2004 10:50 AM
> To: josh at teamfreeze.com; TCLUG Mailing List
> Subject: Re: [TCLUG] chrooted ftp users and symlink
>
>
> On Tue, 09 Mar 2004 10:27:06 -0600, Josh Close <josh at teamfreeze.com>  
> wrote:
>
>> K, now that I have the other ftp issue solved, I have a new one.
>>
>> I want to get a user to have access to only a certain directory. So I
>> have
>> the user chrooted when using ftp. Then I made a symlink to the directory
>> that I want them to use.
>>
>> ln -s /path/to/directory link_name
>
>
> That don't work in chroot jail.  look up loopback mounts (lofs) - those
> work in a chroot jail
>
>>
>> You can change into that directory when on the command line, but when
>> logged
>> in via ftp, it doesn't work. This is the error I get:
>>
>> 550 Can't change directory to some_directory: No such file or directory
>>
>> some_directory looks like this:
>>
>> lrwxrwxrwx    1 root     root           31 Mar  9 08:01 somedirectory ->
>> /path/to/some_somedirectory
>>
>> Would this be an option with the the ftp server? I didn't see anything  
>> in
>> the docs about it. Would it make a difference if I did a "ln -d"  
>> instead?
>>
>> -Josh
>>
>>
>> _______________________________________________
>> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
>> http://www.mn-linux.org tclug-list at mn-linux.org
>> https://mailman.real-time.com/mailman/listinfo/tclug-list
>
>
>
>
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> http://www.mn-linux.org tclug-list at mn-linux.org
> https://mailman.real-time.com/mailman/listinfo/tclug-list



_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list