Jump to content

Simone Luconi

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Simone Luconi

  1. 14 minutes ago, dlandon said:

    The Unraid mount requires credentials for the remote share in order to mount it.  The share access is then controlled with the UD SMB Settings.  UD does not mount devices with guest access on the cifs mount.  The reason this is done is to use Unraids user system to control access.

    So i cannot mount the remote share through UD if it only accept guest access and no credential?

     

    I think the problem is this line here: https://github.com/dlandon/unassigned.devices/blob/master/source/include/lib.php#L992, it should be added the "guest" parameter and remove che credential parameter if the user specify guest access.

  2. 27 minutes ago, dlandon said:

    The way it works is you set the permissions in the UD Settings:

    772312522_SMBSettings.png.9e933d7b5fbb1ffe4191daae4fd46a10.png

    for the access you want to grant to users.  Set guest to r/w, r/o, or no access.  This will then apply to all UD devices.

     

    You still have to set the credentials when setting up the remote share so it will mount.  Then UD puts the appropriate entries in the SMB share config file for the access you have designated.

     

    The SMB config file looks like this:

    [XXXXXXXX_Work]
            path = /mnt/remotes/XXXXXXXX_Work
            browseable = yes
            valid users = admin, home, guest
            write list = admin, guest
            read list = home
            case sensitive = auto
            preserve case = yes
            short preserve case = yes

    You'll see that the valid users are specified and the read and write users specified.  I set guest to r/w before I captured this file.

     

    The problem that i have is that i cannot add the remote samba share to unraid because i cannot specify guest access during the setup of the share, so the login fail (see the log i posted). The solution you posted is if i couldn't access the network share on unraid with guest access, but that is not my problem. 

  3. Guest Access for SMB Shares

     

    I'm trying to access a smb shared with guest access, but it seems like this is not possible? If i try to leave empty the username and password field it still tries to use the credential file. This is the log:

     

    Nov 22 13:43:58 HomeServer unassigned.devices: Mounting Remote SMB/NFS Share '//192.168.8.122/Public'...
    Nov 22 13:43:58 HomeServer unassigned.devices: Mount SMB share '//192.168.8.122/Public' using SMB default protocol.
    Nov 22 13:43:58 HomeServer unassigned.devices: Mount SMB command: /sbin/mount -t 'cifs' -o rw,noserverino,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,uid=99,gid=100,credentials='/tmp/unassigned.devices/credentials_Public' '//192.168.8.122/Public' '/mnt/remotes/192.168.8.122_Public'
    Nov 22 13:43:58 HomeServer kernel: CIFS: Attempting to mount //192.168.8.122/Public
    Nov 22 13:43:58 HomeServer kernel: CIFS: VFS: \\192.168.8.122 failed to connect to IPC (rc=-13)
    Nov 22 13:43:58 HomeServer kernel: CIFS: VFS: cifs_mount failed w/return code = -13



    with cifs normally i use the _guest_ parameter, for example:

    guest,rw,noserverino,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,uid=99,gid=100

    It's possible to add this feature? Or am i missing something?

×
×
  • Create New...