Announcement

Collapse
No announcement yet.

Help with Samba

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help with Samba

    What do I need to install in order to mount network shares on the windows network? I know I need Samba but do I just do the 'apt-get install samba' ? or do I also need something else? Also, will this allow me to share the HDD on this workstation to other non Linux PC's on the same windows network? Or do I have to join this Kubuntu PC to the windows domain and if so how do I do that? When I look in the Adept Installer it shows I have 'Samba' (Package: kdenetwork-filesharing) installed but when I go to 'System Setting' and click on 'sharing' under 'Network & Connectivity' I get a pop up that says ' SMB and NFS servers are not installed on this machine, to enable this module the servers must be installed' Just want to make sure I know what to install and what I don't need to install. Thanks.

    -Dave

    #2
    Re: Help with Samba

    BUMP.....

    Comment


      #3
      Re: Help with Samba

      I found quite a few tutorials using google.

      https://help.ubuntu.com/8.04/serverg...ing-samba.html

      Comment


        #4
        Re: Help with Samba

        OK, i installed 'smbfs' and I was able to mount the server share at /mnt/sharename however I can read the files and even open them in OO like I should but I cant write to the directory. How can I make changes to the permissions? When I mount the volume like this;

        mount -t smbfs -o username=myusername,password=mypassword //192.168.xxx.xxx/share /mnt/share

        i think this is the problem because I'm not including the domain for validation. i.e. domain/username + password How can i enter this command with the domain information - or can I?

        Also, my next step is to mount these automatically after I reboot. I know I have to modify the 'fstab' file but do I just enter it the same way or do I have to add some command to it?
        Thanks...

        -Dave

        Comment


          #5
          Re: Help with Samba

          I did read it but it's not clear to me, exactly.. First off, I only did the 'apt-get install smbfs' but do I also need to do the 'apt-get install samba smbclient' ?

          I think I have decided NOT to join the active directory domain since I don't see it really giving me much more control. However I am still curious if I can gain full access to shares without joining the domain?

          Sorry to be such a pain, i realize the answer may be staring me in the face but I just don't see it yet. Thanks...

          -Dave

          Comment


            #6
            Re: Help with Samba

            Originally posted by dbpbandit
            OK, i installed 'smbfs' and I was able to mount the server share at /mnt/sharename however I can read the files and even open them in OO like I should but I cant write to the directory. How can I make changes to the permissions? When I mount the volume like this;

            mount -t smbfs -o username=myusername,password=mypassword //192.168.xxx.xxx/share /mnt/share
            When I want to mount a shared directory from a Windows server to a local directory on my Kubuntu machine, I do it like this:

            Code:
            sudo mount //192.168.xxx.xxx/sharename /mnt/mountpoint -orw,uid=1000,gid=1000,username=windowsuser,password=windowspassword
            It is only a few more parameters than the command you were using, but they are important and I think I can explain basically what they do.
            • rw is the mode, and means read/write. I use this when I want the mounted share to be writable.
            • uid=1000 sets the unix owner to files within the share to user id 1000. If your user has a different user id, then use it instead.
            • gid=1000 same as uid, except it is the unix group.


            It is usually not necessary to specify the filesystem type, so you can probably drop the -t smbfs parameter completely. I don't need it when I mount shares anyway. There are many other mount parameters which you may find useful, but those are the only ones I've needed.

            Sorry to be such a pain, i realize the answer may be staring me in the face but I just don't see it yet.
            We all start as noobies, and I still consider myself one. You can help us all a great deal, and especially yourself, by spending some time reading the documentation you've already been given. The community is here to help with your questions, so please do ask. Well informed questions are especially welcomed
            Welcome newbies!
            Verify the ISO
            Kubuntu's documentation

            Comment

            Working...
            X