Find the answer to your Linux question:
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 22
oh my gosh, those folders in the /Windows folder are mounts in themselves? I think there's a conflict of mounts here, sorry buddy. You did the mount --bind in the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux Newbie
    Join Date
    Mar 2005
    Posts
    230

    oh my gosh, those folders in the /Windows folder are mounts in themselves? I think there's a conflict of mounts here, sorry buddy. You did the mount --bind in the right order so I'm afraid utahcon's comment won't help ya. Also, there's no -R or --recursive flags cause the behavior of binding one directory to another IS "recursive" by nature. Also, the "empty" folder behavior isn't a symptom of permissions problems.

    I myself am a mount --bind user to work around my own chroot vsftpd server. It works great for me, but then, I don't have mounts inside of my mounts.

    I retract my statement of saying "mv /Windows /srv/ftp". Instead, I would unmount your windows folders and remount them to folders in /srv/ftp.

  2. #12
    Linux Newbie
    Join Date
    Jul 2004
    Location
    Calcutta, India
    Posts
    220
    I posted sumthing like this on another forum :
    Probably this will help you out as well , just figure out what you need from the following .
    Please note : I am doing this with local login enabled , and I am creating separate users for the accounts , NO anonymous login.
    Code:
    [me@knobarrion me]$ su 
    Password: 
    [root@knobarrion me]# mkdir /home/newftp 
    [root@knobarrion me]# chown me /home/newftp/ 
    [root@knobarrion me]# chgrp ftp-users /home/newftp/ 
    [root@knobarrion me]# mount --bind /mnt/windows/E\:/Inetpub/ftproot/ /home/newftp/ 
    [root@knobarrion me]# useradd -g ftp-users -d /home/newftp/ testuser 
    [root@knobarrion me]# passwd testuser 
    Changing password for user testuser. 
    New password: 
    Retype new password: 
    passwd: all authentication tokens updated successfully. 
    [root@knobarrion me]# service vsftpd start 
    Starting vsftpd for vsftpd: [ OK ] 
    [root@knobarrion me]#cat /etc/vsftpd.user_list 
    # vsftpd userlist 
    # If userlist_deny=NO, only allow users in this file 
    # If userlist_deny=YES (default), never allow users in this file, and 
    # do not even prompt for a password. 
    # Note that the default vsftpd pam config also checks /etc/vsftpd.ftpusers 
    # for users that are denied. 
    guest 
    testuser 
    [root@knobarrion me]#
    I am also using userlist_deny=NO.
    This is when I connect to myself :
    Code:
    [me@knobarrion me]$ ftp 10.109.1.51 
    Connected to 10.109.1.51 (10.109.1.51). 
    220 Welcome to ThePro's FTP service. 
    Name (10.109.1.51:me): testuser 
    331 Please specify the password. 
    Password: 
    230 Login successful. Have fun. 
    Remote system type is UNIX. 
    Using binary mode to transfer files. 
    ftp> put defrag-0.70.tar.gz 
    local: defrag-0.70.tar.gz remote: defrag-0.70.tar.gz 
    227 Entering Passive Mode (10,109,1,51,141,137) 
    150 Ok to send data. 
    226 File receive OK. 
    64253 bytes sent in 0.00077 secs (8.1e+04 Kbytes/sec) 
    ftp> ls 
    227 Entering Passive Mode (10,109,1,51,84,225) 
    150 Here comes the directory listing. 
    -rwxrwxrwx 1 ftp ftp 64253 Feb 01 11:15 defrag-0.70.tar.gz 
    drwxrwxrwx 2 ftp ftp 8192 Jan 19 07:28 upload 
    226 Directory send OK. 
    ftp> bye 
    221 Goodbye. 
    [me@knobarrion me]$ ls -l /mnt/windows/E\:/Inetpub/ftproot/ 
    total 72 
    -rwxrwxrwx 1 root root 64253 Feb 1 16:45 defrag-0.70.tar.gz 
    drwxrwxrwx 2 root root 8192 Jan 19 12:58 upload 
    [me@knobarrion me]$

  3. #13
    Just Joined! wraith's Avatar
    Join Date
    Apr 2005
    Location
    Sault Ste. Marie, Canada
    Posts
    54
    the mount --bind doesnt work.. im not too keen on mounting the partitions under the /srv/ftp. i would like to maintain them under /Windows/ dir.

    Is there no way to create a link to /Windows/ in the /srv/ftp folder? im sure there must be a way. If its possible to created directory aliasis in windows IIS, there's gotta be something in linux!

    Or.. Is there any way to maybe create an alias directory with Apache? I dont mind it being an anon http server if ftp wont work. I do remember reading somewhere abt changing settings in the apache config file to create an alias but I was lost when I read it. any ideas?

    also, SilentRage, guess im also open to changing the ftp root to /Windows/ instead of /srv/ftp as a last option..

  4. #14
    Linux Newbie
    Join Date
    Mar 2005
    Posts
    230
    If its possible to created directory aliasis in windows IIS, there's gotta be something in linux!

    The difference is windows doesn't have a chroot feature in their operating system. All ftp servers has to enforce the ftp root themself, and sometimes they fail to do the job properly and exploitation results. With the linux operating system, ftp software may use the chroot that is enforced by the kernel itself. This makes for far more secure implementations of virtual roots. Because of this level of security, symbolic links will not work for you.

    You may turn off chroot however. That'll make symbolic links work.

    Is there any way to maybe create an alias directory with Apache?

    Yes, most Apache implementations do not use chroot, so you can create aliases and/or symbolic links all day.

    im also open to changing the ftp root to /Windows/ instead of /srv/ftp as a last option

    This would be quite simple. You can change the default ftp root with the following line in vsftpd.conf:

    local_root=/Windows

    ***

    You can turn off chroot or set local root on a per user basis, just ask me how if you are interested.

  5. #15
    Just Joined! wraith's Avatar
    Join Date
    Apr 2005
    Location
    Sault Ste. Marie, Canada
    Posts
    54
    Ill try out your suggestion when I get home.. Just wondering what is excatly chroot?

  6. #16
    Linux Newbie
    Join Date
    Mar 2005
    Posts
    230
    Scroll down to the last post in the following topic. I explained chroot to a guy I was helping with BIND configuration:

    http://www.linuxforums.org/forum/topic-38104-0.html

    BTW: I think your sig would be funnier if you made it "Fighting for Peace" instead of "Fighting for War".

  7. #17
    Just Joined! wraith's Avatar
    Join Date
    Apr 2005
    Location
    Sault Ste. Marie, Canada
    Posts
    54
    thanx.. lol

  8. #18
    Just Joined! wraith's Avatar
    Join Date
    Apr 2005
    Location
    Sault Ste. Marie, Canada
    Posts
    54
    dang! adding the..
    Code:
     local_root=/Windows
    didnt help either!! same thing. It shows the Windows folder... but nothing inside it!

    Any clues on how to create an Alias in Apache??

    Ok... Im loosing hope now... It cant be this difficult, can it?

  9. #19
    Linux Newbie
    Join Date
    Mar 2005
    Posts
    230
    To add an alias in apache:

    Alias /Windows /Windows

    We can always check up on that other guy's theory that this is a permissions problem, despite my opinion that this isn't indicative of a permissions problem. Show me the results for the following command:

    ls -la /Windows

  10. #20
    Just Joined! wraith's Avatar
    Join Date
    Apr 2005
    Location
    Sault Ste. Marie, Canada
    Posts
    54
    ls -la /Windows/ gives....
    Code:
    Total 33
    drwxr-xr-x   6 root root   144 2005-03-30 06:28 .
    drwxr-xr-x  23 root root   536 2005-04-07 22:26 ..
    dr-xr-xr-x   1 root root  4096 2005-03-13 23:46 Audio
    dr-xr-xr-x   1 root root  8192 2005-03-13 23:46 Neuro
    dr-xr-xr-x   1 root root  4096 2005-03-13 23:46 Video
    drwxrwxrwx   9 root root 16384 1969-12-31 19:00 Virtuo

Page 2 of 3 FirstFirst 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •