Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Proftpd link usernames with specific files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Klainn
n00b
n00b


Joined: 27 Aug 2004
Posts: 67
Location: Indianapolis

PostPosted: Sat Jun 04, 2005 11:13 am    Post subject: Proftpd link usernames with specific files Reply with quote

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
View user's profile Send private message
geforce
l33t
l33t


Joined: 29 Dec 2003
Posts: 654
Location: Canada

PostPosted: Mon Jun 06, 2005 3:47 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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