Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Restrict access to a user, FTP

Got problems with Bubba? Then this forum is for you.
Locked
Filip
Posts: 30
Joined: 06 Feb 2007, 12:27
Location: Lund, Sweden

Restrict access to a user, FTP

Post by Filip »

I want to create user, let's call it 'ftpuser'.
'ftpuser' should only have access to it's home directory and nothin else.
But some other users, should have access to the 'ftpuser' home directory.

I have figured out that it has something to do with chmod, chown, usermod, etc... But I have no idea how to make it work.

Please help!
spoodie
Posts: 21
Joined: 24 Jan 2007, 13:32

Post by spoodie »

This page contains information on what you're supposed to do but I tested it and it doesn't seem to work: http://archiv.debianhowto.de/en/proftpd ... ftpdkonfig

I think all you need to do is create a new group:

Code: Select all

addgroup ftpuser
Add your user to it:

Code: Select all

usermod -G ftpuser [username]
Then add this to the /etc/proftpd.conf and restart the FTP daemon:

Code: Select all

# chroot for all users of the group ftpuser
DefaultRoot ~ ftpuser
But it doesn't seem to restrict the user to their home directory. Maybe I'm doing it wrong.
Filip
Posts: 30
Joined: 06 Feb 2007, 12:27
Location: Lund, Sweden

Post by Filip »

I have tried your solution and don't get it to work either.

Does anyone have a solution?
Locked