Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

FTP

 
   Soft32 Home -> Linux -> SUSE RSS
Next:  [gentoo-user] How does Portage prioritze emerges ..  
Author Message
Barely Audible

External


Since: Aug 01, 2007
Posts: 4



(Msg. 1) Posted: Wed Aug 01, 2007 12:47 pm
Post subject: FTP
Archived from groups: alt>os>linux>suse (more info?)

I have installed vsftpd but I am wondering how I set it up so that FTPing
requires a password? The docs do not seem to cover this?

Also when I ftp into the server I get a blank folder?

--
TTFN
Jim

'Interdum feror cupidine partium magnarum Europae vicendarum!'
Back to top
Login to vote
TGGA

External


Since: Aug 01, 2007
Posts: 7



(Msg. 2) Posted: Wed Aug 01, 2007 1:47 pm
Post subject: Re: FTP [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Some being by the name of Barely Audible managed to piece together the
following:

> I have installed vsftpd but I am wondering how I set it up so that FTPing
> requires a password? The docs do not seem to cover this?
>
> Also when I ftp into the server I get a blank folder?
>

You really do need to read the manual. Have you looked at /etc/vsftpd.conf
or is that /etc/vsftp.conf - if you don't read the manul you're leaving
yourself wide open.

--
The trouble with women is that they never put the toilet seat back up!
Back to top
Login to vote
Barely Audible

External


Since: Aug 01, 2007
Posts: 4



(Msg. 3) Posted: Wed Aug 01, 2007 2:47 pm
Post subject: Re: FTP [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

TGGA wrote:

> Some being by the name of Barely Audible managed to piece together the
> following:
>
>> I have installed vsftpd but I am wondering how I set it up so that FTPing
>> requires a password? The docs do not seem to cover this?
>>
>> Also when I ftp into the server I get a blank folder?
>>
>
> You really do need to read the manual. Have you looked at /etc/vsftpd.conf
> or is that /etc/vsftp.conf - if you don't read the manul you're leaving
> yourself wide open.
>

Manual? You mean that four-page installation document which isn't that much
help!

--
TTFN
Jim

'Interdum feror cupidine partium magnarum Europae vicendarum!'
Back to top
Login to vote
TGGA

External


Since: Aug 01, 2007
Posts: 7



(Msg. 4) Posted: Wed Aug 01, 2007 2:47 pm
Post subject: Re: FTP [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Some being by the name of Barely Audible managed to piece together the
following:

>>> Also when I ftp into the server I get a blank folder?
>>>
>>
>> You really do need to read the manual. Have you looked at
>> /etc/vsftpd.conf or is that /etc/vsftp.conf - if you don't read the manul
>> you're leaving yourself wide open.
>>
>
> Manual? You mean that four-page installation document which isn't that
> much help!

You really really should read it. If you haven't edited the vsftp.conf it
won't be working properly in any case (from memory - I use pureftpd myself,
so can't confirm right now). Without going through the full configuration
you'll be leaving yourself wide open.

--
The trouble with women is that they never put the toilet seat back up!
Back to top
Login to vote
Theo v. Werkhoven

External


Since: Aug 01, 2007
Posts: 13



(Msg. 5) Posted: Wed Aug 01, 2007 3:47 pm
Post subject: Re: FTP [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The carbonbased lifeform Barely Audible inspired alt.os.linux.suse with:
> I have installed vsftpd but I am wondering how I set it up so that FTPing
> requires a password? The docs do not seem to cover this?

It's a bit hidden.

In vsftpd.conf:
pam_service_name=ftp

In /etc/pam.d/ftp:
auth required /lib/security/pam_userdb.so db=/etc/vsftpd_login
password required pam_userdb.so db=/etc/vsftpd_login

Now you have to make a vsftpd_login.txt file, containing:
<loginname1>
<passwd1>
<loginname2>
<passwd2>

And then:
db_load -t hash -f vsftpd_login.txt vsftp_login.db

This makes the db file for PAM to read.
N.b. make sure there is no .db suffix on the filename in the pam file.
db_load comes from db-utils-4.4.20-16

> Also when I ftp into the server I get a blank folder?

With 'folder' you mean directory?
Are the files in the directory readable by the ftp user 'guest_username'?

Search 'man vsftpd.conf' for virtual and read what to change to setup
virtual users.
The example directory /usr/share/doc/packages/vsftpd/EXAMPLE/ or the
examples on the website are pretty self-explanatory.

Theo
--
theo at van-werkhoven.nl ICQ:277217131 SuSE Linux
linuxcounter.org: 99872 Jabber:muadib at jabber.xs4all.nl AMD XP3000+ 1024MB
"ik _heb_ niets tegen Microsoft, ik heb iets tegen
de uitwassen *van* Microsoft"
Back to top
Login to vote
Barely Audible

External


Since: Aug 01, 2007
Posts: 4



(Msg. 6) Posted: Wed Aug 01, 2007 5:47 pm
Post subject: Re: FTP [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Theo v. Werkhoven wrote:

> The carbonbased lifeform Barely Audible inspired alt.os.linux.suse with:
>> I have installed vsftpd but I am wondering how I set it up so that FTPing
>> requires a password? The docs do not seem to cover this?
>
> It's a bit hidden.
>
> In vsftpd.conf:
> pam_service_name=ftp
>
> In /etc/pam.d/ftp:
> auth required /lib/security/pam_userdb.so db=/etc/vsftpd_login
> password required pam_userdb.so db=/etc/vsftpd_login
>
> Now you have to make a vsftpd_login.txt file, containing:
> <loginname1>
> <passwd1>
> <loginname2>
> <passwd2>
>
> And then:
> db_load -t hash -f vsftpd_login.txt vsftp_login.db
>
> This makes the db file for PAM to read.
> N.b. make sure there is no .db suffix on the filename in the pam file.
> db_load comes from db-utils-4.4.20-16
>
>> Also when I ftp into the server I get a blank folder?
>
> With 'folder' you mean directory?
> Are the files in the directory readable by the ftp user 'guest_username'?
>
> Search 'man vsftpd.conf' for virtual and read what to change to setup
> virtual users.
> The example directory /usr/share/doc/packages/vsftpd/EXAMPLE/ or the
> examples on the website are pretty self-explanatory.
>
> Theo

When running the db command I get the following

db_load: line 1: unexpected format

--
TTFN
Jim

'Interdum feror cupidine partium magnarum Europae vicendarum!'
Back to top
Login to vote
Theo v. Werkhoven

External


Since: Aug 01, 2007
Posts: 13



(Msg. 7) Posted: Thu Aug 02, 2007 1:47 pm
Post subject: Re: FTP [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The carbonbased lifeform Barely Audible inspired alt.os.linux.suse with:

would it have hurt to trim some lines yourself?

> Theo v. Werkhoven wrote:
>
>> The carbonbased lifeform Barely Audible inspired alt.os.linux.suse with:
>>> I have installed vsftpd but I am wondering how I set it up so that FTPing
>>> requires a password? The docs do not seem to cover this?
>>
>> It's a bit hidden.
>>
>> In vsftpd.conf:
>> pam_service_name=ftp
>>
>> In /etc/pam.d/ftp:
>> auth required /lib/security/pam_userdb.so db=/etc/vsftpd_login
>> password required pam_userdb.so db=/etc/vsftpd_login
>>
>> Now you have to make a vsftpd_login.txt file, containing:
>> <loginname1>
>> <passwd1>
>> <loginname2>
>> <passwd2>
>>
>> And then:
>> db_load -t hash -f vsftpd_login.txt vsftp_login.db
[..]
>
> When running the db command I get the following
>
> db_load: line 1: unexpected format

My bad.
Use:
db_load -T -t hash -f vsftpd_login.txt vsftpd_login.db

$ cat vsftpd_login.txt
theo
test

$ db_load -T -t ...

$ db_dump -p vsftpd_login.db
VERSION=3
format=print
type=hash
db_pagesize=4096
HEADER=END
theo
test
DATA=END

Theo
--
theo at van-werkhoven.nl ICQ:277217131 SuSE Linux
linuxcounter.org: 99872 Jabber:muadib at jabber.xs4all.nl AMD XP3000+ 1024MB
"ik _heb_ niets tegen Microsoft, ik heb iets tegen
de uitwassen *van* Microsoft"
Back to top
Login to vote
Barely Audible

External


Since: Aug 01, 2007
Posts: 4



(Msg. 8) Posted: Thu Aug 02, 2007 4:47 pm
Post subject: Re: FTP [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Theo v. Werkhoven wrote:

> The carbonbased lifeform Barely Audible inspired alt.os.linux.suse with:
>
> would it have hurt to trim some lines yourself?

<whimper> Wink

>

> My bad.
> Use:
> db_load -T -t hash -f vsftpd_login.txt vsftpd_login.db
>
> $ cat vsftpd_login.txt
> theo
> test
>
> $ db_load -T -t ...
>
> $ db_dump -p vsftpd_login.db
> VERSION=3
> format=print
> type=hash
> db_pagesize=4096
> HEADER=END
> theo
> test
> DATA=END

Worked perfectly - thanks Theo!

--
TTFN
Jim

'Interdum feror cupidine partium magnarum Europae vicendarum!'
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Surely suse is not this popular - At time of posting and accorind to torrentspy.com there are over 185437 people downloading Suse! No way! ..

YAST - Change Location Problem - Having problem with YAST (SLES9) where the original source of installation was deleted via 'Change Source of..

pro100 - McDoo wrote: ..> I just purchased the pro/1000 gt nic. Suse 10.2 does not seem to have a >> diver for them....

openSuSE 10.2 No virtual consoles at RunLevel 5? - Hi, a.o.l.s Just migrated to 10.2 (from 9.3). Most stuff seems to be working, but just noticed that I can't use the..

System resolution timer too low - When I try to start the Rosegarden4 MIDI sequencer it trows up a box that says my system timer resolution is too low an...

How can i register a link protocol for browsers - I want to add an action to the system so that every time a user clicks in a link with for example ..
       Soft32 Home -> Linux -> SUSE All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]