Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15
Hi everyone, have a few questions with samba. I'm using openSuSE 10.2, samba v. 3.0.23d-6-1083-SUSE-SL10.2 I have a setup a fileserver (see below for smb.conf), for all the documents on ...
  1. #1
    Just Joined!
    Join Date
    Aug 2007
    Posts
    9

    Question Samba config/mounting help!

    Hi everyone, have a few questions with samba.

    I'm using openSuSE 10.2, samba v. 3.0.23d-6-1083-SUSE-SL10.2

    I have a setup a fileserver (see below for smb.conf), for all the documents on the LAN, but now that it has come to connecting the other computers to it I am not quite sure how to go about it.

    In the network there are 3 other openSuSE machines, all running on 10.2, and one Win XP Home.

    Configuring the XP machine was simple enough, just added the file server as a network drive, and changed where it looked for "My Documents". As far as doing it on the openSuSE machines goes, I have pretty much no idea how to go about it. Do I uses smbmount? If so what is the synax? Or would using something like SSHFS be easier?

    One peculiar thing about the way I have the file server set up is no login required for anyone on the network - the reason for that is I have, in the past, found samba users to be extreme a pain to configure. Should I have users configured? Do I need to to mount the drive on openSuSE?

    Anyways, here is my smb.conf listing, feel free to tell me anthing I have left out, or something that should be given the chop.

    [global]
    workgroup = GROUPNAME
    printcap name = cups
    guest ok = yes
    security = share
    browseable = yes
    interfaces = lo eth0
    bind interfaces only = true

    [homes]
    comment = Home Directories
    valid users = %S, %D%w%S
    read only = No
    guest ok = yes
    security = share
    inherit acls = Yes
    browseable = No

    [profiles]
    comment = Network Profiles Service
    path = %H
    read only = No
    create mask = 0600
    directory mask = 0700
    store dos attributes = Yes

    [users]
    comment = All users
    path = /home
    read only = No
    security = share
    write ok = yes
    guest ok = yes
    inherit acls = Yes
    browseable = yes

    [groups]
    comment = All groups
    path = /home
    browseable = yes
    security = share
    write ok = yes
    read only = No
    guest ok = yes
    inherit acls = Yes

    [printers]
    comment = HL-2040 Laser Printer
    printcap name = cups
    path = /var/spool/samba
    create mask = 0600
    guest ok = Yes
    printable = Yes
    browseable = Yes
    force user = scott
    use client driver = yes
    [print$]
    comment = Printer Drivers
    path = /usr/share/cups/drivers/
    write list = @ntadmin, root
    force group = ntadmin
    create mask = 0664
    directory mask = 0775
    writable = yes
    printcap name = cups
    pase client driver = yes

    Once again, any help on how to go about mounting the shares on the server in openSuSE would be awesome.

    Thanks,

    Theodred

  2. #2
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    Check out Smb4K

    Great for mounting Samba shares graphically

    you can get Suse version of it from the

    Index of /repositories/KDE:/Backports

    Note you must navigate to for the correct distro and cpu bits

    Easier is to install Smart which has the backports repository setup

    SMART Package Manager - SUSE Wiki

  3. #3
    Just Joined!
    Join Date
    Aug 2007
    Posts
    9
    Thanks 4 that.

    OK, ive installed Smb4k but when I look for the share, it just says that smbmount is installed... Which is strange, because I have smbclient and smb server and smb utils installed. I tried reinstalling all of them, from the online sources, but still no go. Any ideas?

  4. #4
    Just Joined! swerdna's Avatar
    Join Date
    Apr 2006
    Location
    Oz
    Posts
    67
    Hello Thodred, Ive got four questions for you that will help me frame my advice:

    1: I can't see in the smb.conf the defined share that will contain all the documents for the Lan. Have you created that share yet? Do you need advice on howto create it appropriately?

    2: You've got share level security running. Is that what you really want, or would you like assistance to get user level security running?

    3: Gnome & KDE have different Samba-associated sharing utilities. Are you running Gnome or KDE?

    4: Do you want to have the document share appear on all Linux machines just like the mapped drives one gets in windows?

    Swerdna

  5. #5
    Just Joined!
    Join Date
    Aug 2007
    Posts
    9
    Quote Originally Posted by swerdna View Post
    Hello Thodred, Ive got four questions for you that will help me frame my advice:

    1: I can't see in the smb.conf the defined share that will contain all the documents for the Lan. Have you created that share yet? Do you need advice on howto create it appropriately?

    2: You've got share level security running. Is that what you really want, or would you like assistance to get user level security running?

    3: Gnome & KDE have different Samba-associated sharing utilities. Are you running Gnome or KDE?

    4: Do you want to have the document share appear on all Linux machines just like the mapped drives one gets in windows?

    Swerdna
    Hey swerdna.

    1) I'm using the [users] share, with a profile for each user under that. I am not sure how you would create it "properly"... I don't know if I need to go to the bother of setting up users and all for my network - how hard is it?

    Our network is just a home network, 6 or 7 computers, all Linux except for one, which is XP Home. Two of the linux boxes are servers - one web, mysql, photos, etc and the other file/backup.

    2) As above - I just set it up as quickly as possible, and found that share works. If you have a good (quick probably preferrable ) way to do this, I'd be very very greatful for your help.

    3) I'm a staunch KDE fan. Go the K! As I said above, I have installed Smb4k, but (and I am running 10.2 with smbutils, smbclient and smbserver installed) but Smb4k can't find smbmount. Any thoughts? (for more info on that see the above post)

    4) Yeah, that would be good. Mounted on the home directory would be even better, but I'm not that picky.

    Again, any of your help would be greatly appreciated!

    Theo
    PS You wouldn't happen to have any experience in printing to Windows through Linux, would you?

  6. #6
    Just Joined! swerdna's Avatar
    Join Date
    Apr 2006
    Location
    Oz
    Posts
    67
    You seem to have it pretty-well organised with share level security, so I'll leave you alone. Here's a tutorial relating to mounting, that might interest:

    HowTo Mount a CIFS Network Share [AKA Mapped Network Drive] in openSUSE 10.2+

    If you want to make a share based in/on directory /path_to/shared_folder, you add this text into the bottom of the file /etc/smb.conf:
    [NameOfYourChoice]
    path = /path_to/shared_folder
    guest ok = yes
    read only = no
    And for your share-level security you change the permissions on folder "shared_folder" from the normal drwxr-xr-x to drwxrwxrwx


    Regarding the printing to windows through Linux - I can't decide whether you mean the printer is on the win box or the Lin box, so you pick:

    Windows Print Server on a Linux-Windows Home Workgroup

    Linux Print Server on a Linux-Windows Home Workgroup

    Swerdna

  7. #7
    Just Joined!
    Join Date
    Aug 2007
    Posts
    9
    Hey man,

    Thanks for those, I'll read them indepth on the weekend.

    BTW, I was meaning a linux print server on a Linux/windows network

    Thanks, and I'll get back to you about these shortly

    Theo

  8. #8
    Just Joined!
    Join Date
    Aug 2007
    Posts
    9

    Slight problem...

    Hi everyone.

    Today I (finally) got around to configuring the samba remote share thing, as specified by Swerdna in his tutorial (above).

    I entered the line into fstab as root, edited the applicable parts, and saved it. I then rebooted. On login to KDE, a new "Remote Share (url)" (Type: Unmounted Samba), was showing on the desktop. But it was saying it was unmounted, and, when I tried to access the directory I had mounted the share onto, konqueror said "premission denied".

    I'm not quite sure what went amuck - the setup on the client, or the server setup. (I think the latter is more likely though)

    Below are the fstab line and the applicable bits from the server smb.conf.

    (btw my share is called users)

    fstab file line:

    //pathtoshare/users /home/share******** *cifs * * *
    username=scott,password=share,auto,uid=scott,gid=u sers 0 0

    smb.conf exerts:

    [global]
    workgroup = SOJOURN
    guest ok = yes
    printcap name = cups
    security = share
    broweable = yes
    interfaces = lo eth0
    bind interfaces only = true

    And the share part:

    [users]
    * * * * comment = All users
    * * * * path = /home
    * * * * read only = no
    * * * * security = share
    * * * * write ok = yes
    * * * * guest ok = yes
    * * * * inherit acls = Yes
    * * * * browseable = yes

    I think the problem might lie with the samba users - I did set one up with the shown username and password - but I'd be grateful for any pointers!

  9. #9
    Just Joined! swerdna's Avatar
    Join Date
    Apr 2006
    Location
    Oz
    Posts
    67
    Hi Theodred.

    Those asterisks aren't right. You need to edit them out your file /etc/fstab and from the paragraph [users] defining the share in /etc/samba/smb.conf

    The line defining the mount in fstab won't work. But lets address that after the share on the server can be seen properly from the client in a browser, OK 1 step at a time.

    So since smb.conf is just a text file, open it with a text editor
    If using KDE, this shell command will open the file smb.conf:
    Code:
    kdesu kwrite /etc/samba/smb.conf
    Now you can alter this bit:
    [users]
    * * * * comment = All users
    * * * * path = /home
    * * * * read only = no
    * * * * security = share
    * * * * write ok = yes
    * * * * guest ok = yes
    * * * * inherit acls = Yes
    * * * * browseable = yes
    to this:
    [users]
    comment = All users
    path = /home
    read only = no
    guest ok = yes
    Since you have "guest ok = yes" access defined in [users] and also have "security = share" in [global], I assume you want full unrestricted public access to all directories under /home on the server. That's unusual but OK if you intend for it to happen. Correct me if I'm wrong.

    Also make sure the Suse firewalls are off for the time being to reduce confusion. Shields can go back up when the LAN works. Then reboot and see whether you can see the share "users" from the client.

    You can start net browsing on the client by inserting this address in Konqueror browser: smb:/.

    Let's see how far that gets you?

    Swerdna

  10. #10
    Just Joined!
    Join Date
    Aug 2007
    Posts
    9
    Heya.

    Bout the asterixs - not sure how they showed up, they arent' in the original files, must have been something with pasting them into the form.

    Yep, all public access is good for the situation - it is just a home network, I have no serious concerns about security right now.

    Thanks for the tip - I will put all the firewalls down to start with.

    About the shares on the server - I am currently able to browse to them using a web browser, and, from the web browser, is fully rwx capible. (I've also got it setup as a network drive on XP - and mirrored to My Documents, and it works a treat) The problem seems to be doing it on SuSE.

    Aside from disabling firewalls, any idea why suse is not mounting the share?

    Thanks!

    Theodred

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
  •  
...