View previous topic :: View next topic |
Author |
Message |
Klainn n00b
Joined: 27 Aug 2004 Posts: 67 Location: Indianapolis
|
Posted: Sat Jun 04, 2005 11:13 am Post subject: Proftpd link usernames with specific files |
|
|
Hi,
I'm having a bit of trouble finding a solution to this, and it's probably something easy I overlooked. I have proftpd up and running but I want to have a username / password combo take someone to a specific location (can't be /home/username) and lock them in there with read / write permissions only. I can't find a good way to do this in proftpd, anyone else set something like this up and can point me in the right direction?
Thanks. _________________ Note: This post is a natural product. The slight variations in spelling and grammar enhance its individual character and beauty and in no way are to be considered flaws or defects. |
|
Back to top |
|
|
geforce l33t
Joined: 29 Dec 2003 Posts: 654 Location: Canada
|
Posted: Mon Jun 06, 2005 3:47 am Post subject: |
|
|
I'm not sure if I understood well, but it should be:
(If you need to create the account)
useradd -m -G group1,group1,group3,groupX -s /bin/bash -d /path/of/your/home
if the user exists:
usermod -d /path/of/your/home your_username
EDIT: you can use the -s /bin/false option to give no shell to the user, but don't forget the put:
Quote: |
RequireValidShell off
|
in proftpd.conf.
Normaly, if the path you specify with the -d option does not exists, it will create it and give the user the good read/write permissions. Otherwise, you need to do it yourself. _________________ http://tilde.club/~geforce/ |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|