Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Alternative Computing > Linux Support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read

Linux Support Linux - Operating Systems and Applications Support

Reply
 
Thread Tools
Old 03-18-2005, 09:28 AM   #1 (permalink)
elf
Assistant Manager, Microsoft Support
 
elf's Avatar
 
Join Date: Jul 2002
Location: Knoxville, TN or Austin, TX depending
Posts: 6,302
OS: WinXP Pro SP2 and Slackware 10.1

My System

Send a message via AIM to elf
ftp? why not

ahh they just keep comin ( I suppose I could google this one...but I feel like makin yall work )

I'm lookin to set up either an FTP server, or SSH so that a friend can upload stuff to the site without me having to accept the file transfer and setting it up for him.

I know SSH is secure, but I don't know how to set it up (I want to give him access to /var/www/htdocs and all subfolders and files (so he can add/remove/modify).

Do yall recommend SSH or VSFTPD? Which is easier to setup and which is more secure? (if there is a definite answer...I know sometimes there is no definitive answer)
__________________


If TSF has helped you, Tell us about it! or Donate to help keep the site up!
I do not subscribe to threads, so if I stop replying, PM me with a link to your thread so I can find it again.
elf is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Sponsored Links
Old 03-18-2005, 11:44 AM   #2 (permalink)
Manager, Alternative Comp
 
Skie's Avatar
 
Join Date: Mar 2003
Location: Downers Grove, IL
Posts: 1,821
OS: Gentoo Linux, Redhat Enterprise Linux, CentOS

My System

There is no definitive answer to anything in Linux. There are many ways to do the same thing. I would probably stick with SSH as everything is already there for you. Your friend just needs an FTP client that can handle sftp file transfers. I believe FileZilla should, as should SmartFTP. Both are free and I recommend both for Windows. For Linux, everything is already there. Most GUI based FTP programs should work too, but I would recommend either gFTP or KBear.

All you'd need to do is create a username for your friend, then within his home directory, create a symlink to the public_html directory. To create the symlink, do the following:

cd /home/friend
ln -s <name of link here> /var/www/htdocs

ex. ln -s htdocs /var/www/htdocs

You can call it just about anything, "junk", "www", "public_html", "you_look_ugly", etc. Then, when your friend logs in, they just double click the symlink and they should be allowed to upload as long as they have permissions to /var/www/htdocs.
__________________
Skie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 03-18-2005, 12:03 PM   #3 (permalink)
elf
Assistant Manager, Microsoft Support
 
elf's Avatar
 
Join Date: Jul 2002
Location: Knoxville, TN or Austin, TX depending
Posts: 6,302
OS: WinXP Pro SP2 and Slackware 10.1

My System

Send a message via AIM to elf
how do I create a user? just a user on my box or is it a SSH specific user? I'm about as new to SSH as I am to linux.
__________________


If TSF has helped you, Tell us about it! or Donate to help keep the site up!
I do not subscribe to threads, so if I stop replying, PM me with a link to your thread so I can find it again.
elf is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 03-18-2005, 12:58 PM   #4 (permalink)
Manager, Alternative Comp
 
Skie's Avatar
 
Join Date: Mar 2003
Location: Downers Grove, IL
Posts: 1,821
OS: Gentoo Linux, Redhat Enterprise Linux, CentOS

My System

You'll need to run this command as root:

Code:
adduser -m <new username>
If adduser doesn't exist, try using useradd.
__________________
Skie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 03-18-2005, 01:16 PM   #5 (permalink)
elf
Assistant Manager, Microsoft Support
 
elf's Avatar
 
Join Date: Jul 2002
Location: Knoxville, TN or Austin, TX depending
Posts: 6,302
OS: WinXP Pro SP2 and Slackware 10.1

My System

Send a message via AIM to elf
Quote:
Error running useradd command -- accoutn not created!
(cmd: /usr/sbin/useradd -d /home/dan -m -e 2009-07-25 -g users -s /bin/bash -m)
I used adduser and it seemed to be working until there...

edit: I think the adduser command wasn't supposed to have the -m

second edit: I got it so I can ssh into the linux box from my windows box. Now just to see if it works from his...so any ftp client will work?
__________________


If TSF has helped you, Tell us about it! or Donate to help keep the site up!
I do not subscribe to threads, so if I stop replying, PM me with a link to your thread so I can find it again.

Last edited by elf : 03-18-2005 at 01:28 PM.
elf is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 03-18-2005, 01:24 PM   #6 (permalink)
Manager, Alternative Comp
 
Skie's Avatar
 
Join Date: Mar 2003
Location: Downers Grove, IL
Posts: 1,821
OS: Gentoo Linux, Redhat Enterprise Linux, CentOS

My System

try just "useradd <username>". See if that helps.
__________________
Skie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 03-18-2005, 01:28 PM   #7 (permalink)
elf
Assistant Manager, Microsoft Support
 
elf's Avatar
 
Join Date: Jul 2002
Location: Knoxville, TN or Austin, TX depending
Posts: 6,302
OS: WinXP Pro SP2 and Slackware 10.1

My System

Send a message via AIM to elf
I've been editing but there have been some advances, just see above post
__________________


If TSF has helped you, Tell us about it! or Donate to help keep the site up!
I do not subscribe to threads, so if I stop replying, PM me with a link to your thread so I can find it again.
elf is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 03-18-2005, 01:37 PM   #8 (permalink)
Manager, Alternative Comp
 
Skie's Avatar
 
Join Date: Mar 2003
Location: Downers Grove, IL
Posts: 1,821
OS: Gentoo Linux, Redhat Enterprise Linux, CentOS

My System

Sorry, didn't see your edits. From the error msg you pasted, it seems as if the -m option was added by default. The only reason I added it myself is because it's not part of the default for my system. The -m option automatically creates the users home directory for you.

And most FTP clients should work as long as they support SFTP.
__________________
Skie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 03-18-2005, 01:42 PM   #9 (permalink)
elf
Assistant Manager, Microsoft Support
 
elf's Avatar
 
Join Date: Jul 2002
Location: Knoxville, TN or Austin, TX depending
Posts: 6,302
OS: WinXP Pro SP2 and Slackware 10.1

My System

Send a message via AIM to elf
I can connect with SSH, but not with filezilla for some reason. It connects and says
Quote:
Status: Connecting to <address> ...
Status: Connected with <address>. Waiting for welcome message...
Response: SSH-1.99-OpenSSH_3.8.1p1
(actual address has been substituted)
elf is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 03-18-2005, 01:49 PM   #10 (permalink)
Manager, Alternative Comp
 
Skie's Avatar
 
Join Date: Mar 2003
Location: Downers Grove, IL
Posts: 1,821
OS: Gentoo Linux, Redhat Enterprise Linux, CentOS

My System

I'm looking at Filezilla right now. Make sure that under Servertype, you choose "SFTP using SSH2". Also, make sure that the port is 22 and Logon Type is "Normal".

Also, either I missed it or I forgot, but what distro do you have?
__________________
Skie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 03-18-2005, 01:51 PM   #11 (permalink)
elf
Assistant Manager, Microsoft Support
 
elf's Avatar
 
Join Date: Jul 2002
Location: Knoxville, TN or Austin, TX depending
Posts: 6,302
OS: WinXP Pro SP2 and Slackware 10.1

My System

Send a message via AIM to elf
Could it have something to do with my firewalls?

edit: ok ok I got it working now. It was because of the logon type. It was set to anonymous so even though I was putting in user name it wouldn't work

Last edited by elf : 03-18-2005 at 01:56 PM.
elf is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 03-18-2005, 01:54 PM   #12 (permalink)
Manager, Alternative Comp
 
Skie's Avatar
 
Join Date: Mar 2003
Location: Downers Grove, IL
Posts: 1,821
OS: Gentoo Linux, Redhat Enterprise Linux, CentOS

My System

It could if you're blocking inbound SSH requests. Try disabling the firewall and testing again.
__________________
Skie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 03-18-2005, 01:56 PM   #13 (permalink)
elf
Assistant Manager, Microsoft Support
 
elf's Avatar
 
Join Date: Jul 2002
Location: Knoxville, TN or Austin, TX depending
Posts: 6,302
OS: WinXP Pro SP2 and Slackware 10.1

My System

Send a message via AIM to elf
Quote:
edit: ok ok I got it working now. It was because of the logon type. It was set to anonymous so even though I was putting in user name it wouldn't work
__________________


If TSF has helped you, Tell us about it! or Donate to help keep the site up!
I do not subscribe to threads, so if I stop replying, PM me with a link to your thread so I can find it again.
elf is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 03-18-2005, 02:06 PM   #14 (permalink)
Manager, Alternative Comp
 
Skie's Avatar
 
Join Date: Mar 2003
Location: Downers Grove, IL
Posts: 1,821
OS: Gentoo Linux, Redhat Enterprise Linux, CentOS

My System

Gah! Stop editing while I'm in the middle of posting!

__________________
Skie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -7. The time now is 07:16 AM.



Copyright 2001 - 2008, Tech Support Forum

Search Engine Friendly URLs by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82