Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Samba username + password

  1. #1
    Join Date
    Mar 2010
    Location
    Jacksonville, FL
    Posts
    131

    Default Samba username + password

    I set up a samba file sharing system but my workgroup asks for a username and password see this-

    http://www.rosanacasco.com/smbusr.png

    This is the text in /etc/samba/smb.conf:

    # smb.conf is the main Samba configuration file. You find a full commented
    # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
    # samba-doc package is installed.
    # Date: 2009-10-27
    [global]
    printcap name = cups
    cups options = raw
    map to guest = Bad User
    include = /etc/samba/dhcp.conf
    logon path = \\%L\profiles\.msprofile
    logon home = \\%L\%U\.9xprofile
    logon drive = P:
    usershare allow guests = Yes
    add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
    domain master = No
    usershare max shares = 100
    passdb backend = smbpasswd
    security = user
    workgroup = workgroup
    domain logons = No
    wins support = Yes

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

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

    [users]
    comment = All users
    path = /home/
    inherit acls = Yes
    veto files = /aquota.user/groups/shares/

    [printers]
    comment = All Printers
    path = /var/tmp/
    printable = Yes
    create mask = 0600
    browseable = No

    [print$]
    comment = Printer Drivers
    path = /var/lib/samba/drivers/
    write list = @ntadmin root
    force group = ntadmin
    create mask = 0664
    directory mask = 0775

    ## Share disabled by YaST
    # [netlogon]
    # comment = Network Logon Service
    # path = /var/lib/samba/netlogon/
    # write list = root

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,941
    Blog Entries
    4

    Default Re: Samba username + password

    What's the question?

    If you are wondering what password it wants, it's not your Linux password. While the login name has to be the same as a Linux account, the password is separate and set using the smbpasswd program.

    Have you read swerdna's tutes on Samba? Search for swerdna samba.

  3. #3
    Join Date
    Mar 2010
    Location
    Jacksonville, FL
    Posts
    131

    Default Re: Samba username + password

    The question is how do I get the username + password I used smbpasswd but it did not do anything. This is the thing I wrote.
    Code:
    linux-3sqj:/home/stephen # smbpasswd -a stephen
    New SMB password:
    Retype new SMB password:
    Added user stephen.
    linux-3sqj:/home/stephen # pdbedit -L -w
    stephen:1000:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:7122B75C7C64CE61FED1F1B808EF5DB1:[U          ]:LCT-4BB27EE6:
    linux-3sqj:/home/stephen # /etc/init.d/smb
    Usage: /etc/init.d/smb {start|stop|status|try-restart|restart|force-reload|reload|probe}
    linux-3sqj:/home/stephen # /etc/init.d/smb restart
    Shutting down Samba SMB daemon                                                                                                                        done
    Starting Samba SMB daemon                                                                                                                             done
    linux-3sqj:/home/stephen # /etc/init.d/nmb restart
    Shutting down Samba NMB daemon                                                                                                                        done
    Starting Samba NMB daemon                                                                                     
    done
    It seems not to do anything to use this program. I did read that collection of articles(although not the whole thing I used the article by openSUSE.org) but that's the only place it got me also did you see the photo?

  4. #4
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,500
    Blog Entries
    48

    Smile Re: Samba username + password

    This is just a problem with the latest version of Samba. You need to drop back to version 3.4.2-1.1.3.1 in Software Management and after the downgrade, lock the older version in place until a newer version that works gets posted. I assume you have Samba version 3.4.3-3.2.1 loaded right now which has the problem.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  5. #5
    Join Date
    Mar 2010
    Location
    Jacksonville, FL
    Posts
    131

    Default Re: Samba username + password

    I can't downgrade samba how do you? I can't downgrade because I pushed the ratio button in versions for the older version but it didn't do anything...

  6. #6
    Join Date
    Mar 2010
    Location
    Jacksonville, FL
    Posts
    131

    Default Re: Samba username + password

    It does not work.

  7. #7
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,500
    Blog Entries
    48

    Smile Re: Samba username + password

    It appears based on your last post you were successful in downgrading your Samba version. If you need further, help, please do not hesitate to ask.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  8. #8
    Join Date
    Mar 2010
    Location
    Jacksonville, FL
    Posts
    131

    Default Re: Samba username + password

    Yes, I did but it still is the same.

  9. #9
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,500
    Blog Entries
    48

    Red face Re: Samba username + password

    First off I see no PC Netbios Name in your smb.conf file which names your PC. You should add the line in the [Global] section:

    netbios name = pcnamehere

    Second, how many computers do you have (you need two or more) to share with and is there workgroup name also call workgroup?

    workgroup = workgroup.

    If you have three or more computers, do the other two computers share files just fine between themselfs?

    Finally, when you are in software Management, are you sure the installed version is 3.4.2-1.1.3.1? I have a small forum post you can read to properly setup Samba at:

    Samba SMB file sharing in openSUSE 11.2 - openSUSE Forums

    Please look at this write and double check your setup.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  10. #10
    Join Date
    Mar 2010
    Location
    Jacksonville, FL
    Posts
    131

    Default Re: Samba username + password

    Nope. It simply won't work are you sure you saw the picture? Maybe you are talking about a different password. I want no username or password. Is that possible? I'll do this later, time to go to bed...

Page 1 of 2 12 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
  •