How to forbid access to web interface and USBShare?

Post Reply
Maksims
Posts: 12
Joined: Thu Jul 07, 2011 5:45 am

How to forbid access to web interface and USBShare?

Post by Maksims » Thu Jul 07, 2011 5:53 am

Hello,

Im new so please dont bite :) (but have been monitoring this forum some time)
I have a question, since im a photographer and I have lacie network space 2 to share my pictures. Question is that, I need to create another user and grant him access only to his folder or at least only to openshare, how do i do it? i Understand that i need to have a root access, obviously. But where should i make the modifications?
Ideal would be:
User
restrictions:
0 GB Storage
No Web Interface
No USBShare access
No DL Manager
Only FTP Access

Or am I stupid and want too much for this low priced equipment?

Regards,
Max.

kalleguld
Posts: 36
Joined: Thu Mar 31, 2011 10:55 am

Re: How to forbid access to web interface and USBShare?

Post by kalleguld » Thu Jul 07, 2011 12:19 pm

Welcome from the shadows :)

First you need to get root, as you said (see other forum posts).
Then you need to make the ftp server use another config file (see this post).

Now create two new user accounts, one for you and one for your friend, if you haven't already. Type the following: (obviously you can replace "you" and "friend" :))

Code: Select all

adduser you
adduser friend
Then create a group for each of you (makes it easier in case you want to expand later):

Code: Select all

addgroup ftpuser
addgroup ftpsuper
then add user accounts:

Code: Select all

 adduser you ftpsuper
adduser friend ftpuser
Then, in your new proftpd.conf, you need to add something like this:

Code: Select all

<Directory path/to/dir/a>
  <Limit ALL>
    DenyAll
    AllowGroup ftpsuper
  </Limit>
  <Limit READ>
    AllowGroup ftpuser
  </Limit>
  <Limit DIRS>
    AllowGroup ftpuser
  </Limit>
</Directory>
<Directory path/to/dir/b>
  <Limit ALL>
    DenyAll
    AllowGroup ftpsuper
  </Limit>
</Directory>
further help about proftpd config file, although not very well written. Ask if you have any questions.

Maksims
Posts: 12
Joined: Thu Jul 07, 2011 5:45 am

Re: How to forbid access to web interface and USBShare?

Post by Maksims » Thu Jul 07, 2011 1:18 pm

Thank you very much for your answer. Will try when I'll be home, if problems occur I will mention that and hopefully someone will help me :)

Post Reply