I ignored this post before because it was answered
by me on Saturday but since more bandwidth is being
wasted to repeat the SAME discussion, here is what I
posted on Saturday.

However ... try reading/searching the mailing list
before posting!!!!!!!!!

The below is a complete repost word for word of what
I posted on Saturday and also happens to be the
answer to your question if you bothered to search the
mailing list on RedHat
(or read the DOC: /usr/share/doc/wu-ftp-x.x.x/guest.HOWTO)
-----------------------------------------------------
Using wu-ftpd:

Well, one way of doing it without
concern of how the uid/gid looks
in the dir/ls command:

This will effect all users
so you will have to modify
some of the lines to allow
everyone else to do what they
are allowed to do
OR
you can set a guest-root line
for each user (or there may
be a way to do if for more
than one user per line?)
Also correct the allow/deny
lines to allow everyone else.

Two users: usera & userb
Both will be set to see "/" as
/home/userX/ftptop

Edit /etc/ftpaccess
add/change the following:

deny-uid %-99 %65534-
deny-gid %-99 %65534-
allow-uid usera userb

class   all   guest  *

guestgroup usera userb

guest-root /home/usera/ftptop usera
guest-root /home/userb/ftptop userb

The ls/dir command shows
numbers since you are supposed
to do a whole lot more,
but this works and basically
I don't think it is worth the
extra effort just to make dir/ls
look prettier.

I haven't had any problems or
complaints from my users, but
any wu-ftp gurus out there who
can see problems caused by this
feel free to let us all know :-)
But try it out first - it works
fine for me!

If you want to do it all properly,
read the docs - that's what I did
to work this out, but I cut out
some :-)

DOC: /usr/share/doc/wu-ftp-x.x.x/guest.HOWTO

(my version is wu-ftp-2.6.1)

-Cheers
-Andrew
--
MS ... if only he hadn't been hang gliding!

> THanks. But how do I add the group into the /etc/ftpaccess file?
> What is the parameter for that?
> 
> Regards,
> Vidol
> 
> ----- Original Message -----
> From: Derek Benson <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 08, 2001 7:43 AM
> Subject: Re: How to confine user's access to WU-FTP within his home
> directoryonly?
> 
> 
>> man ftpaccess,
>> add your users to a group,
>> add the group to the appropriate place in /etc/ftpaccess
>>
>> hope this helps
>> derek
>>
>> On Mon, 7 Aug 2000, loeung vidol wrote:
>>
>> > Date: Mon, 7 Aug 2000 22:45:04 +0700
>> > From: loeung vidol <[EMAIL PROTECTED]>
>> > Reply-To: [EMAIL PROTECTED]
>> > To: [EMAIL PROTECTED]
>> > Subject: How to confine user's access to WU-FTP within his home
>> > directory
>> >     only?
>> >
>> > Dear all:
>> >
>> > Two questions:
>> >
>> > 1). Could I configure the WU-FTP server in such a way that: each
>> > user has
>> > access
>> > only to his/her home directory and its subdirectories, but not to
>> > any other
>> > directory in the system?
>> >
>> >
>> > Regards,
>> > Vidol
>> Benson



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to