#1
  1. C Neophyte.
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Location
    Melbourne Australia
    Posts
    405
    Rep Power
    46

    Locking low-access usr to directory?


    I'm doing an assignment setting up a small ISP setup on a FreeBSD machine. We are using Unix login accounts for users to access their host space.

    1 - I create users using adduser -v
    2 - I add users to the group www-usr
    3 - In the /usr/home/<user> dir, I add the directories www, mail and log

    How do I lock the user to /usr/home/<user>? I don't want them going further up the tree than here when they use sftp to transfer files in.

    Any help appreciated!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Location
    USA
    Posts
    334
    Rep Power
    11
    One way would be to use FreeBSD jails. Google to find out more about FreeBSD jails.
  4. #3
  5. C Neophyte.
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Location
    Melbourne Australia
    Posts
    405
    Rep Power
    46
    thanks for the reply but... the simulation already runs inside a jail :S it's possible to make a jail-in-a-jail, yeah? but that might be more complicated than a permissions based approach

IMN logo majestic logo threadwatch logo seochat tools logo