Sponsored Content
Full Discussion: configuring vsftpd
Operating Systems Linux Red Hat configuring vsftpd Post 302627769 by paruhang on Saturday 21st of April 2012 06:41:36 PM
Old 04-21-2012
thank you,
admin_xor form my inner heart, your guidelines will help to improve my skills and clear my doubt about how to login in ftp and credit goes to you. i have some doubts hope you help me.

first i delete user khem from /etc/vsftpd/user_list and save. and change to premissive mode,

Code:
# setenforce 0
[root@workstation vsftpd]# getenforce
Permissive

it works with all users and again i convert in enforcing mode by following comman,

Code:
# setenforce 1
# getenforce
Enforcing

it doesn't work in Enforcing mode and i follow your instruction given by you in your post.

Code:
#getencorce
#getsebool -a | grep ftp_home_dir
#setsebool -P ftp_home_dir=1

and i tried it works successfully every user can ftp, to their respective home directory

Code:
# ftp 10.10.10.161
Connected to 10.10.10.161 (10.10.10.161).
220 (vsFTPd 2.2.2)
Name (10.10.10.161:khem): khem
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/home/khem"

# ftp 10.10.10.161
Connected to 10.10.10.161 (10.10.10.161).
220 (vsFTPd 2.2.2)
Name (10.10.10.161:khem): guest
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/home/guest"

# ftp 10.10.10.161
Connected to 10.10.10.161 (10.10.10.161).
220 (vsFTPd 2.2.2)
Name (10.10.10.161:khem): ashim
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/home/ashim"

what i want to do is, i want to create folder name 'files' inside /var/ftp/pub/

and anytime any users login with ftp server they should redirect to /var/ftp/pub/files not in their respective directory so everybody shares data from /var/ftp/pub/files.

can anybody give me any kinds of ideas, suggestions or guidelines i'll be greatful and any all ideas, suggestion and guidelines are welcome.

THANK YOU IN ADVANCE
Moderator's Comments:
Mod Comment Link: How to use code tags

Last edited by Scrutinizer; 04-22-2012 at 03:06 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Service + vsftpd

Hello, I have two problems: 1. The service command does not work on my system! I mean when I enter: service ... start I get: bash: service: command not found 2. I want to launch my vsftpd server. I tried to launch it using service command and you see that it didn't work! Please help... (1 Reply)
Discussion started by: HSN
1 Replies

2. Linux

VSFTPD, cannot login

I setup vsftpd.conf as follows and tried to login using root and normal user 'winston' but failed authentication. Any idea what's wrong? ======================== CONTENTS OF /etc/vsftpd/vsftpd.conf anonymous_enable=NO local_enable=YES dirmessage_enable=YES connect_from_port_20=YES... (3 Replies)
Discussion started by: panggou
3 Replies

3. UNIX for Dummies Questions & Answers

Problem using VSFTPD

Hello, When my fellow employees loggin to the FTP server they have no problems if they use FTP clients. When they try and access the FTP site using their browsers using ftp://<domain> name all they get is a pub directory which is empty. They are not even prompted for loggin. How to fix... (2 Replies)
Discussion started by: mojoman
2 Replies

4. UNIX for Dummies Questions & Answers

VSFTPD

Hi, I am using VSFTPD. I have instructed it to send all logging informartion to /var/log/messages. I would like it to record the names of users who have failed loggin attempts. I have read up on it but have not found out how to do this. Any ideas? (1 Reply)
Discussion started by: mojoman
1 Replies

5. UNIX for Dummies Questions & Answers

vsftpd with SSL

Hi there. Im studying and i've got an exercise that i cannot fully understand. Im trying and testing, but it didnt works What i need to configure ftps ( vsftpd ) with openssl? (1 Reply)
Discussion started by: andriusman
1 Replies

6. UNIX for Dummies Questions & Answers

Vsftpd not installing

$ rpm -ivh vsftpd-2.2.2-6.el6.i686.rpm warning: vsftpd-2.2.2-6.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied) why is it actually happening am goin nuts plzz help me out :( (1 Reply)
Discussion started by: lost101
1 Replies

7. UNIX for Advanced & Expert Users

Vsftpd serious issues

hello mighty all there's a problem in vsftpd it allows to delete files which have 000 mode and root:root owner also 400 even with option deny_file={those_files} - still allowed i'm doing it through mc through ftp-shell it's not allowed it's not working if mother-dir have -w and not working... (3 Replies)
Discussion started by: tip78
3 Replies

8. UNIX for Dummies Questions & Answers

Vsftpd is not working

Hi, I installed debian jessie and friend asked me to install for him vsftpd, of course, first I try at my vps, but I don't get it to work. there are many tutorials to install ftp server but as i said, it is not working and beside running ftp server, I need for him and some GUI to use it, he is... (2 Replies)
Discussion started by: alanford
2 Replies

9. UNIX for Dummies Questions & Answers

Vsftpd

Hello I am new to linux. I have recently installed vsftpd in my Centos server. I have set the local_umask=0037. But now i can't understand how the window users added in a centos server can see each-other folder. ---------- Post updated at 05:59 AM ---------- Previous update was at 05:55 AM... (7 Replies)
Discussion started by: Maham Zahid
7 Replies

10. UNIX for Advanced & Expert Users

Does vsftpd support user access with client certificate with priv/pub key + vsftpd certificate?

:rolleyes:I am trying to setup all certificate based client-server environment in Linux using vsftpd and curl with openssl. I would like to make a user access with vsftpd certificate and user own client certificate (self-signed) with private/public key. I don't see google posts about the my plan... (4 Replies)
Discussion started by: gogogo
4 Replies
All times are GMT -4. The time now is 09:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy