Új hozzászólás Aktív témák

  • Ano

    őstag

    válasz Kendek #2991 üzenetére

    Mostanában nem sok időm volt ezzel foglalkozni, de jutottam azért valamire ... siker még nincsde legalábbhaladok :)

    Találtam az entware-ben egy smbclient nevű csomagot amit feltettem ...

    elvileg ilyen opciókkal rendelkezik:

    SynologyRouter> smbclient -?
    Usage: smbclient service <password>
    -R, --name-resolve=NAME-RESOLVE-ORDER Use these name resolution services
    only
    -M, --message=HOST Send message
    -I, --ip-address=IP Use this IP to connect to
    -E, --stderr Write messages to stderr instead
    of stdout
    -L, --list=HOST Get a list of shares available on
    a host
    -m, --max-protocol=LEVEL Set the max protocol level
    -T, --tar=<c|x>IXFqgbNan Command line tar
    -D, --directory=DIR Start from directory
    -c, --command=STRING Execute semicolon separated
    commands
    -b, --send-buffer=BYTES Changes the transmit/send buffer
    -p, --port=PORT Port to connect to
    -g, --grepable Produce grepable output
    -B, --browse Browse SMB servers using DNS
    -G, --syno-debug Write debug message for internal
    use
    Help options:
    -?, --help Show this help message
    --usage Display brief usage message
    Common samba options:
    -d, --debuglevel=DEBUGLEVEL Set debug level
    -s, --configfile=CONFIGFILE Use alternate configuration file
    -l, --log-basename=LOGFILEBASE Base name for log files
    -V, --version Print version
    --option=name=value Set smb.conf option from command
    line
    Connection options:
    -O, --socket-options=SOCKETOPTIONS socket options to use
    -n, --netbiosname=NETBIOSNAME Primary netbios name
    -W, --workgroup=WORKGROUP Set the workgroup name
    -i, --scope=SCOPE Use this Netbios scope
    Authentication options:
    -U, --user=USERNAME Set the network username
    -N, --no-pass Don't ask for a password
    -k, --kerberos Use kerberos (active directory)
    authentication
    -A, --authentication-file=FILE Get the credentials from a file
    -S, --signing=on|off|required Set the client signing state
    -P, --machine-pass Use stored machine account password
    -e, --encrypt Encrypt SMB transport (UNIX
    extended servers only)
    -C, --use-ccache Use the winbind ccache for
    authentication

    SynologyRouter> smbclient -V
    Version 3.6.24
    Synology Build 8017, Jul 17 2019 10:54:50

    Nem igazán jöttem rá, hogy mire jó, mert sehogy nem tudok csatlakozni a NAS-on lévő Samba-hoz (feltételezem hogy Samba van rajta, mert ugye windowssal lehet rá csatlakozni)

    De van egy parancs amivel listázható egy adott host megosztásai, ahol látszik a NAS összes megosztása:
    SynologyRouter> smbclient -L 192.168.****
    Cannot opendir
    Cannot opendir
    Enter root's password:
    Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.6]
    -------- EZ ITT A NAS SZÓVAL A ROUTER LÁTJA A MEGOSZTÁSOKAT RAJTA -------
    Sharename Type Comment
    --------- ---- -------
    IPC$ IPC IPC Service ("****")
    WD_BLUE_250 Disk
    I*** Disk
    m*** Disk
    i*** Disk
    a*** Disk
    m*** Disk
    p*** Disk
    v*** Disk
    p*** Disk
    -----------------------------------------------------------------------
    Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.6]
    Server Comment
    --------- -------
    B*** ***
    SYNOLOGYROUTER
    W10***
    Workgroup Master
    --------- -------
    WORKGROUP B***

    De akkor hogyan lehet csaklakoztatni a routert a NAS-hoz? :)

    Az általad ajánlott curlftpfs szintén hibát dob ... bár nem is ingazán értem az hogyan akar csatlakozni a NAS-hoz hiszen nem kért bese user-tse jelszót:

    SynologyRouter> curlftpfs -o noatime 192.168.*.* /root/test
    Error connecting to ftp: Access denied: 530


    Szerk.:
    Sikerült csatlakoznom, akkor ha engedélyeztem az Anonymous FTP-t a NAS-on ... de ugye így minden mappa megosztásra kerül, ami nekem nem jó ... hogy lehet speciális mappát megosztani?

    [ Szerkesztve ]

    Synology RT6600AX felfedezés alatt

Új hozzászólás Aktív témák