[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 405
  • Last Modified:

linux ftp

Hello I need some help. I do not know linux at all. I hae heard of grep etc. I have a client that has a netware 6.5 server that is running ftp for his network. He wants to be able to move the ftp services to his linux box. I am on teh linux box now. Can anyone help. I am not even sure if ftp is loaded on this box. Thank you in advance. I
0
eberhardt2329
Asked:
eberhardt2329
  • 12
  • 7
1 Solution
 
eberhardt2329Author Commented:
i went in and said ftp 127.0.0.1 , and it said connected and tehn asked for the password. I do not have this password, I will see if teh client has it, but what shoudl I do next?
0
 
eberhardt2329Author Commented:
hey gave me the root password, but it says failed login
0
 
eberhardt2329Author Commented:
i tried username anonimous, and no password and this let me in. what do i do next?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
eberhardt2329Author Commented:
ok I went to a workstation in the network, and went to ftp://address of linux and it let me right in with anonomus. how do I make it so I can restrict what anonomous sees, and have users logon?
0
 
JammyPakCommented:
root is not permitted to use ftp by default....

the ftp server can be configured to allow 'local users' (ie. real user logins) or anonymous only, or both...
Yours is at least configured for anon we know..is that what you want?

what kind of linux are you running / which ftp server are you running?
In the ftp config, you'll be able to specify the 'pub' directory - ie. where the ftp content goes.

try this:
ps -ef | grep ftp
and report the results

also this:
rpm -qa | grep ftp
and report results

l
0
 
eberhardt2329Author Commented:
What I need to accomplish is to move all the ftp stuff to linux from teh novell server. Right now I can get into the ftp on the linux server. Teh anonomous needs to go straight to the pub directory and have full rights to a folderin this location called download. Then I have other users that need to see other locations on the srever. How do I give rights to users to create folders, upload files etc. Thank you so muchg


ps info

nobody   29206   570  0 12:49 ?        00:00:00 vsftpd
ftp      29208 29206  0 12:49 ?        00:00:00 vsftpd
root     29211 29169  0 12:53 pts/2    00:00:00 grep ftp

rpm info

lftp-2.5.2-5
anonftp-4.0-12
ftp-0.17-15
vsftpd-1.1.0-1
gftp-2.0.13-5
0
 
JammyPakCommented:
ok, so you're running vsftpd

here's a link to the man page for the config file (/etc/vsftpd/vsftpd.conf)
http://vsftpd.beasts.org/vsftpd_conf.html

In there, you'll see 'write_enable' which can be turned off or on - set that to 'on' to allow uploads to local users (but not to anon, they have their own setting).

Create a subdirectory of /var/ftp/pub called 'download' and give the ftp user account 'read' access to that directory and everything in it (or just make them world-readable)

For the non-anon users, they'll only be able to see and upload to where they actually have filesystem rights on the server, so you'll need to setup permissions for that.

that *should* be it...local users are not chroot'ed by default, so they should be able to 'cd' around once their ftp'd in.

0
 
eberhardt2329Author Commented:
i accidently dleted teh ftp user what do I do to rectify this bonehead move
0
 
JammyPakCommented:
ok...we now have 3 questions at the same point...a little bit crazy I guess.

oh well - you could recreate the user, ideally with the same SUID as the original. If you have to create a user, don't set a password, laeve it as disabled, and set the shell to /sbin/nologin

I don't think the user is explicitly listed in permissions lists anyway, so we should be ok there...I don't have my vsftpd server here, so I' can't check that right now
0
 
eberhardt2329Author Commented:
i tried the above, and it says please enter password for user?
0
 
eberhardt2329Author Commented:
even if I assign a password it will not let me logon as ftp
0
 
JammyPakCommented:
so /var/ftp and /var/ftp/pub should be owned by root.root, but also have r-x set for 'other'...this is how the ftp user is able to read the content. If you had explicitly set permissions for the content to the 'old' ftp user, then you'll need to re-grant the permissions to the 'new' ftp user, since the will have different SUIDs
0
 
eberhardt2329Author Commented:
ok the owner is root, how do I set r-x for other? also will this make it so the anonomous works again? because everything else is working iof we logon as other users, it just does not go straight in if i go ftp://ipaddressofserver it asks for a username and password
0
 
JammyPakCommented:
chmod -R o+rx /var/ftp

will set read and execute for everything inside of /var/ftp for everyone on the system...
0
 
eberhardt2329Author Commented:
i typed that and it says no such file or directory?
0
 
eberhardt2329Author Commented:
i typed chmod-r /var/ftp and that took, but how d I get it to take o+rx
0
 
eberhardt2329Author Commented:
it worked I must have just typed it wrong. Now what? how do I get anonomous to log in?
0
 
JammyPakCommented:
now that the ftp user should have read permissions to the directory, I would try ftp'ing in again as anon. I would use a command-line ftp so that you'll actually see any error messages that you receive.
0
 
JammyPakCommented:
glad it's all working!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 12
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now