LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-08-2003, 01:22 PM   #1
lomaree
Member
 
Registered: May 2003
Location: Qatar
Distribution: Suse
Posts: 60

Rep: Reputation: 15
problem in wu-ftp


Hi


wanted to ask , if it's possbile to make the user go into a particular directory instead of going into the "home/username" directory when he connects to the ftp server..


thanks in advance
 
Old 07-09-2003, 06:52 AM   #2
jcb_dreamvsat
Member
 
Registered: Jun 2003
Posts: 43

Rep: Reputation: 15
yes, just change the directory where the user enter. you can do that using the user manager. I used in RH7.3

newbie like you....
 
Old 07-09-2003, 12:35 PM   #3
lomaree
Member
 
Registered: May 2003
Location: Qatar
Distribution: Suse
Posts: 60

Original Poster
Rep: Reputation: 15
thanks you but how would i do it on the command line..
 
Old 07-09-2003, 05:32 PM   #4
cropcircle
Member
 
Registered: Jun 2003
Location: Netherlands
Distribution: Red Hat Linux 9, FreeBSD 4.8, Knoppix 3.2
Posts: 182

Rep: Reputation: 30
lomaree, what Linux distribution are you using?

Generally, you must edit the "/etc/passwd" file, for example :

user:x:501:501:Guest Account:/ftp/./incoming:/sbin/nologin

Here the user 'user" cannot go out of the /ftp directory and will enter /ftp/incoming by default.
The user 'user' also can't login, because his shell is "/sbin/nologin".
 
Old 07-10-2003, 06:00 AM   #5
lomaree
Member
 
Registered: May 2003
Location: Qatar
Distribution: Suse
Posts: 60

Original Poster
Rep: Reputation: 15
i am using sun solaris white rabbit 5.0 and redhat 8
 
Old 07-10-2003, 06:23 AM   #6
lomaree
Member
 
Registered: May 2003
Location: Qatar
Distribution: Suse
Posts: 60

Original Poster
Rep: Reputation: 15
i did that, but what i wanted to do is. how to make a user restricte from not letting him go back or take one step back from the default directory


i hope you got my point what i want to do
 
Old 07-10-2003, 12:21 PM   #7
cropcircle
Member
 
Registered: Jun 2003
Location: Netherlands
Distribution: Red Hat Linux 9, FreeBSD 4.8, Knoppix 3.2
Posts: 182

Rep: Reputation: 30
Maybe the 'Guest HOWTO' for Wu-ftpd is useful for you :

http://www.wu-ftpd.org/HOWTO/guest.HOWTO

It has various examples of 'chrooted' environments.
 
Old 07-12-2003, 01:12 AM   #8
jcb_dreamvsat
Member
 
Registered: Jun 2003
Posts: 43

Rep: Reputation: 15
if you mean that when a user goes ftp to your machine, it is restricted in its own created dir. you can do this by the command line.

#useradd <user> -g ftp

the default dir for this will go to /home/<user>
 
  


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
ftp from LInux to Serv-U ftp server problem csross Linux - General 2 11-07-2005 04:35 PM
FTP problem DataCorrupt Linux - Newbie 1 08-04-2005 11:06 AM
problem with ftp on mandrake 10.1 Official, ftp speeds system wide (anybody noticed?) equinox Mandriva 15 11-10-2004 02:07 PM
FTP Problem - Please help fuelinjection Linux - General 13 12-07-2003 10:46 AM
FTP problem kilogoretrout Linux - General 3 06-21-2003 11:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:44 AM.

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
Open Source Consulting | Domain Registration