restricting accounts in wu-ftp
ok well when i make an acct with wu-ftp in the users and groups thingy in the start menu i cant get it to go into the the home dir it does into some kinda .kde folder.
update: i think i got that part fixed BUT now i dont know how to get set it where this ftp user CANT SEE files or the .kde directory. basicly what i am asking is how do i go about settting up the user where he can only see what i want him to see and access. |
With a DefaultRoot entry in your conf file.
This will make it so a user cannot travel outside of their "home" directory or where you set their default root at. ... I just noticed this was wu-ftp, I just assumed from your other thread is was PROFTPD, I'd assume it is very similar though, as a DefaultRoot isn't a ProFTPD only option AFAIK. Cool |
Quote:
ok i disabled wu-ftp and got FTP sense everyone seems to be using it. i dont get what u mean by defaultroot entry. |
You said you got FTP, I am going to assume you mean ProFTPD...
A DefaultRoot entry looks something like this in /etc/proftpd.conf: Code:
DefaultRoot ~ ftp://masterc.no-ip.org/share/proftpd.conf Cool |
Quote:
1 your right i meant proftpd. and 2 for some reason i cant get the link to work |
Yeah, you are correct, how odd (I will fix that ASAP, thank you very much for letting me know)... No worries, here's what it looks like:
Code:
masterc@masterc:~$ cat /etc/proftpd.conf |
BTW, just checked it out, and it works if you right click and save as, or something similar to that... But I will get that fixed so you can just click (just got to figure out how ;) )
Cool |
Restrictions from the ProFTPD documentation:
http://proftpd.linux.co.uk/localsite...ked/x1173.html Cool |
i dont see where your default root comes in.
|
It's like the 4th entry down not counting comments
|
thanks i got that fixed now.
how would i set it where they cant see the .kde dir and stuff. like the other post i made |
I would do that by giving them a different home directory in /etc/passwd. Instead of giving them their actual home directory, change it to something like I talked about before with the user1 and user 2 thing, where they have a different home than the user on the system would have normally...
So, maybe their entry would in /etc/passwd would be: user1:x:1000:100::/home/games:/bin/bash Then when they login, and you have the DefaultRoot given, it will send them straight to /home/games and there will be no .kde and so on. Cool |
Quote:
Home is the Home dir for the FTP users. The thing i dont want to have to do is make a copy of everything for diffrent users. such as user1 for downloading games. user2 for downloading games but i want user 3 to be able to get to the games and a diffrent a web site folder. And i dont want user 1 and 2 getting to the web folder. thanks . If u need any more info just ask :). |
Sure, you can restrict access by simply removing the execution bit on a folder. Make user3 a memeber of a different group than user1 and user2 and give execution to group only, not user (other than owner). Execution on a directory means to allow access, so if you take that away, then no-one without the x bit can enter that folder.
Cool |
Quote:
How would i go about doing this. I want user3 to be able to edit his web folder which is in a diffrent dir /var/www/html/user3/ and i want user3 to be able to see the games and stuff also how would i go about doing that. seeings how everything is in /hdb1/hdb1/ftp/Home/ . |
All times are GMT -5. The time now is 12:15 AM. |