LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-11-2006, 02:47 PM   #1
carriehoff
LQ Newbie
 
Registered: Jul 2006
Posts: 9

Rep: Reputation: 0
Setup ftp account on Linux to receive 'push' from Unix


Hi all,

I have been trying to find resources all day to help me setup an ftp account on my linux VPS specifically to receive a data 'push' from a unix server.
I am relatively new to linux, but have been able to get around. If someone could help me with the commands I would really appreciate it.
Here's what I've done so far - based on an article I found on the web:

# useradd -d /home/cbridx/ftpuser -s /dev/null ftpuser > /dev/null 2>&1
passwd ftpuser

Then I get an error message sayint ftpuser does not exist. I am making commands as root user. What am I doing wrong?

Carrie
 
Old 07-11-2006, 07:26 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
specifically to receive a data 'push' from a unix server.
If I understand right what you're trying to do: if you define "push" as a client actively connecting to an FTP server, leaving the connection idle and open and expecting serverside initiated transfers (meaning no clientside commands) over the connection then that won't work because FTP doesn't work that way. Set up a minimal FTP daemon (Muddleftpd, Vsftpd) and give the remote party a login/pass to use or use anonymous account. If that's not what you're trying to do, then please explain in detail.
 
Old 07-11-2006, 07:57 PM   #3
carriehoff
LQ Newbie
 
Registered: Jul 2006
Posts: 9

Original Poster
Rep: Reputation: 0
FTP Account

I figured I was getting the error message because I was logging in as root using command 'su'. When I loggen in with command 'su -' I was able to create the user account & pwd that hopefully is going to work.
I had created an ftp login with the Plesk control panel, but the company trying to 'push' the data to me was getting permission denied errors.
I did not set or change any permissions when I created the account, so hopefully the default permissions are what is needed.
I won't know until tomorrow, so if there are any more problems I will post back. Thanks for the help.
 
Old 07-11-2006, 08:17 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
Thanks for the help.
Heh, apparently not much help, since you already did what I was rambling on about ;-p
 
Old 07-12-2006, 08:42 AM   #5
carriehoff
LQ Newbie
 
Registered: Jul 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Crontab

I finally setup the account correctly. I received the data via ftp this morning.
Now, can you help with scheduling cron jobs?
I have a shell script I can run from the command line, but when I try to schedule it in cron (from Plesk control panel) like this: /usr/local/cleartables.sh to run every 15 minutes, it does not work. It does not even run one time. Errors are supposed to be forwarded to root, but when I check for mail, there is none for root.
What should I try next?

Carrie
 
Old 07-15-2006, 05:44 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
I have a shell script I can run from the command line, but when I try to schedule it in cron (from Plesk control panel) like this: /usr/local/cleartables.sh to run every 15 minutes, it does not work.
Not with Plesk I can't and shell is easier. Next to that the file should be in /usr/local/bin if you want to follow FSSTND or whatever it's called these days. It should be executed as root (since Iptables) so you'll add it to /etc/crontab:
Code:
echo "*/15 * * * * root /usr/local/cleartables.sh" >> /etc/crontab
All set now since crond rereads the crontab automagically.

It does not even run one time. Errors are supposed to be forwarded to root, but when I check for mail, there is none for root. What should I try next?
Do this:
Code:
grep "^[A-Z]\{4,\}.*=" /etc/crontab
It should show setting variables for SHELL, HOME, PATH and MAILTO.

Last edited by unSpawn; 07-15-2006 at 05:46 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RedHat Linux user account setup pschaefertx Linux - General 1 03-22-2005 07:29 AM
setup to safely push powerbutton. Starch Slackware 4 03-21-2005 10:51 AM
NEED HELP WITH FTP user account and directory setup aikym1 Linux - Security 1 10-06-2004 07:33 AM
restricting an email account to receive mails from local users only dm0nkz Linux - Security 2 09-03-2004 03:08 AM
How to enable Linux Root FTP account ?? chuck77 Linux - General 2 04-25-2003 01:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration