LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-16-2008, 05:09 PM   #1
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Rep: Reputation: 31
vsftpd default directory?


i have just enabled vsftpd by uncommenting the line out in inetd.conf. i am wondering where the default directory for the demon is, any tips etc would be appreciated. =)
 
Old 10-16-2008, 07:31 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
If you have this feature in /etc/vsftpd.conf:
local_enable=YES

Then, if you login as local user ninja_master, default dir is /home/ninja_master

Or if you have anonymous_enable=NO commented in /etc/vsftpd.conf and nopriv_user=ftp,
I believe the defaul dir will be /home/ftp (the default dir for ftp user as defined in /etc/passwd)
 
Old 10-16-2008, 09:09 PM   #3
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
There can be several "default" directories, as it depends on the configuration (as mentioned by keefaz) and to which daemon you are referring (master vsftpd or the slave vsftpd's). And the default directory also depends on several chroot settings, or if and how virtual users are configured.

In any case, you can determine any processes current directory by looking at /proc/PID/cwd, for a given process ID PID.
 
Old 10-17-2008, 11:45 AM   #4
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Original Poster
Rep: Reputation: 31
thanks, i found my default is /home/ftp by "touch test" in the directory. and then pointed my browser to ftp://127.0.0.1/

Last edited by ninja master; 10-17-2008 at 12:00 PM.
 
Old 10-17-2008, 02:40 PM   #5
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
"grep ftp /etc/passwd" would have been easier.
 
Old 11-13-2008, 01:58 AM   #6
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,065

Rep: Reputation: 146Reputation: 146
If vsfftpd is just for the use of yourself or people you trust, I recommend using ssh instead, with commands such as rcp (to copy a remote file.)
 
Old 11-19-2008, 01:03 AM   #7
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Original Poster
Rep: Reputation: 31
ok im back with some vsftp issues. i set

Code:
pasv_enable=YES
pasv_min_port=35000
pasv_max_port=36000
and forwarded 20-21 and 35000-36000, but my friends firefox still cannot access my ftp server. i issued rc.inetd restart. i get the ftp server no problem in my firefox, and know i have to "mount --bind /home/ftp/folder /home/user/foldertoshareonftp" or backwards the folders to get the folder shared. am i doing something wrong? this is for people i love, and for people i hate. my friends that will certainly try to sabitoge my server.

thanks =) i love u LQ!!! lol im such a retard i couldnt function with out lq lol.
 
Old 11-21-2008, 06:07 PM   #8
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Original Poster
Rep: Reputation: 31
ok i found out my isp is like a dirty outhouse for port 21, and blocks it. my next issue is that i have to issue
Code:
mount --bind /home/user/folder /home/ftp/folder
to get it to load the folder. and im wondering how to automatically do this upon boot. i would just throw it in the fstab, but i believe that it is difrent. ill poke around and see what i can get to automount.
 
Old 11-21-2008, 06:32 PM   #9
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
Edit /etc/rc.d/rc.local and add

Code:
mount --bind /home/user/folder /home/ftp/folder
 
Old 11-21-2008, 06:37 PM   #10
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Original Poster
Rep: Reputation: 31
i have fixed this via fstab via post 2 in this link
http://www.linuxquestions.org/questi...roblem-383883/
 
  


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
change default vsftp anonymous accout directory /var/ftp to other directory? hocheetiong Linux - Newbie 2 01-24-2010 06:33 PM
Setting default root with chroot in vsFTPd Dionysos Linux - Security 4 03-25-2005 11:45 AM
How to chnage default FTP directory for vsftpd ? patiwat Linux - Newbie 1 08-01-2003 08:25 AM
vsftpd xinetd bbbbbbbbbbbbbChanging default port jakcap Linux - Newbie 2 07-26-2003 06:30 PM
Changing default directory / vsftpd chrisknight Linux - Software 5 03-27-2003 06:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:37 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