Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts

    no directory access in linux

    hey I'm running a centos 4.4 server and some of my friends have web accounts on it(just for fun). I was thinking of setting setting chmod to 751 on all of the root folders except for /home. Would this interfere with anything that linux does...?
    The users just have a /home/username/public_html and /home/username/private folder, they dont do anything else.

    751 does:
    user can do everything
    group can read and execute
    others can just execute

    I was thinking of doin this just so it looks cleaner... like so they cant see the whole server

    Thanks,
    -Adam


    Edit: Am I right in thinking everything will be the same besides the ability to list files in the directories?
    Last edited by GO ILLINI; Oct 9th, 2007 at 04:02 AM.
    Why not thank me?

    http://adamsworld.name

  2. #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,237
    Thanks
    12
    Thanked 117 Times in 115 Posts
    like so they cant see the whole server
    better to add the users to a chrooted jail, changing permissions arbitrarily is really not a good idea.

    see this article for example
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  3. #3
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts
    Thanks, That looks like it should work for me.

    changing permissions arbitrarily is really not a good idea
    seemed like a good idea at the time

    -Adam
    Why not thank me?

    http://adamsworld.name

  4. #4
    Master Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,073
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Yeah, jail them to their home directory. Changing permissions system wide is probably going to end in disaster, lol.
    OracleGuy

  5. #5
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts
    ha eh... its just personal server i could use with a little bit of downtime.
    after all... my users aren't actually paying me.
    Jailing seems like it might be a little bit of work so ill get around to trying it sometime.

    Thanks,

    -Adam
    Why not thank me?

    http://adamsworld.name

  6. #6
    Master Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,073
    Thanks
    1
    Thanked 328 Times in 324 Posts
    What software are you using for your FTP server?
    OracleGuy

  7. #7
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts
    im using winscp(using ssh)
    Why not thank me?

    http://adamsworld.name

  8. #8
    Regular Coder ralph l mayo's Avatar
    Join Date
    Nov 2005
    Posts
    951
    Thanks
    1
    Thanked 31 Times in 29 Posts
    I'd probably just put them all in a virtual machine, where they can do what they please and it's easier to limit the resources they use.

  9. #9
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts
    well i figured its easier this way because i don't really care how much space they use or bandwidth... or anything. Its 4 people using a server that has space/processing power to support over 100.(got it free )
    virtual machine sure as hell sounds like more work then jailing.


    -Adam
    Why not thank me?

    http://adamsworld.name

  10. #10
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts
    SOLVED

    I posted my results along with a tutorial have made from my experiences here:
    http://codingforums.com/showthread.p...801#post634801

    Thank you all,
    -Adam
    Why not thank me?

    http://adamsworld.name


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •