Find the answer to your Linux question:
Results 1 to 5 of 5
I think that Samba is installed in /usr/lib/samba. I have a tar file of the current version. How would I go about upgrading? I've spent a bit of time searching ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Ook
    Ook is offline
    Just Joined!
    Join Date
    Sep 2004
    Location
    Lebanon, Armpit, Oregon, USA
    Posts
    18

    Samba - where is it, and how to upgrade?


    I think that Samba is installed in /usr/lib/samba. I have a tar file of the current version. How would I go about upgrading? I've spent a bit of time searching and it looks that there is very little documentation written for clueless n00bs like me. What I don't know is how to start/stop/restart Samba, and then the tar command to extract the files.

    Oh, yeah, fresh install of Slackware 10

  2. #2
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    samba is in /etc/samba
    cp smb.conf-sample smb.conf
    edit smb.conf
    type
    /etc/rc.d/rc.samba restart

    Should be good to go.
    if you want to upgrade do it through swaret and it should upgrade with rewritting your smb.conf file.

    If you want to add users to your samba add users on the box that are going to be used for samba
    example
    adduser johndoe
    passwd johndoe

    smbpassword -a johndoe

    This will create a smbpassword file in your /etc/samba file.

    Good luck
    Mike

  3. #3
    Ook
    Ook is offline
    Just Joined!
    Join Date
    Sep 2004
    Location
    Lebanon, Armpit, Oregon, USA
    Posts
    18
    This works up to the point I try to access /etc/rc.d/rc.samba/restart. It talle me "Not a directory". I can cd my way to rc.d, and from there I can see rc.samba, but for some reason I can't access it or get into it.

    cd /etc/rc.d/ -> works
    cd /etc/rc.d/rc.samba/ -> Not a directory
    /etc/rc.d/rc.samba/restart -> Not a directory

  4. #4
    Ook
    Ook is offline
    Just Joined!
    Join Date
    Sep 2004
    Location
    Lebanon, Armpit, Oregon, USA
    Posts
    18
    I did, however, change the smb.conf and edit it, and simply reboot the box inleu of restarting samba. I sucessfully setup two shares that I can access from my Windows boxes, but they are write only for some reason. At least I'm making progress

  5. #5
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    Sorry I have been gone for the weekend
    /etc/rc.d/rc.samba <space> restart
    You made it look like restart was a directory should look like this
    (reboot should also work though)

    /etc/rc.d/rc.samba restart

    There could be a couple of reasons it is read only. first look at your global and home sections in /etc/smb.conf file
    there might be somewhere
    readonly = yes
    if so change to no obviously

    the other reason is what ever share you are sharing might have read only permissions

    example


    /home/username/share
    ls
    d--r--r--r root root share

    chmod 775 share

    should change to
    dwxrwxr-rx root root share

    chgrp -R username share

    should change to
    dwxrwxrw-rx root username share

    share is the name of the file in question
    username is the username where the file is.

    This is just an example it could be /usr/src wherever you put your shares

    Make sense?

Posting Permissions

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