Find the answer to your Linux question:
Results 1 to 7 of 7
Hi people, Ive finally got my old p200 up and running, its running slack 8.1 and apache 1.3 (cant be bother updating ighter atm). I am sharing the /var/www/htdocs folder ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2005
    Posts
    15

    Samba or user??


    Hi people,

    Ive finally got my old p200 up and running, its running slack 8.1 and apache 1.3 (cant be bother updating ighter atm). I am sharing the /var/www/htdocs folder on my network.. i am accessing this folder through windows xp.. The problem is that i cannot write to it and cannot delete files etc.

    My Samba File:
    Code:
    [global]
    blah blah
    
    [WebSite]
    path = /var/www/htdocs
    browseable = yes
    public = no
    write list = dan
    I think the problem may be to do with "dan" not "owning" this folder or something.. but im not clear on how all that stuff works, any help??

    I would also like to be able to create folders in this directory from my windows box.. (dont know if that possible, but then again i dont see why it souldnt be)

    Thanks very much,
    Dan

  2. #2
    Just Joined!
    Join Date
    May 2005
    Posts
    15
    *bump*

    Anyone hav any ideas ??

  3. #3
    Just Joined!
    Join Date
    Apr 2005
    Posts
    88

    Samba Error

    Greetings,

    Try this:

    create mask = 0644
    directory mask = 0755

    Regards

  4. #4
    Just Joined!
    Join Date
    May 2005
    Posts
    15
    Thanks for the reply,

    i tryed adding those line to the samba config file, however the problem is still the same

    Wheneva i try to do anything to the directory from the windows xp box i always get "Access Is Denied" ...

    Thanks

  5. #5
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058

    Re: Samba or user??

    Quote Originally Posted by Unfit_Elf
    Hi people,

    Ive finally got my old p200 up and running, its running slack 8.1 and apache 1.3 (cant be bother updating ighter atm). I am sharing the /var/www/htdocs folder on my network.. i am accessing this folder through windows xp.. The problem is that i cannot write to it and cannot delete files etc.

    My Samba File:
    Code:
    [global]
    blah blah
    
    [WebSite]
    path = /var/www/htdocs
    browseable = yes
    public = no
    write list = dan
    I think the problem may be to do with "dan" not "owning" this folder or something.. but im not clear on how all that stuff works, any help??

    I would also like to be able to create folders in this directory from my windows box.. (dont know if that possible, but then again i dont see why it souldnt be)

    Thanks very much,
    Dan
    take the write list = dan out
    put writable = yes
    change the file chmod -R 775 htdocsas stated earlier
    cd /var/www then do a ls -la makesure that htdocs
    dxwrxwrr-x root dan blah blab htdocs
    -R == recusive so any directory mad in there will be the same permissions

    here is the thing if your directony looks like this it wont work
    dxwrxwrr-x root root blah blah
    will not work
    need to have a username in the group spot meaning dan
    here is how to do that
    chgrp -R dan htdocs
    this will change to look like
    dxwrxwrxr-x root dan <-----this is what you want
    let me know if you need further assistance
    Mike

    PS if you get this working right you will be able to create and delete folders from your windows box.
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

  6. #6
    Just Joined!
    Join Date
    May 2005
    Posts
    15
    Hi Mike

    I folowed your instructions and when i got to doing ls -la the output was:

    Code:
     drwxrwxr-x   3   root   root   blah   blah   htdocs
    so i did chgrp -R dan htdocs and it said "invalid group name 'dan'"??

    Regards
    Dan

  7. #7
    Just Joined!
    Join Date
    May 2005
    Posts
    15
    Got it all sussed

    Thanks very much for your help

Posting Permissions

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