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

Thread: Samba Windoze client permissions question

Hybrid View

  1. #1
    Join Date
    Nov 2008
    Posts
    2,439
    Blog Entries
    1

    Default Samba Windoze client permissions question

    I have configured a samba server on my workstation to facilitate a network connection from a Windows 10 machine.
    It was not my intention to configure the samba server for guests in general but was aiming to make the samba share available for my specific machine.
    I have been able to create the connection on the windoze machine but cannot get the permissions right.

    Here is the present server smb.conf:-
    Code:
    alastair@ibmserv2:/etc/samba> cat 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.
    [global]
            workgroup = ibmserv2
            passdb backend = tdbsam
            printing = cups
            printcap name = cups
            printcap cache time = 750
            cups options = raw
            map to guest = Bad User
            logon path = \\%L\profiles\.msprofile
            logon home = \\%L\%U\.9xprofile
            logon drive = P:
            usershare allow guests = No
            include = /etc/samba/dhcp.conf
            wins support = Yes
            usershare max shares = 100
    [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
    [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
    
    [Samba_mastermedia]
            comment = shares multimedia from ibmserv2
            guest ok = Yes
            inherit acls = Yes
            path = /home/alastair/Mastermedia
            read only = Yes
    alastair@ibmserv2:/etc/samba>
    and on the windows machine here is my client:-

    Code:
    Samba_mastermedia (192.168.169.134 (Samba 4.15.7-git.376.dd43aca9ab2150300.3.32.1-SU))
    which is the connection for which I need permissions.

    I have a suspicion I have not set up permissions correctly and do not how to correct this.
    Any help would be much appreciated please.
    Budge.

  2. #2
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    33,387
    Blog Entries
    15

    Default Re: Samba Windoze client permissions question

    Hi
    Not knocking samba as it has it's uses, but why not use the services already installed by default, namely ssh and sshfs?

    Have a read here: https://phoenixnap.com/kb/sshfs
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3
    Join Date
    Nov 2008
    Posts
    2,439
    Blog Entries
    1

    Default Re: Samba Windoze client permissions question

    Good question. The background is I need to try and fix (debug?) a rather old Sony (solid state, not tape,) Walkman which has a Sony operating system and only limited file format tolerance. The device has internal storage and appears when connected as an USB device. It has an SD card socket for expantion. I had been loading my data onto an SD card which has been formatted as 256G exfat but it seems the Sony device is now not reading the files either from internal memory or SD card.

    Working away from the office on an HP machine which has dual boot I can run windoze and do all the file manipulation using a Sony app which has replaced "Media-go". Since all my data is on my workstation and normally uses NFS client on my Leap 15.3 system, I had in mind to serve the same data using samba so that it would work nicely with windoze. I suspect the device OS has non standard features which went out with the brown ball but are still needed for this device. Since the music data set alone is over 30,000 files I wanted to set up a "permanent" service for when I need to use the windoze.

    You did ask!!!

    And my problem is as usual down to my ignorance.

  4. #4
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    33,387
    Blog Entries
    15

    Default Re: Samba Windoze client permissions question

    Quote Originally Posted by Budgie2 View Post
    Good question. The background is I need to try and fix (debug?) a rather old Sony (solid state, not tape,) Walkman which has a Sony operating system and only limited file format tolerance. The device has internal storage and appears when connected as an USB device. It has an SD card socket for expantion. I had been loading my data onto an SD card which has been formatted as 256G exfat but it seems the Sony device is now not reading the files either from internal memory or SD card.

    Working away from the office on an HP machine which has dual boot I can run windoze and do all the file manipulation using a Sony app which has replaced "Media-go". Since all my data is on my workstation and normally uses NFS client on my Leap 15.3 system, I had in mind to serve the same data using samba so that it would work nicely with windoze. I suspect the device OS has non standard features which went out with the brown ball but are still needed for this device. Since the music data set alone is over 30,000 files I wanted to set up a "permanent" service for when I need to use the windoze.

    You did ask!!!

    And my problem is as usual down to my ignorance.
    Hi
    If it's old (as you indicated) I doubt very much it can handle that size SD card? You need to check the Sony device specs, what size is the internal drive, that would probably set the max size of any sd card...
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  5. #5
    Join Date
    Nov 2008
    Posts
    2,439
    Blog Entries
    1

    Default Re: Samba Windoze client permissions question

    Hi Malcolm,
    I have two of these Sony devices both with the same SD card. Both had been working a couple of years ago but had been unused for a while. Once charged, one worked by the book, the other less so and in trying to update the data it became worse at every stage. Before I re-format the SD card in the device, which is the required way apparently, I have been trying to be ready for using the data using the current Sony app which it tells me works on my device (Walkman NWZ-A15.). This app is intended to detect un-permitted media types and change to required format.

    BTW I assume I install sshfs etc on Laep machine using ssh session and zypper. What are the files to install?

  6. #6
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    33,387
    Blog Entries
    15

    Default Re: Samba Windoze client permissions question

    Hi
    Install sshfs on the Leap machine, reboot and ensure the sshd service is running and allowed port (22) open if running the firewall.

    Install winfsp and sshfs-win, a reboot of the windows machine is required. Then just open explorer right click on 'This PC', map network drive. I used the following for my test;

    Code:
    \\sshfs.r\<username>@<ip_address>
    Entered password and connected to / on the linux host.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  7. #7
    Join Date
    Nov 2008
    Posts
    2,439
    Blog Entries
    1

    Default Re: Samba Windoze client permissions question

    Hi Malcolm,
    I see what you mean. Had a fright when Microsoft asked me for their login but that was them trying to spook me. I just used my normal login pw.
    I shall need to do some work to get the right directory as the share but I am very impressed. No need for Samba this time!
    Many thanks once more.

  8. #8
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    33,387
    Blog Entries
    15

    Default Re: Samba Windoze client permissions question

    Quote Originally Posted by Budgie2 View Post
    Hi Malcolm,
    I see what you mean. Had a fright when Microsoft asked me for their login but that was them trying to spook me. I just used my normal login pw.
    I shall need to do some work to get the right directory as the share but I am very impressed. No need for Samba this time!
    Many thanks once more.
    Hi
    One less service (samba) to have installed and maintain...
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  9. #9
    Join Date
    Nov 2008
    Posts
    2,439
    Blog Entries
    1

    Default Re: Samba Windoze client permissions question

    I did try and get the right folder to show but system didn't like the permissions I so accepted your root suggestion and drill down for what I need.
    The Sony app immediately threw up what might have been the cause of my problems. Some of my music files have long filenames as in more than 256 characters and these are rejected by the windoze system. I thought I had curated these but it seems not.
    The whole process is going to take me a long time and the speeds are rather slow even with gigabit copper connection but at least I am making progress.
    Regards,
    Budge

  10. #10
    Join Date
    Nov 2008
    Posts
    2,439
    Blog Entries
    1

    Default Re: Samba Windoze client permissions question

    Hi Malcolm,
    Slightly OT now as I am trying to understand what I am working with. Two questions:-

    Will the share I have created be there several reboots later? I have been using Windoze for this but the machine will normally work on Leap 15.3 or possibly Laep 15.4 if I have time?

    I am using the Sony app Music Centre for PC. For this to work I must import folders and when I do I am asked if the app wants me to save download on local machine. Now since I already have two copies already on NAS and workstation and there is no room on this hardware. My question is if I do not accept the download but the files are imported, what exactly is being imported. Whatever the app is still working away long after I had suspended my import activity to let it catch up. I wonder what is going on with 2 processors and 24 cores and threads I am sure it is not actually working efficiently!!! Will all my work be wasted if I shut down? There is almost zero technical info on this app. Any thoughts when you have a mo.

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
  •