Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16
Im using an apache web server running at my house and a samba server. My question is i want to be able to access my web drives on the samba ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User
    Join Date
    Apr 2003
    Location
    TEXAS
    Posts
    314

    Using samba


    Im using an apache web server running at my house and a samba server.

    My question is i want to be able to access my web drives on the samba network so i can lets say use word and save my files directly to the web drive.

    Here is my problem.

    I cant do this without making the webdrive readable and writeable for others.

    Ive mounted the drives useing map network drives but the problem is after i save a file to the drive the file becomes un-writeable. I can delete it i just cant save over it.

    When i try to use a user base share windows XP wont let me log into the with the correct user name.

    can any one help me with this problem.
    The computer made me do it!! Slackware and SUSE too Gig\'em WHOOOOP!!
    \"God put me on this earth to accomplish a certain amount of tasks, At the rate I\'m going I will never die.\" (I don\'t know)

  2. #2
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    What does your smb.conf file look like (particularly the entry dealing with the web drive)?
    The best things in life are free.

  3. #3
    Linux User
    Join Date
    Apr 2003
    Location
    TEXAS
    Posts
    314
    # Samba config file created using SWAT
    # from 192.168.1.101 (192.168.1.101)
    # Date: 2003/06/20 11:06:56

    # Global parameters
    [global]
    workgroup = HOWDY
    security = SHARE
    encrypt passwords = Yes
    os level = 255
    preferred master = Yes
    domain master = Yes
    wins support = Yes

    [homes]
    valid users = %S
    guest ok = Yes
    browseable = No

    [TEMP]
    path = /mnt/tmp
    read only = No
    guest ok = Yes

    [SAVE]
    path = /save
    read only = No
    guest ok = Yes

    [PAULWEB]
    path = /home/paul/public_html
    read only = No
    guest ok = Yes

    [CLIFFWEB]
    path = /home/cliff/public_html
    read only = No
    guest ok = Yes

    [printers]
    path = /var/spool/samba/
    guest account = guest
    guest ok = Yes
    printable = Yes
    printing = cups
    print command = lpr -P %p -o raw %s -r
    use client driver = Yes
    browseable = No

    here it is
    The computer made me do it!! Slackware and SUSE too Gig\'em WHOOOOP!!
    \"God put me on this earth to accomplish a certain amount of tasks, At the rate I\'m going I will never die.\" (I don\'t know)

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    Call me crazy but I think you can setup a group as default (ex: samba) and when anyone logs in, they will belong to samba. Now you can change your web drive settings so it belongs to group samba.
    The best things in life are free.

  6. #5
    Linux User
    Join Date
    Apr 2003
    Location
    TEXAS
    Posts
    314
    could the same thing be done with users

    How would I configure samba for such a thing
    The computer made me do it!! Slackware and SUSE too Gig\'em WHOOOOP!!
    \"God put me on this earth to accomplish a certain amount of tasks, At the rate I\'m going I will never die.\" (I don\'t know)

  7. #6
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    Actually, I'm not sure if a GROUP will work in this case since I don't think Samba handles groups. I was thinking of apache and I got it mixed up. However, I don't see why we can't get this to work.
    I'm assuming you have accounts for Paul and Cliff. Take out "guest = ok" in both of the sections and logging in using either of their accounts. If you login as Paul, then you should be able to see the Paul's web directory. Both Paul and Cliff should both have the correct passwords that enable them to look at those directories without any problem.
    The best things in life are free.

  8. #7
    Linux User
    Join Date
    Apr 2003
    Location
    TEXAS
    Posts
    314
    Ok I did what you said now it works. What does the guest option do when you turn it on. Also when I double click on the webdrive without mapping it, windows wont let me choose the user name. Instead it uses a default one.
    The computer made me do it!! Slackware and SUSE too Gig\'em WHOOOOP!!
    \"God put me on this earth to accomplish a certain amount of tasks, At the rate I\'m going I will never die.\" (I don\'t know)

  9. #8
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    1. Setting "guest ok" allows anonymous login. Anonymous login do not need a password. Anonymous logins use username and groupname 'nobody'. You can override this with the "guest account = <name>." If you look in your printer section, I believe this is exactly what's happening. Now whenever someone tries to use the printer, the username and groupname will now be 'guest' instead of the default 'nobody.
    2. Are you saying that only after mapping the drive, you are prompted for a username? Here's a sample look at my smb.conf
    Code:
    &#91;global&#93;
      netbios name = parker
      server string = Samba on %v on &#40;%L&#41;
      workgroup = HOME
    
    &#91;network&#93;
      path = /pub/network
      writable = yes
      guest ok = yes
    
    &#91;web&#93;
      path = /home/brock/public_html
      comment = brock's web directory
      writable = yes
    
    &#91;printer&#93;
      # You should get the basic idea by now
    Now, when I go into "Network Neighborhood" in Windows(Windows2000), I see parker. I double click parker (NOTE: I'm not specifying the share name when I double click parker.) which then prompts me to enter a username and passwd. I leave both blank for an anonymous login. Now it shows me the directories network, web and the printer icon for the printer over the network. If I double click on directory web, now it should prompt me again for a username and passwd because guest ok wasn't set here. Here, I should user name brock and the passwd to enter and do as I please.
    The best things in life are free.

  10. #9
    Linux User
    Join Date
    Apr 2003
    Location
    TEXAS
    Posts
    314
    The problem is when i click on the web drives it doesnt give me a choice for the user name. Why? The same thing goes when i take the guest ok off the other drives on my network. Also can samba be a security problem with the way i have it set up.
    The computer made me do it!! Slackware and SUSE too Gig\'em WHOOOOP!!
    \"God put me on this earth to accomplish a certain amount of tasks, At the rate I\'m going I will never die.\" (I don\'t know)

  11. #10
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    Are these "web drivers" as you called them mapped? If so, I believe once you specifiy a user name and a password for the mapped drive, you don't have to do it again. What happens when you go into "Network Neighborhood" and double click the machine that is hosting the service?
    By the way, I was wrong about something I wrote in the previous post. The default guest account is set to username noboby and the groupname nogroup. This probably means that you have to create a group called nobody and then add the group to user nobody.
    The best things in life are free.

Page 1 of 2 1 2 LastLast

Posting Permissions

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