Results 1 to 5 of 5

Thread: FTP into home dir.  hidden files visible/editable

  1. #1
    Senior Member
    Join Date
    Apr 2002
    Posts
    417

    FTP into home dir.  hidden files visible/editable

    Hi,

    I read a thread where they were talking about ftp'ing into an account and viewing the .bashrc .bash_profile files. If you could edit these files then you could possibly give you access to restriced files or commands. How does that work?

    Thanx,


  2. #2

    Re: FTP into home dir.  hidden files visible/edita

    If you could ftp into your own account and view .files I don't think there is a problem. Thats normal. Now if you could ftp into another users accoutn (or cwd into them) and view files thats a nother matter.

  3. #3
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re: FTP into home dir.  hidden files visible/edita

    Linux ( and Unixes for that matter ) do not diffientiate whether you log in via FTP, Telnet or SSH. It is based on your log in ID. You will be able to view all the files that you are the owner of including files in your home directory including hidden files. That's normal.

    But you should not be able to view other files outside of your home directory ( unless the admin screw it up big time ) ...

  4. #4
    Senior Member
    Join Date
    Apr 2002
    Posts
    417

    Re: FTP into home dir. *hidden files visible/edita

    How do you restrict user access to ONLY their home dir????

  5. #5

    Re: FTP into home dir.  hidden files visible/edita

    Hello, if you're using proftpd then in your proftpd.conf file under the section <global> you could add this line
    DefaultRoot ~

    ...however, your users can't follow symlinks out of their home directory...you have to use the mount --bind command to mount directories under the directories in their home dir. Also, you may want to check out this page for the DefaultRoot command.
    http://proftpd.linux.co.uk/docs/dire...faultRoot.html

    And maybe also this page for chroot and symlinks(mount --bind)
    http://proftpd.linux.co.uk/localsite...-symlinks.html

    Of course, all of the above assumes you are using proftpd.

Similar Threads

  1. The Visible Host Name
    By quan in forum Linux - General Topics
    Replies: 2
    Last Post: 08-07-2004, 12:46 PM
  2. .hidden files and ls
    By anshelm in forum Linux - Software, Applications & Programming
    Replies: 6
    Last Post: 03-09-2004, 06:19 AM
  3. Hidden M$ files
    By KenHan in forum General Chat
    Replies: 2
    Last Post: 11-25-2002, 12:30 AM
  4. arrgg!  I need to copy files from....
    By pbharris in forum Linux - Software, Applications & Programming
    Replies: 5
    Last Post: 02-01-2002, 12:19 PM
  5. mandrake 8.0  missing files
    By danvitt in forum Mandriva
    Replies: 5
    Last Post: 09-30-2001, 01:01 AM

Bookmarks

Posting Permissions

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