Samba - Linux help

Discussion in 'Linux & BSD' started by indyjones, Oct 27, 2003.

  1. indyjones

    indyjones OSNN.net Adventurer

    Messages:
    1,567
    Location:
    England
    Hi I have setup a clarkconnect linux server which works fine except i am having a nightmare configuring the samba fileshare.
    I am using webmin so the configuration is generic for linux and so far i have got the server to show up, and allow access to the partions i created but, i cannot write to them dispite the status of these shares being read/write public.
    Could anybody please point me to a good guide or tutorial of how to do this (preferibly using webmin) as i feel i am well out of my league :)

    Thanks
     
  2. j79zlr

    j79zlr Glaanies script monkey Political User

    Messages:
    2,725
    Location:
    Chicago
  3. indyjones

    indyjones OSNN.net Adventurer

    Messages:
    1,567
    Location:
    England
    Webmin is a util so you can remotely configure your server http://www.webmin.com/

    I have looked at those guides and they are just beyond me :eek:
    Here are the relevent screenshots of the samba part attached in a zip file
     
  4. j79zlr

    j79zlr Glaanies script monkey Political User

    Messages:
    2,725
    Location:
    Chicago
    I would try and help you with that, but I'm sure someone has some experience with using Webmin would be better off trying to help you. Basically all you need to do is edit the smb.conf file in /etc/ then run smbpasswd -a username from the shell for the user accounts.

    A basic config would look like:

    Code:
    [global]
    workgroup = YOUR WORKGROUP
    server string = MACHINE DESCRIPTION
    netbios name = MACHINENAME
    encrypt passwords = yes
    smb passwd file = /etc/smbpasswd
    security = user
    log file = /var/log/samba.log
    log level = 1
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    wins support = yes 
    
    [sharename]
    comment = Shared name
    path = /usr/share
    valid users = user1 user2
    public = no
    writable = yes
    printable = no
    create mask = 0765
     
  5. NetRyder

    NetRyder Tech Junkie Folding Team

    Messages:
    13,256
    Location:
    New York City
    I would do it by editing configuration files manually as well. At least that way, you know what you're doing so that you can troubleshoot any problems that you might encounter later.
     
  6. indyjones

    indyjones OSNN.net Adventurer

    Messages:
    1,567
    Location:
    England
    How should I configure the users which groups etc and how will the server reconise windows machines?

    cheers
     
  7. The_Schwarz

    The_Schwarz Guest

    You have to change the mode of the files and directories in the shares to be writeable by the users that you wish to write to it
     
  8. indyjones

    indyjones OSNN.net Adventurer

    Messages:
    1,567
    Location:
    England
    how do you assing the users to be winxp machines ??
     
  9. The_Schwarz

    The_Schwarz Guest

    I use domain logins
     
  10. indyjones

    indyjones OSNN.net Adventurer

    Messages:
    1,567
    Location:
    England
    ok could you tell me how you do this i am a total newbie with this and really have no idea what i am doing the 2 parts i need to shared are separate partions on the hdd /backup and /shared. Could you post a samba config to help more with this domain login and also how do you set the samba passwords and domain logins ? Cheers
     
  11. indyjones

    indyjones OSNN.net Adventurer

    Messages:
    1,567
    Location:
    England
  12. The_Schwarz

    The_Schwarz Guest

    in google type samba pdc howto and read that. It is eaiser then me trying to explain how :D
     
  13. j79zlr

    j79zlr Glaanies script monkey Political User

    Messages:
    2,725
    Location:
    Chicago
    just add the XP username/passwords to the Linux machine, then run smbpasswd -a user1 and enter in the password to each of the users. I don't see a need to set up a domain for a simple home network, besides if you are using XP home you cannot join a domain.