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

Thread: Samba share: password required

  1. #1

    Default Samba share: password required

    Hi there, I've got some issues with my samba configuration:


    • I can see and open the main disk folder /home but I can't add files
    • The system ask me to put a password to see Disk2 and Disk3


    Please find below my smb.conf file:

    # 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.
    [global]
    workgroup = SKY72359
    passdb backend = tdbsam
    printing = cups
    printcap name = cups
    printcap cache time = 750
    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 logons = No
    domain master = No
    security = user
    usershare max shares = 100
    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
    read only = No
    store dos attributes = Yes
    create mask = 0600
    directory mask = 0700
    guest ok = No
    [users]
    comment = All users
    path = /home
    read only = No
    inherit acls = Yes
    veto files = /aquota.user/groups/shares/
    [groups]
    comment = All groups
    path = /home/groups
    read only = No
    inherit acls = Yes
    [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]

    [Doc]
    comment = Doc
    guest ok = Yes
    inherit acls = Yes
    path = /home/calimero/Documents
    read only = No

    [Disk3]
    comment = Disk3
    guest ok = Yes
    inherit acls = Yes
    path = /run/media/root/Disk3
    read only = No
    valid users = %S, %D%w%S

    [Disk2]
    comment = Disk2
    inherit acls = Yes
    path = /run/media/calimero/Disk2
    read only = No
    vfs objects =

    Silly question: why hard disk "Disk2" and hard disk "Disk3" have different path? They are installed in two different bays in my computer

    Many thanks for your help!

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    26,508

    Default Re: Samba share: password required

    Hello,

    I see this is your first post, welcome to the openSUSE forums.

    You have chosen for OTHER VERSION, which should mean that you use an unsuported version of openSUSE. This might make it more difficult to help, but people will nevertheless try to help. You could however make this easier when you explain what version you do run (lack of clairvoyance here).

    Also a technical hint:
    There is an important, but not easy to find feature on the forums.

    Please in the future use CODE tags around copied/pasted computer text in a post. It is the # button in the tool bar of the post editor. When applicable copy/paste complete, that is including the prompt, the command, the output and the next prompt.

    An example is here: Using CODE tags Around your paste.
    Henk van Velden

  3. #3
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    21,583
    Blog Entries
    1

    Default Re: Samba share: password required

    Silly question: why hard disk "Disk2" and hard disk "Disk3" have different path? They are installed in two different bays in my computer

    Many thanks for your help!
    It appears that you're letting these mount via your desktop environment's mounting mechanism. That uses the support of udev/udisks to do that, and determines the /run/media/ naming. The mount command will show..
    Code:
    mount | grep /run/media
    If they are going to be permanent shares, then consider mounting via /etc/fstab instead.

    https://wiki.archlinux.org/index.php/Fstab
    openSUSE Leap 15.2; KDE Plasma 5

  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    21,583
    Blog Entries
    1

    Default Re: Samba share: password required

    Also, review the following samba guide re using ACLs and their effect...

    https://wiki.samba.org/index.php/Set...Adding_a_Share
    openSUSE Leap 15.2; KDE Plasma 5

  5. #5

    Default Re: Samba share: password required

    Quote Originally Posted by deano_ferrari View Post
    It appears that you're letting these mount via your desktop environment's mounting mechanism. That uses the support of udev/udisks to do that, and determines the /run/media/ naming. The mount command will show..
    Code:
    mount | grep /run/media
    If they are going to be permanent shares, then consider mounting via /etc/fstab instead.

    https://wiki.archlinux.org/index.php/Fstab
    Thank you for your reply Deano! Done with Yast > Partitioner. Seems to be fine! Unfortunately I'm still in trouble for HD share

  6. #6

    Default Re: Samba share: password required

    Quote Originally Posted by deano_ferrari View Post
    Also, review the following samba guide re using ACLs and their effect...

    https://wiki.samba.org/index.php/Set...Adding_a_Share
    Thank you Deano... But I'm still in trouble.... same issue... I don't know how to solve the problem.

  7. #7
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    26,508

    Default Re: Samba share: password required

    Quote Originally Posted by hcvv View Post

    You have chosen for OTHER VERSION, which should mean that you use an unsuported version of openSUSE. This might make it more difficult to help, but people will nevertheless try to help. You could however make this easier when you explain what version you do run (lack of clairvoyance here).
    I am afraid we still do not know which version of openSUSE you use
    Henk van Velden

  8. #8

    Default Re: Samba share: password required

    Quote Originally Posted by hcvv View Post
    I am afraid we still do not know which version of openSUSE you use
    Hi Henk,

    OpenSuse Leap 42.1.20170515

    Many thanks for your help!

  9. #9

    Default Re: Samba share: password required

    Quote Originally Posted by Ginchettas View Post
    Hi Henk,

    OpenSuse Leap 42.1.20170515

    Many thanks for your help!
    Now I can see the content but I can't write/modify the files.

    The problem was in the mount folder settings run > media > calimero > Disk2 and run > media > calimero > Disk3 : the "Share with Samba" option was not activated in Properties> Share tab.

    Thanks for your suggestions!

    Giovanni

  10. #10
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    21,583
    Blog Entries
    1

    Default Re: Samba share: password required

    Quote Originally Posted by Ginchettas View Post
    Now I can see the content but I can't write/modify the files.

    The problem was in the mount folder settings run > media > calimero > Disk2 and run > media > calimero > Disk3 : the "Share with Samba" option was not activated in Properties> Share tab.

    Thanks for your suggestions!

    Giovanni
    A permissions issue - all part of the learning
    Permission precedence

    Samba comes with different types of permissions for share. Try to remember few things about UNIX and Samba permissions.
    (a) Linux system permissions take precedence over Samba permissions. For example if a directory does not have Linux write permission, setting samba writeable = Yes (see below) will not allow to write to shared directory / share.
    (b) The filesystem permission cannot be take priority over Samba permission. For example if filesystem mounted as readonly setting writeable = Yes will not allow to write to any shared directory or share via samba server.
    https://www.cyberciti.biz/tips/how-d...ba-shares.html
    openSUSE Leap 15.2; KDE Plasma 5

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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