Find the answer to your Linux question:
Results 1 to 10 of 10
Hi, I have a very basic Samba requirement for my FC10 box which a cannot get working. I have a folder /data which I would like published as a public ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    8

    Unhappy Simple Samba issue

    Hi,

    I have a very basic Samba requirement for my FC10 box which a cannot get working.

    I have a folder /data which I would like published as a public share with not security requirement on my home network. When I browse from my Vista workstation to \\192.168.0.200 I see the share called "data" but I cannot open it. I receive a message saying "The specified network password is not correct".

    Strangely, I don't even get prompted for a password! My smb.conf file contents are pasted below, any assistance will be much appreciated.


    [global]
    workgroup = workgroup
    server string = NAS01
    local master = no
    domain master = no
    preferred master = no
    #password server = None
    guest ok = yes
    guest account = root
    security = SHARE
    dns proxy = no

    [data]
    path = /data
    read only = no
    available = yes
    browseable = yes
    writable = yes
    guest ok = yes
    public = no
    printable = no
    share modes = no
    locking = no

    #create mask = 0775

  2. #2
    Linux Enthusiast L4Linux's Avatar
    Join Date
    Sep 2008
    Location
    Greece
    Posts
    584
    Change public to yes and see if this fixes it.
    After you edit smb.conf, restart the service:
    Code:
    /etc/init.d/samba restart

  3. #3
    Just Joined!
    Join Date
    May 2009
    Posts
    8
    Hi,

    I've tried that without success.

    If I change the directory to "/" I actually get a listing but read-only. Additionally, I cannot see the "/data" folder. When I ssh into the box I can see it:


    drwxr-xr-x 2 root root 4.0K 2009-05-06 18:48 data



    Thanks,
    S

  4. #4
    Linux User glennzo's Avatar
    Join Date
    Sep 2004
    Location
    Salem, Mass
    Posts
    434
    Quote Originally Posted by Synapse30 View Post
    Hi,

    I have a very basic Samba requirement for my FC10 box which a cannot get working.

    I have a folder /data which I would like published as a public share with not security requirement on my home network. When I browse from my Vista workstation to \\192.168.0.200 I see the share called "data" but I cannot open it. I receive a message saying "The specified network password is not correct".

    Strangely, I don't even get prompted for a password! My smb.conf file contents are pasted below, any assistance will be much appreciated.


    [global]
    workgroup = workgroup
    server string = NAS01
    local master = no
    domain master = no
    preferred master = no
    #password server = None
    guest ok = yes
    guest account = root
    security = SHARE
    dns proxy = no

    [data]
    path = /data
    read only = no
    available = yes
    browseable = yes
    writable = yes
    guest ok = yes
    public = no
    printable = no
    share modes = no
    locking = no

    #create mask = 0775
    If this were my computer here's what my smb.conf would look like.

    [global]
    workgroup = workgroup <--- Same as Windows workgroup?
    server string = NAS01
    netbios name = NAS01
    security = SHARE

    [data]
    path = /data
    browseable = yes
    writable = yes
    public = yes

    As L4Linux mentioned, restart smb and nmb after making any changes to smb.conf. My method,
    Code:
    sudo /sbin/service smb restart
    sudo /sbin/service nmb restart


    I find that on some of my Fedora boxes nmb seems to die randomly and at that point I can't access the shared drives on that particular computer. This is when everything seemd OK then suddenly stopped working. Restarting nmb resolves the issue.
    Glenn
    Powered by Fedora 16 and Arch Linux

  5. #5
    Just Joined!
    Join Date
    May 2009
    Posts
    8
    Hi Glen,

    I've tried your suggested config without success. I cannot open the share folder (I can see it though).

    Do the rights if the folder on the FC10 box need to be configured a certain way?

    S

  6. #6
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,114
    Change the permissions on /data to read write and execute
    for everyone.

  7. #7
    Just Joined!
    Join Date
    May 2009
    Posts
    8
    Hi,

    I did a "chmod 777 /data" and there's no change.

    drwxrwxrwx 2 root root 4.0K 2009-05-06 18:48 data

  8. #8
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,114
    Click "Start -> Run." Then, type in the Run field: "secpol.msc." That will bring you to Vista's security policy system. Once there, use "Go to: Local Policies > Security Options" and then find "Network Security: LAN Manager" authentication level. Once there, change the Setting from "Send NTLMv2 response only" to "Send LM & NTLM -- use NTLMv2 session security if negotiated."
    Getting Vista to work with Samba

  9. #9
    Just Joined!
    Join Date
    May 2009
    Posts
    8
    Hi,

    I've just made these changes, also without solution. I can still see the share but not open it.

    I tried something else with a strange result. I change the directory from "/data" to "/" and here I at least get a folder listing (strangely the "/data" folder is not visible. I cannot write to this folder.


    S

    ls output:

    [root@nas01 /]# ls -lah
    total 126K
    drwxr-xr-x 24 root root 4.0K 2009-05-10 16:47 .
    drwxr-xr-x 24 root root 4.0K 2009-05-10 16:47 ..
    -rw-r--r-- 1 root root 0 2009-05-09 00:56 .autofsck
    drwxr-xr-x 2 root root 4.0K 2009-04-25 04:04 bin
    drwxr-xr-x 5 root root 1.0K 2009-05-06 20:53 boot
    drwxrwxrwx 2 root root 4.0K 2009-05-06 18:48 data
    drwx------ 3 root root 4.0K 2009-04-20 11:14 .dbus
    drwxr-xr-x 15 root root 4.6K 2009-05-10 04:02 dev
    drwxr-xr-x 109 root root 12K 2009-05-11 12:51 etc
    drwxr-xr-x 6 root root 4.0K 2009-05-10 17:38 home
    drwxr-xr-x 16 root root 12K 2009-05-11 04:02 lib
    drwx------ 2 root root 16K 2008-11-19 21:10 lost+found
    drwxr-xr-x 2 root root 4.0K 2008-09-06 12:13 media
    drwxr-xr-x 2 root root 4.0K 2009-04-20 11:10 mnt
    drwxr-xr-x 2 root root 4.0K 2009-05-10 16:35 New Folder
    drwxrwxrwx 2 root root 4.0K 2009-05-10 16:51 opt
    dr-xr-xr-x 175 root root 0 2009-05-09 00:55 proc
    drwxr-x--- 19 root root 4.0K 2009-05-10 17:48 root
    drwxr-xr-x 2 root root 12K 2009-04-25 04:04 sbin
    drwxr-xr-x 7 root root 0 2009-05-09 00:55 selinux
    drwxr-xr-x 2 root root 4.0K 2008-09-06 12:13 srv
    drwxr-xr-x 12 root root 0 2009-05-09 00:55 sys
    drwxrwxrwt 24 root root 4.0K 2009-05-11 12:59 tmp
    drwxr-xr-x 13 root root 4.0K 2008-11-19 21:12 usr
    drwxr-xr-x 23 root root 4.0K 2009-05-10 18:12 var
    [root@nas01 /]#


    Dir output (from Vista):

    X:\>dir
    Volume in drive X is data
    Volume Serial Number is 03F0-027E

    Directory of X:\

    10/05/2009 16:47 <DIR> .
    10/05/2009 16:47 <DIR> ..
    09/05/2009 00:55 <DIR> sys
    11/05/2009 12:59 <DIR> tmp
    19/11/2008 21:12 <DIR> usr
    10/05/2009 17:38 <DIR> home
    06/09/2008 12:13 <DIR> media
    06/09/2008 12:13 <DIR> srv
    25/04/2009 04:04 <DIR> bin
    25/04/2009 04:04 <DIR> sbin
    10/05/2009 16:51 <DIR> opt
    10/05/2009 18:12 <DIR> var
    20/04/2009 11:10 <DIR> mnt
    09/05/2009 00:55 <DIR> proc
    11/05/2009 04:02 <DIR> lib
    10/05/2009 04:02 <DIR> dev
    11/05/2009 12:51 <DIR> etc
    0 File(s) 0 bytes
    17 Dir(s) 481,313,837,056 bytes free

    X:\>

  10. #10
    Just Joined!
    Join Date
    May 2009
    Posts
    8
    This turned out to be SeLinux arsing about. Kromberg helped me out over at forums.fedoraforum.org.

    S

Posting Permissions

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