The default anonymous login directory is /var/ftp/
To change the default from /var/ftp to any other directory (say /data)
edit /etc/vsftpd/vsftpd.conf file add entry.
local_root=/data
save the file and restart the vsftpd services using command
services vsftpd restart.
Change the default ftp user account home folder to point to the new location.
before change ftp account info in /etc/passwd file
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
chmod -d /data ftp # To change the home directory for ftp user.(This is optional for read only access)
ftp:x:14:50:FTP User:/data:/sbin/nologin
Now when you login as anonymous user, the login directory will be /data.
Blog Archive
-
►
2010
(79)
-
►
June
(11)
- Protect Web Directories using .htacess
- eth0_rename in ethernet card
- Reset windows password using linux live CD
- IPP printer configuration in windows
- Reinstall WIndows Fax and Picture viewer
- Stream audio in Bluetooth Headset using Dongle
- Convert image files to text
- Configuring exim4 in Ubuntu to use GMail for SMTP
- Change apache2 web directory
- Checking webserver vulnerabilities
-
►
June
(11)
-
▼
2009
(22)
-
▼
December
(15)
- adding xp recovery console to boot menu option
- Receive email anonymously
- Change vsftpd login default path
- Make SMTP mail server in xp
- Enable cmd / regedit xp
- Installing RAID in server 2003
- How to install subversion (SVN) and create users
- Adding user and adding user to group in LINUX
- View all users in linux
- Configure TCP/IP from the Command Prompt
- ctrl alt Del in Remote Desktop
- Adding a startup script to be run at bootup in Lin...
- Change Ownership of Group and user in Linux
- Setting Up file Ownership and Permissions in Linux...
- Check the amount of Space occupied by a Directory
-
▼
December
(15)
Friday, December 25, 2009
Subscribe to:
Post Comments (Atom)


0 comments:
Post a Comment