View previous topic :: View next topic |
Author |
Message |
Rain Designs Tux's lil' helper
Joined: 01 Jul 2002 Posts: 130 Location: Los Angeles, CA
|
Posted: Mon Jan 06, 2003 5:47 am Post subject: proftpd |
|
|
I run proftpd on mandrake and I can't figure out how to add a user!!!
This is what I tried...
Code: | #adduser username -p password -g users -G wheel
#cd /etc/init.d
#./proftpd stop
#./proftpd start
|
went to ftp://username:password@mydomain didn't work. Then tried to login with ftp://alex:password#mydomain and it worked. I added alex when I installed mandrake, the installer asked if I wanted other users, I said yes, and added alex. Any ideas?
Thanks
Rain _________________ ^M = Death by notepad
http://www.raindesigns.com |
|
Back to top |
|
|
cram Guru
Joined: 17 Nov 2002 Posts: 312 Location: Saskatoon, Canada
|
Posted: Mon Jan 06, 2003 6:34 am Post subject: |
|
|
if your version of adduser doesn't automatically create home directories, that could result in a refused connection _________________ aaarggghhhh.
Good point Chewie. |
|
Back to top |
|
|
Rain Designs Tux's lil' helper
Joined: 01 Jul 2002 Posts: 130 Location: Los Angeles, CA
|
Posted: Mon Jan 06, 2003 3:19 pm Post subject: |
|
|
I'm pretty sure that /home/username is the default home directory. I'll try to add the home directory and see if that works.
Thanks
Rain _________________ ^M = Death by notepad
http://www.raindesigns.com |
|
Back to top |
|
|
really Guru
Joined: 27 Aug 2002 Posts: 430 Location: nowhere
|
Posted: Mon Jan 06, 2003 3:51 pm Post subject: |
|
|
you need to add the username to /etc/proftpd/proftpd.conf _________________ NoManNoProblem
Get lost before you get shot. |
|
Back to top |
|
|
Rain Designs Tux's lil' helper
Joined: 01 Jul 2002 Posts: 130 Location: Los Angeles, CA
|
Posted: Tue Jan 07, 2003 1:02 am Post subject: |
|
|
well...
proftpd.conf was in /etc so I edited it, but it didn't say anything about usernames. Got any other ideas?
Thanks,
Rain _________________ ^M = Death by notepad
http://www.raindesigns.com |
|
Back to top |
|
|
jukka Apprentice
Joined: 06 Jun 2002 Posts: 249 Location: Zurich, Switzerland
|
Posted: Tue Jan 07, 2003 1:26 am Post subject: |
|
|
Rain Designs wrote: | Got any other ideas? |
what happens if you try to login as 'username'? |
|
Back to top |
|
|
Rain Designs Tux's lil' helper
Joined: 01 Jul 2002 Posts: 130 Location: Los Angeles, CA
|
Posted: Tue Jan 07, 2003 1:29 am Post subject: |
|
|
well I first enter in ftp://mydomain into my browswer, then it prompts me for a username and pword, I input username and password, it doesn't work, then I try to login as alex:password and that works. alex belongs to wheel, I added alex in the mandrake install.
Thanks
Rain _________________ ^M = Death by notepad
http://www.raindesigns.com |
|
Back to top |
|
|
darktux Veteran
Joined: 16 Nov 2002 Posts: 1086 Location: Coimbra, Portugal
|
Posted: Tue Jan 07, 2003 1:42 am Post subject: |
|
|
Show us proftpd's log... I'm sure it will explain a _very_ lot.. _________________ Lego my ego, and I'll lego your knowledge
www.tuxslare.org - My reborn website |
|
Back to top |
|
|
Rain Designs Tux's lil' helper
Joined: 01 Jul 2002 Posts: 130 Location: Los Angeles, CA
|
Posted: Tue Jan 07, 2003 1:55 am Post subject: |
|
|
there were no logs in /var/log/proftpd where else could I find the logs?
Thanks
Rain _________________ ^M = Death by notepad
http://www.raindesigns.com |
|
Back to top |
|
|
jukka Apprentice
Joined: 06 Jun 2002 Posts: 249 Location: Zurich, Switzerland
|
Posted: Tue Jan 07, 2003 2:00 am Post subject: |
|
|
Rain Designs wrote: | well I first enter in ftp://mydomain into my browswer, then [...] |
no, what happens if you try to login on the console... |
|
Back to top |
|
|
Rain Designs Tux's lil' helper
Joined: 01 Jul 2002 Posts: 130 Location: Los Angeles, CA
|
Posted: Tue Jan 07, 2003 2:03 am Post subject: |
|
|
I can't login to the console.
Thanks
Rain _________________ ^M = Death by notepad
http://www.raindesigns.com |
|
Back to top |
|
|
darktux Veteran
Joined: 16 Nov 2002 Posts: 1086 Location: Coimbra, Portugal
|
Posted: Tue Jan 07, 2003 2:21 am Post subject: |
|
|
Rain Designs wrote: | I can't login to the console.
Thanks
Rain |
How do you see the logs if you can't log in? Try /var/log/messages _________________ Lego my ego, and I'll lego your knowledge
www.tuxslare.org - My reborn website |
|
Back to top |
|
|
Rain Designs Tux's lil' helper
Joined: 01 Jul 2002 Posts: 130 Location: Los Angeles, CA
|
Posted: Tue Jan 07, 2003 2:23 am Post subject: |
|
|
I was viewing the logs as root. I can't login as username. /var/log/messages doesn't exist
Any other thoughts?
Thanks for all the help
Rain _________________ ^M = Death by notepad
http://www.raindesigns.com |
|
Back to top |
|
|
jukka Apprentice
Joined: 06 Jun 2002 Posts: 249 Location: Zurich, Switzerland
|
Posted: Tue Jan 07, 2003 5:13 am Post subject: |
|
|
Rain Designs wrote: | I was viewing the logs as root. I can't login as username. |
what error messages gives a 'su - username'? if this doesn't show you the right way, then
- check username's home dir in /etc/passwd and verify that it exists and is at least readable for username
- check username's shell in /etc/passwd and verify that it's a valid shell and it's name is listed in /etc/shells
- verify that username's primary group (fourth value in username's /etc/passwd line) exists (in /etc/group)
- do a 'passwd username' and enter username's password twice
shouldn't be needed, but do a 'pwconv'. doesn't do any harm.
hth, jukka |
|
Back to top |
|
|
Rain Designs Tux's lil' helper
Joined: 01 Jul 2002 Posts: 130 Location: Los Angeles, CA
|
Posted: Tue Jan 07, 2003 6:10 am Post subject: |
|
|
I had to passwd the user!!!
Thanks
Rain _________________ ^M = Death by notepad
http://www.raindesigns.com |
|
Back to top |
|
|
|