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!

> Hi i must be doing some thing strange:
> 
> Im trying to set up a user so i can have ppl ftp to there web site
> 
> But i dont want them to be able to go back from there home account
> 
> I setup  a user here's the password setup
> 
> tguest:x:512:512::/user/tguest/:/bin/true
> 
> the login is tguest
> there home directory setup is /user/tguest
> 
> now i want the person who only owns that account not to be able
> to cd .. cd .. in there wsftp and see where the path leads back
> 
> after reading i tried making a directory /user/tguest/fff
> and
> tguest:x:512:512::/user/tguest/./fff:/bin/true
> had no affect tried
> 
> tguest:x:512:512::/fff:/./user/tguest:/bin/ture
> 
> Any help would be great thanks 



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

Reply via email to