Fedora Servers :: Vsftpd Virtual Shows All Of Filesystem
Jan 18, 2009
Vsftpd virtual users, when a user connects via of ftp they can view all files in the file system. Have a virtual web server and vsftpd working, each user's username is their domain name. FTP works, but not the way I wish for it to work. I only wish for a user to be able to view the files under their username, not the entire Fedora file system and limit changes to files ONLY under their domain name.
I am running vsftpd-2.2.2-3 on my Fedora 12 box. This box has multiple IPs. What I am looking for is make vsftpd listen on those multiple IPs and when a user FTPs to a certain IP, they get landed to the home directory that has been configured for the IP.
This feature is there in Proftpd and is called virtual hosting. I tried to find for Vsftpd such feature, but couldn't find out exactly how to implement in it. how to implement virtual hosting in Vsftpd?
I just set up vsftpd, from the localhost it works just fine, but when i try to acess it from the network, via firefox or the osx "connect to server" i get a message can't establish connection.
I 'm a new to setting up servers, so maybe i just havent set any neccessary paramters for anonymous login.
i've set a server Fedora 11 using Vsftpd + database berkley + ssl 'certificate) he works perfectly. So i wanted to set a new one on Fedora 14, there is the problem..On my fedora 14, i tryed to use the configuration file that i've made on the F11 but withtout success. It seems that when i activate the SSL option on the server it does not want to start anymore... and i have no errors messages. I notice that when i desactivate the SSL "ssl_enable=NO" my server on F14 can start normaly.
I'm rather new to Fedora server, but I'm attempting to run a music FTP server, where anonymous users can submit songs into one particular folder (so i can personally tag them), while other user accounts have full read-write. Here we go: I 2 directories, /music and /untagged
I want anonymous users to be able to read both directories, but only be able to upload to /untagged, and not be able to delete anything. I want users that I select to have full read-write-create-delete privileges. how would I go about this with vsftpd?
I'd like to configure vsftpd server in a way to allow remote user (local) too see and edit configuration files in their ftp directory starting from dot (like .htaccess, for example). With default configuration + "local_allowed = yes" it does not appear to be possible:user can successfully upload .file but could neither see if it is in directory nor download it.
I've just upgraded my serv from fedora8 to fedora12 and got a problem. The httpd and vsftpd add a junk in the beginning of html files. Png, tar and other files are ok. When I make a request to localhost everything is ok.
Code: #telnet localhost 80 GET /1.html <html> </html> but from any other computer.
Code: ..... But this is not an apache problem. When I dl html files from ftp I got the same problem. Iptables is swithed off.
I have a running instance of vsftpd. It works like I want for ftp.thisdomain.com and now I want to have it serve for ftp.thatdomain.com from a diifferent document root at the same time. Just lik I can do with Apache. Is this possible? So browsing to ftp.thisdomain.com will take you do /home/ftp/.And browing to ftp.that domain. com will take you to /home/ftp/thatdomain/
I thought someone might find this useful and not have to lose a day for getting it work... (as I did)...
so this is a Tutorial HowTo based on Virtual Hosting With vsftpd And MySQL On Debian Etch but with modifications needed to work on CentOS 5 (in my case it was CentOS 5.4 x86 32bit).
You will need (if not already installed): yum install vsftpd mysql-server
Using THIS I was able to get virtual users working via standard ftp. After wrestling with selinux and such I'm able to log in as a user defined in the virtual-users file.
At the bottom is the vsftpd.conf. I can start the server no problem. I've been making edits to it so I'm not sure what's right/wrong at this point in it. I have a snapshot I keep reverting to where ftp works with virtual users and then I start monkeying with it again.
First problem I have is I'm not exactly sure how to test it. If I use WinSCP, I try SFTP and in the vsftpd.log I see:
I am very new to linux, and I have a question regarding the filesystem check (fsck). The power recently went out and when I tried to restart linux the following error appears:
*/dev/sda1 contains file system w/errors, check forced it then goes on to say..
*An error occured during the file system check. Dropping you to a shell; the system will reboot when you leave the shell. Give root password for maintenance (or type Control-D to continue) I wasn't sure what to do, but checked some other online forums and they suggested running fsck manually - so I typed in the root password - and used the command, "fsck -A -V ; echo == $? ==" it then gave the following message
*WARNING!!! Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage *Would you like to continue (y/n)
Again, I wasn't sure what to do so i just checked no. I then manually turned off the computer and was prompted at the beginning to press Alt-3. I was brought to another screen and it informed me one of the drives was degraded and suggested rebuilding the array. I tried doing this, but it still brings me back to the original error of, "/dev/sda1 contains file system w/errors, check forced," and the process continues.
Also, when I tried to rebuild the array, I didn't backup any of the data on our home directory before doing this (which was probably a big mistake). After being prompted to type the root password, I was able to give the ls command and look at all the directories...the home directory where our data was stored was empty and I am afraid I may have lost some information. Is there a possibility that data was lost when I was trying to rebuild using the old drives?
Linux and have a western digital server (my book world edition) I can access it with Ubuntu 11.04, just by downloading Samba and then by clicking on network and the server shows up, but with Fedora 15, after I have installed Samba, I click on network and all that shows up is my router?
Have the following partitions, I've grown md1 from 3 drives to 4 drives with mdadm. It is now the size below of 531899712 from 354599292.
[Code].....
As you can see above however, the filesystem is not growing. What am I missing. I don't believe I need to do anything with the partitions. I should just resize my array as I have and xfs_grow and be finished.
I have installed vsftpd by "yum -y install vsftpd",disabled anonymous login and set .When I use a linux client's file browser to login using a user account "ftpacc" by ftp://ip_address, its location is "/" instead of /home/ftpacc".When I use a window client to login, its location is "/home/ftpacc"
I receive the message "SELinux is preventing /usr/sbin/vsftpd "net_raw" access" many times. Found this bug at redhat but really do not understand what i should do about it ((( Kindly let me know how to change this to normal. Shut down Selinux is not the way out.
I tried to do a scheduled software update several times today (8/20/11) and nothing seems to download, though I do get the "Downloading" PackageKit dialog message (the System Monitor shows practically no network activity). In between tries I downloaded some 600 MB .iso files (about 10 minutes each) so I know my internet is working properly. That leaves either PackageKit got hosed in my last update, or servers are down.
I install suse 11.4 (KDE) in my lap top. The problem is that the taskbar shows all the application from all 4 desktop. I want to restrict to taskbar to show the application of its own desktop only, not that of other desktops.
I am experiencing a problem with virtual box 4. Did an install from binary, and everything went ok and virtual box launches, but once I have created the virtual disk and the want to run it, I get an error, and the log says that it has to do with the ext4 filesystem and has a known kernel bug. How does one go about sorting this out. Here with the log from virtual box.
00:00:00.654 VirtualBox 4.0.4 r70112 linux.x86 (Feb 17 2011 17:29:29) release log 00:00:00.654 Log opened 2011-03-22T15:50:28.174435000Z 00:00:00.654 OS Product: Linux 00:00:00.654 OS Release: 2.6.34.7-0.7-desktop 00:00:00.654 OS Version: #1 SMP PREEMPT 2010-12-13 11:13:53 +0100 00:00:00.654 DMI Product Name: HP Pavilion dv6700 Notebook PC 00:00:00.654 DMI Product Version: Rev 1 00:00:00.655 Host RAM: 1988MB RAM, available: 1595MB .....
Then tried moving the vbox files to my home partition which is ext3, but it says that file system is unknown, again herewith log: 00:00:00.589 VirtualBox 4.0.4 r70112 linux.x86 (Feb 17 2011 17:29:29) release log 00:00:00.589 Log opened 2011-03-22T16:06:15.412283000Z 00:00:00.589 OS Product: Linux 00:00:00.589 OS Release: 2.6.34.7-0.7-desktop 00:00:00.589 OS Version: #1 SMP PREEMPT 2010-12-13 11:13:53 +0100 00:00:00.589 DMI Product Name: HP Pavilion dv6700 Notebook PC 00:00:00.589 DMI Product Version: Rev 1 00:00:00.590 Host RAM: 1988MB RAM, available: 1476MB .....
I used qemu sucesfully on F9 but I can't find it on F10. I can't create a virtual machine. I tried installing qemu from rpms that I found on their site without any luck. How can I create a virtual machine on F10?
We have a virtual XP machine on our fedora 11 install. I want to drop fedora 11 down to init3 (since its a server anyway) and everyone is worried about the windows virtual machine dying. What would happen to my windows virtual machine if I drop the host server to init 3?
I have an F12 installation on which I have installed NoMachine's NX server. I can remote in nicely when needed (try to do as much as possible via SSH) while not having to boot into and stay on Gnome on the server and run VNC.I noted that when I try to start the Virtual Machine Manager from an NX session, I get an error that VMM is "unable to open a connection to the libvirt management daemon". libvirtd is running, however. And, when I startx on the server and try there, VMM works fine.Is this an inherent problem with the use of VMM, or something correctable?
I have 8 VMs on this virtual machine running different OS. Can VMs be moved/copied to another PC of similar hardware config running Fedora 12 (64bit) as host and KVM
If Yes, whether copying following files,
e.g. copying following files and paste them on the same /path/to/directory