Current time: 11-17-2024, 08:33 PM Hello There, Guest! (LoginRegister)


Post Reply 
Allow real user into FTP account
Author Message
Monotoko Offline
Junior Member
*

Posts: 20
Joined: Jan 2011
Reputation: 0
Post: #1
Allow real user into FTP account
Hi Guys,

I use my server for multiple things and would like to back my iPhone up via FTP onto the server. In order to that the application is asking for some FTP details.

I went ahead and created my user via SSH using useradd and passwd, but was surprised to meet this when I tried to login through Filezilla:

Command: USER ibackup
Response: 331 Password required for ibackup
Command: PASS *****
Response: 530 Login incorrect.

Checked the username and the password, could it possibly be because I am trying to login as a real user of the system, as oppose to a virtual one ispcp created? (proftpd is managed by ispcp still) I have Googled for hours trying to find an answer but there seems to be nothing on letting a real user into the FTP system

Daniel
(This post was last modified: 09-07-2011 07:53 AM by Monotoko.)
09-07-2011 07:52 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Allow real user into FTP account
IMHO ftp users are defined in the DB
have a look at ispcp.ftp_users and ...ftp_groups

You *can* add "system" users there (but of course they need to be created first via useradd...).

Be careful

/J
09-07-2011 07:27 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Monotoko Offline
Junior Member
*

Posts: 20
Joined: Jan 2011
Reputation: 0
Post: #3
RE: Allow real user into FTP account
Worked perfectly! Thank you Smile

Edit: Not quite actually, it allows me to login but only gives me read-only access, even though the folders are owned by the user+group of the ibackup user. What user am I logging in as when doing this?!
(This post was last modified: 09-08-2011 01:22 AM by Monotoko.)
09-08-2011 12:17 AM
Find all posts by this user Quote this message in a reply
JCircle Offline
Junior Member
*

Posts: 32
Joined: May 2011
Reputation: 0
Post: #4
RE: Allow real user into FTP account
at a loss why you wouldnt just create a ftp user in your webspace?
give that user access to a folder like /iphone and then back up that way.
why a system level user?
09-08-2011 04:34 AM
Find all posts by this user Quote this message in a reply
Monotoko Offline
Junior Member
*

Posts: 20
Joined: Jan 2011
Reputation: 0
Post: #5
RE: Allow real user into FTP account
/var is on a different partition to /home, I need these backups to go into /home/ibackups which I don't seem to be able to do with an ispcp virtual user.
09-08-2011 10:04 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: Allow real user into FTP account
Where's the problem?

Set the right values in ftp_users and ftp_group

an example
in passwd: mylogin:1234:1234 (uid and gid)
in /etc/groups: mygroup:1234


ftp_users:
userid passwd uid gid shell homedir
mylogin passwd-hash 1234 1234 /bin/bash /home/mylogin/somwhere

ftp_group:
groupname gid members
mygroup 1234 mylogin

/J
09-08-2011 11:12 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Aubrey Offline


Posts: 4
Joined: Oct 2011
Reputation: 0
Post: #7
RE: Allow real user into FTP account
This is just a good explanation. Whether right and registration and unregistered users is a kind of transparent system.
Now you can build your own FTP server has.
10-26-2011 04:19 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)