DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 20th May 2008
wastedbreath wastedbreath is offline
New User
 
Join Date: May 2008
Posts: 4
Default FTPD User Access Denied

I'm sorry if this is in the wrong section, I guess it could also be applicable in Installation but thats for the community to decide.

First, I would like to say Hi!
Second, I'm sorry if I come off as rude in my first ever post..it has been a long day.
Third, please believe me when I say I've searched, read, and tried until both my fingers and eyes have bled.

I'm in the proccess of setting up an FTP so I have a dump for all the computers in the house(most are laptops). I know there are other ways to backup files but this would be best for my situation. I'm a noob to anything *nix and I know I could have had this setup many hours ago if I had installed Winblows but alas, I am hard headed and have an uncontrollable urge to learn something new. Here is my problem:

Code:
[R] Connecting to 192.168.1.67 -> IP=192.168.1.67 PORT=21
[R] Connected to 192.168.1.67
[R] 220- WHY HALLOW THAR! BUTTSECHES?
[R] 220  FTP server (Version 6.00LS) ready.
[R] USER ftpadmin
[R] 530 User ftpadmin access denied.
[R] Connection failed
*Yes, a rather odd welcome message but I needed to make sure I was actually connecting*

Oddly enough, root, my own user account(sysinstall), and the anon ftp account(created from sysinstall), all seem to work. ftpadmin is one I made using adduser and it just doesn't seem to like me. I've read man pages upon man pages on creating users, creating groups, configuring ftpd, and what ever else was somehow slightly related according to Google. I've looked through old newsgroups also.

I'm really at my wits end here. If anyone has a suggestion, I will gladly accept it.

Thanks very much for your help!

PS:
I have the feeling theres some information I've left out, configs and such, but I can't really think of what they are..I'm going to finally take a break from this so let me know what other things you need to know and I'll gladly get them to you!

-wasted
Reply With Quote
  #2   (View Single Post)  
Old 20th May 2008
corey_james corey_james is offline
Uber Geek
 
Join Date: Apr 2008
Location: Brisbane, Australia
Posts: 238
Default

what do the logs say ?
Reply With Quote
  #3   (View Single Post)  
Old 20th May 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 445
Default

Is this the base system ftpd? If so, in addition to the logs (which probably will make the problem a lot more obvious), read the manpages for ftpd(8).

There could be a number of problems -- perhaps a bad shell for the user, or being listed in /etc/ftpusers (which denies access). Not sure I understand why it would be working for root, though; that's not good.

Let us know what you figure out.
__________________
Kill your t.v.
Reply With Quote
  #4   (View Single Post)  
Old 20th May 2008
wastedbreath wastedbreath is offline
New User
 
Join Date: May 2008
Posts: 4
Default

Ahh shoot, the logs! Sorry, thats one thing I didn't check. Unfortunatly I'm at work so I'll check them tonight when I get back but in the mean time..

I checked over ftpd(8) again to see if I missed anything but it all seems to be in check. I am wondering though if the accounts need to be in the wheel group? The daemon needs to be super-user, so would the ftp accounts go into wheel? This seems unlikely to me..

I guess I'll have to wait till I get home, haha. Thanks for your help guys!

EDIT:
Oh I forgot, the root account was only possible because I commented it out in /etc/ftpusers. It didn't stay that way for long, just a quick test ;p
Reply With Quote
  #5   (View Single Post)  
Old 21st May 2008
J65nko J65nko is online now
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

The section The ftpd utility authenticates users according to six rules. of ftpd(8) has it all
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #6   (View Single Post)  
Old 21st May 2008
wastedbreath wastedbreath is offline
New User
 
Join Date: May 2008
Posts: 4
Default

So it was something silly. I had already messed with /etc/shells to add nologin into it..but I guess I just can't use it at all if its in that state. At some point yesterday, I had read that it was a good idea to set the shell as nologin for ftp'ers.

Thanks everyone for your help!
Reply With Quote
  #7   (View Single Post)  
Old 21st May 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

On OpenBSD, for an ftp-only account, one typically adds /usr/bin/false into /etc/shells and then uses that as the users shell.

This effectively disables interactive login, but still allows ftp connections...
Reply With Quote
  #8   (View Single Post)  
Old 21st May 2008
wastedbreath wastedbreath is offline
New User
 
Join Date: May 2008
Posts: 4
Default

Quote:
Originally Posted by BSDfan666 View Post
On OpenBSD, for an ftp-only account, one typically adds /usr/bin/false into /etc/shells and then uses that as the users shell.

This effectively disables interactive login, but still allows ftp connections...
Ahh cool! Ya, I came to note that I found /nonexistent works(shows motd then "No such file.." on shell).

Once again, thanks to everyone..its up and running besides permissions. Once I get that sorted I should be good. I'll probably be around to harass again soon.
Reply With Quote
Reply

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
/tmp on ram write denied gosha OpenBSD General 8 29th March 2009 04:46 PM
ftpd problem narcotico FreeBSD General 3 11th July 2008 03:08 AM
ftpd and hiding . files crofox OpenBSD Packages and Ports 5 26th June 2008 03:01 AM
pure-ftpd hirohitosan FreeBSD Ports and Packages 3 10th June 2008 06:31 PM
Permission denied delboy FreeBSD Ports and Packages 11 24th May 2008 09:26 PM


All times are GMT. The time now is 11:23 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick