Read on full site | Join TechSpot! (it's free) | Bookmark / Share this



Creating virtual users for sftp/ubuntu

N3051M
07-06-2009, 12:59 PM
hey guys, its been a while..

Just need a bit of help in a few things setting up my new box for a dedicated sftp/web server. I've already installed apache2 and got that running, and also installed openssh on a ubuntu 9.04 system. Now, a few questions if anyone can help..

1) how do I create virtual users on an ubuntu system and integrate them to log into sftp?
2) how do I change the default path after those users have logged in to a particular path, say instead of "/home/$user" to "/var/www/" instead

I want to have a few users (or group if possible) to be able to access the var/www/ folder only since all they will be doing is just uploading/modifying/downloading files in that directory. The server will be mainly hosting files for download (with anonymous access given to download via a html link) and the uploading/etc to be done over sftp since its more secure than regular ftp connections.

I have looked around the net for a while now, and they don't give me a clear answer to this (probably since this is my first time setting up openssh, and i've only started to work in ubuntu regularly only quite recently) and other sites telling me to install vsftpd, proftpd etc.. which I prefer not to.

Thanks in advance.

Edit: I'm looking at two options - LDAP and PAM for the users.. any suggestions?

Edit2: Never mind, got a friend to show me how to do this on the *nix.

Post a reply, see related topics & more

Tip: Download Advanced SystemCare 3 Free - Clean, Repair, Protect & Optimize your PC.



 Top Technology News

TechSpot Blog: Disable Windows automatic check for solutions after a program crashes

Weekend Open Forum: Google Chrome OS and the future of cloud computing

Tech Tip of the Week: Unearth Region-Specific Windows 7 Themes

Another iPhone worm spotted, this time it's dangerous

Stardock CEO: Steam holds 70% of digital game distribution market

Google: Android, Chrome OS to converge eventually

Microsoft to showcase Natal at Gamefest in February

Microsoft and News Corp potential alliance, against the open Web

More Tech News

  
 Software Downloads

FlashGot 1.2.0.9

RemoveIT Pro XT - SE 23.11.2009

Vuze (Formerly Azureus) 4.3.0.4

RemoveIT Pro v7 Enterprise 23.11.2009

Aloaha PDF Suite 3.9.172

Blindwrite Suite 6.3.1.5

RemoveIT Pro v7 Ultra 23.11.2009

More Downloads



Copyright © 1998-2009 TechSpot.com. TechSpot is a registered trademark. All Rights Reserved.