Results 1 to 3 of 3

Thread: Should I set up ftp or can I assign permissions with Samba?

Hybrid View

  1. #1
    Join Date
    Dec 2004
    U.S. Oregon

    Should I set up ftp or can I assign permissions with Samba?

    Thanks for the forum. I'm using Suse 9.1 and would like to make available certain files that could change often in a folder assigned to a user for downloading off of my webserver, running Apache 2.

    I create these files in Windows and map a drive to the IP address/?/? folder. Currently I am using htdocs. These files have no 'others' permissions so I must manually assign 'can read' permissions on the server. Is there a way to automatically assign permissions when the files are created and made available on the web server using the Samba mapped drive to write the file onto the webserver? I'm willing to try ftp to transfer the files if this is a better way and would want to ensure permissions are set to 'read', throughout the transfer.

    So far, I have been able to set up Samba, map a drive to the SSL Apache server and access the files once manually adjusting the permissions. I can download the available file from a browser, if I know the file name.

    I'd like to automatically assign rights to the files, add a layer of security by password protecting the files and show a list of available files in the folder, perhaps from an html page or index so the end user can click on the needed file to begin downloading.

    I hope this makes enough sense for someone to assist me. I appreciate the help :!: If I am asking too much or creating too much work for such a "simple" task, please suggest alternatives.

  2. #2
    Administrator Moderator
    starfish's Avatar
    Join Date
    Apr 2004
    I wouldn't advise putting your HTML files on a Samba share that is also the directory for your website.

    If someone hacks the webserver, your original files could be gone! The best recovery from a hack is a complete rebuild of the system, with the latest patches, so unless you have backups you may be playing with fire.

    Your method does make some parts of management easier though. If you can afford it, it's best to have your webserver totally dedicated to serving pages.

    I put my pages in a user (/home) subdirectory on a dedicated server and point Apache to that subdirectory. I FTP/SCP the files to the directory as that user and my permissions work just fine.

    This method, though more cumbersome, provides better file protection.

    Hope this helps.

  3. #3
    Join Date
    Dec 2004
    U.S. Oregon

    Should I set up ftp or can I assign permissions with Samba?


    great advice on the Samba share idea. will give it a go using ftp. I think I can script what I need to automate the process and will test the permissions. thanks for the help :!:


Similar Threads

  1. Replies: 2
    Last Post: 06-23-2011, 05:14 PM
  2. file permissions
    By sentme_mail in forum Linux - General Topics
    Replies: 8
    Last Post: 11-20-2004, 04:39 AM
  3. Permissions
    By ASCI_Blue in forum Linux - General Topics
    Replies: 1
    Last Post: 11-09-2002, 07:36 PM
  4. cd permissions
    By deepfreeze in forum Linux - General Topics
    Replies: 6
    Last Post: 08-29-2002, 03:28 PM
  5. Permissions and rights
    By chadm1967 in forum Linux - General Topics
    Replies: 4
    Last Post: 12-04-2001, 02:33 PM


Posting Permissions

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