Results 1 to 7 of 7

Thread: Editing website on LAN Suse machine using Windows?

  1. #1
    wergeld NNTP User

    Cool Editing website on LAN Suse machine using Windows?

    I have a webserver set up on OpenSuse 10.3. The web directory is set up on a Samba share which I can browse to on my WinXP machine. I am able to create/edit/delete anywhere on that Samba share except for the /www/htdocs folder. This is a permissions issue. I have given full control for the Samba share to the user I login with on the XP machine, but how do I give that user full control over the web space?

    wergeld

  2. #2
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: Editing website on LAN Suse machine using Windows?

    Quote Originally Posted by wergeld View Post
    I have a webserver set up on OpenSuse 10.3. The web directory is set up on a Samba share which I can browse to on my WinXP machine. I am able to create/edit/delete anywhere on that Samba share except for the /www/htdocs folder. This is a permissions issue. I have given full control for the Samba share to the user I login with on the XP machine, but how do I give that user full control over the web space?

    wergeld
    Someone owns the htdocs folder in Linux. Supppose it's "billy" and group = users. Add to the definotion of the share the line:
    force user = billy
    If that's not easy to understand, then post the share definition here, together with the Linux permissions on htdocs and the name and group of the owner of htdocs (I'm assuming you've made htdocs the document root of the web?)

    Swerdna
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

  3. #3
    wergeld NNTP User

    Default Re: Editing website on LAN Suse machine using Windows?

    Sorry it has been long between replies but 4th of July came and then lots and lots of bad weather and I did not want to see how good my UPS was.
    Okay, well, I have looked and looked, obviously in the wrong place but I can find no record of the owner of the htdocs directory.
    In Samba the entire /srv directory share options are as follows:

    Code:
    guest ok     yes
    read only    no
    comment      Media
    path         /srv
    inherit acls yes

    If I understand you correctly then I should add "force user = billy" in that Samba entry for whomever owns /srv/www/htdocs, yes?
    I am unsure where to find this info of the owner though. What bugs me is that I had this set up previously but rebuilt most of the machine. Word to the wise...backup your config basics =).

    wergeld



    EDIT> Found owner: it is root....great. How do I allow me access to my webspace without invoking root? Seems like that is asking for security trouble.

  4. #4
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: Editing website on LAN Suse machine using Windows?

    Well change htdocs and the contenets recursively to be owned by a normal iuser, e.g. clarice. Use this command as root (su to root first):
    chown -R billy:users /srv/www/htdocs
    Then edit smb.conf and comment out the share like this:
    #[whatever_the_name_is]
    #guest ok yes
    #read only no
    #comment Media
    #path /srv
    #inherit acls yes
    That way you've got it backed up. And whole your there make this share instead:
    [WebServer]
    guest ok = yes
    path = /srv/www/htdocs
    read only = no
    force user = billy
    Try that out
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

  5. #5
    wergeld NNTP User

    Default Re: Editing website on LAN Suse machine using Windows?

    Excellent! That did it. I kept the original share /srv as it is since other directories are used to share documents between computers. But now I can edit my webspace directly in my XP machine. Thanks for the help. Will there be any security issues with this. Both machines are behind a LAN and no public ports are forwarded to any of the machines (yet).

    wergeld

  6. #6
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: Editing website on LAN Suse machine using Windows?

    Excellent! That did it. I kept the original share /srv as it is since other directories are used to share documents between computers. But now I can edit my webspace directly in my XP machine. Thanks for the help. Will there be any security issues with this. Both machines are behind a LAN and no public ports are forwarded to any of the machines (yet).
    Glad it worked -- I don't see any security issues apart from allowing guests into the whole directory structure under /srv
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

  7. #7
    wergeld NNTP User

    Default Re: Editing website on LAN Suse machine using Windows?

    Yea, the guest thing was in there as a test. It is no longer in there.
    Thanks for the help again.

    wergeld

Tags for this Thread

Posting Permissions

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