Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 05-04-2009, 06:42 PM   #1 (permalink)
mekalodu
 
iinfi's Avatar
 
Join Date: Oct 2004
Location: Navi Mumbai
Posts: 1,518
Question creating an ftp server .. minor issue


its been some time since i have done this and now i am facing some issues.

i need to create just an anonymous ftp server using vsftpd.

Code:
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
anon_root=/ftp/
when i leave the anon_root parameter to default i dont face any issue. when i change it to /ftp with file permissions as below

Code:
[root@localhost ~]# ll / | grep ftp
drwxrwxrwx   3 ftp  ftp   4096 Apr  4 16:04 ftp
[root@localhost ~]#
i get the following error

Code:
[root@client ~]# ftp 192.168.5.221
Connected to 192.168.5.221.
220 Welcome to blah FTP service.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (192.168.5.221:root): ftp
331 Please specify the password.
Password:
500 OOPS: cannot change directory:/ftp
Login failed.
ftp>


when i dont change the anon_root parameter i dont face any issue and if i type ftp://192.168.5.221 the pub folder shows up.

but when i change the parameter i get a login box and whatever i do i cannot login to the ftp server.

plz help
__________________
mekalodu
iinfi is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 05-04-2009, 11:49 PM   #2 (permalink)
mekalodu
 
iinfi's Avatar
 
Join Date: Oct 2004
Location: Navi Mumbai
Posts: 1,518
Default Re: creating an ftp server .. minor issue

update:
the system which i m using is RHEL 5.3


and i just found out that if i keep SE Linux as permissive or disabled things work as they should. and i changed the owner and group of /ftp to root:root

ftp://192.168.5.221 takes me to the contents of the /ftp drive

does anyone know how to proceed with SE Linux kept on?

thanks
__________________
mekalodu
iinfi is offline  
Old 06-04-2009, 03:05 AM   #3 (permalink)
String Phreak
 
mediator's Avatar
 
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
Default Re: creating an ftp server .. minor issue

As root,
Code:
setsebool -P ftp_home_dir=1
setsebool -P allow_ftpd_anon_write=1
I guess you don't know much bt selinux. Keep it to permissive mode for it can lead to plenty of hassles and just observe the log if you want to learn it. Enforce it when u really r confident bt it.
__________________
Bad Bad server.....No candy for u!
mediator is offline  
Old 06-04-2009, 08:15 PM   #4 (permalink)
mekalodu
 
iinfi's Avatar
 
Join Date: Oct 2004
Location: Navi Mumbai
Posts: 1,518
Default Re: creating an ftp server .. minor issue

no i dont ... thanks for your help
__________________
mekalodu
iinfi is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Charan

Advertisement




All times are GMT +5.5. The time now is 04:34 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2