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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-08-2003, 01:22 PM
|
#1
|
Member
Registered: May 2003
Location: Qatar
Distribution: Suse
Posts: 60
Rep:
|
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
|
|
|
07-09-2003, 06:52 AM
|
#2
|
Member
Registered: Jun 2003
Posts: 43
Rep:
|
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....
|
|
|
07-09-2003, 12:35 PM
|
#3
|
Member
Registered: May 2003
Location: Qatar
Distribution: Suse
Posts: 60
Original Poster
Rep:
|
thanks you but how would i do it on the command line..
|
|
|
07-09-2003, 05:32 PM
|
#4
|
Member
Registered: Jun 2003
Location: Netherlands
Distribution: Red Hat Linux 9, FreeBSD 4.8, Knoppix 3.2
Posts: 182
Rep:
|
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".
|
|
|
07-10-2003, 06:00 AM
|
#5
|
Member
Registered: May 2003
Location: Qatar
Distribution: Suse
Posts: 60
Original Poster
Rep:
|
i am using sun solaris white rabbit 5.0 and redhat 8
|
|
|
07-10-2003, 06:23 AM
|
#6
|
Member
Registered: May 2003
Location: Qatar
Distribution: Suse
Posts: 60
Original Poster
Rep:
|
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
|
|
|
07-10-2003, 12:21 PM
|
#7
|
Member
Registered: Jun 2003
Location: Netherlands
Distribution: Red Hat Linux 9, FreeBSD 4.8, Knoppix 3.2
Posts: 182
Rep:
|
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.
|
|
|
07-12-2003, 01:12 AM
|
#8
|
Member
Registered: Jun 2003
Posts: 43
Rep:
|
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>
|
|
|
All times are GMT -5. The time now is 07:44 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|