|
Next: [gentoo-user] How does Portage prioritze emerges ..
|
| Author |
Message |
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 |
|
 |  |
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 |
|
 |  |
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 |
|
 |  |
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 |
|
 |  |
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 |
|
 |  |
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 |
|
 |  |
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 |
|
 |  |
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>
>
> 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 |
|
 |  |