LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 06-18-2002, 03:18 PM   #1
donokono
LQ Newbie
 
Registered: Jun 2002
Posts: 2

Rep: Reputation: 0
FTP - setting top level dir


I am attempting to give FTP access to a user but am having trouble setting the top level directory for that user...

I am running RH6.2 and wuftpd wu-2.6.0(1)

I created a new user then edited /etc/passwd

ftpguy:x:506:506::/usr/local/www/htdocs_sub.domain.com/./test/:/bin/false

(I also added /bin/false to /etc/shells)

Permissions on user's home dir is OK...

I can FTP in from a remote box but can issue
ftp> cd /
and ls the root directory on the box. I want this user restricted to the directory specified in /etc/passwd !!

Any help/suggestions??

Oh... I've been looking at docs for... um, longer than I should be...

TIA
 
Old 06-18-2002, 05:58 PM   #2
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
Search the forums. This has been addressed 4 times in the last week alone.
 
Old 06-18-2002, 07:17 PM   #3
donokono
LQ Newbie
 
Registered: Jun 2002
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks... I guess I wasn't searching hard enough....

Anyhow, the solution was simple...

in /etc/ftpaccess I added:

realgroup ftpguy
realuser ftpguy
restricted-uid ftpguy

and it worked... the directory that the user gets when they log in is their top level directory....

thx.agn
 
  


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
Contain level firwall setting vivekthemind Linux - Security 1 10-06-2005 09:55 AM
Missing top level topics in yelp for some users in RH9 timyaukey Red Hat 0 01-03-2005 09:30 AM
DNS & Top Level Domain JJX Linux - Networking 2 03-28-2004 08:56 AM
ftp from the top waffe Linux - General 5 09-27-2003 06:20 PM
OS Level Proxy setting pickledbeans Linux - General 1 07-08-2002 04:50 PM


All times are GMT -5. The time now is 11:46 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration