LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-07-2018, 04:06 AM   #1
netaccs
LQ Newbie
 
Registered: Mar 2018
Posts: 26

Rep: Reputation: Disabled
vsftpd chroot


Netgear stora NAS Linux axentraserver.get.mystora.com 2.6.22.18-Netgear #16 Sun Jun 13 19:54:46 EDT 2010 armv5tejl armv5tejl armv5tejl GNU/Linux
I think is Debian, but not sure. There is installed vfftpd on it.
I have user called "niki" which I use to access ftp.
Code:
id niki
uid=502(niki) gid=503(niki) groups=503(niki),100(users),501(admins)

etc/passwd
niki:x:502:503::/home/niki:/bin/bash

ll /home/ |grep niki
drwxr-s---  3 niki            www               85 Mar 21  2018 

ll /home/niki/
drwsrws--- 11 niki www   119 Nov 27 22:38 storage

ll /home/niki/storage/
drwxrwxr-x  9 niki www 4.0K Dec  6 16:27 Video
This is vsftpd.conf
Code:
vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=007
#chroot_list_enable=YES
#chroot_local_user=NO
#user_config_dir=/etc/vsftpd/vsftpd_user_conf
# (default follows)
#chroot_list_file=/etc/vsftpd/chroot_list
listen=YES
#listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
charset_filter_enable=YES
charset_client=UTF-8
charset_server=UTF-8
force_local_data_ssl=NO
force_local_logins_ssl=NO
rsa_cert_file=/etc/vsftpd/vsftpd.pem
pasv_max_port=50100
pasv_min_port=50000
pasv_enable=YES
port_enable=YES
ssl_enable=YES
How to disable chrooting? With current configuration I can make up and browse everything.

Thanks in advance !
 
Old 12-07-2018, 05:57 AM   #2
vsukt
LQ Newbie
 
Registered: Oct 2018
Location: Mumbai, India
Distribution: Debian, CentOS, Linux Mint
Posts: 3

Rep: Reputation: Disabled
Quote:
Originally Posted by netaccs View Post

How to disable chrooting? With current configuration I can make up and browse everything.
Hi, It should work as chroot disabled as per configuration. Try uncommenting #chroot_local_user=NO and restart the service.
 
Old 12-07-2018, 06:09 AM   #3
netaccs
LQ Newbie
 
Registered: Mar 2018
Posts: 26

Original Poster
Rep: Reputation: Disabled
I try that, but still can chroot. Also tried "chroot_list_enable=YES"
in "chroot_list_file=/etc/vsftpd/chroot_list" enter my user and also try with empty file.
Everytime restarting vsftpd using init.d/ and restarting filezila ftp client.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[VSFTPD] 500 OOPS: vsftpd: refusing to run with writable root inside chroot() srijur Linux - Server 1 03-31-2014 05:10 AM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 11:30 AM
vsftpd.conf/chroot/vsftpd.chroot_list issue Jerman Linux - Security 2 06-01-2007 08:24 PM
mount command not working in chroot. and now chroot not working mohit.jain Linux From Scratch 5 07-14-2006 04:57 AM
to chroot or not to chroot complus Linux - Security 4 02-29-2004 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:33 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration