readme

来自「samba服务器!」· 代码 · 共 41 行

TXT
41
字号
To create "smbsh" on Linux, just type "make".If you execute "smbsh" in *this* directory (so that it can find the requiredshared library), you'll find yourself in a new shell.  You can then issuecommands referencing the "/smb" pseudo-filesystem:  ls /smb  ls /smb/WORKGROUP_OR_DOMAIN  ls /smb/SERVER  ls /smb/SERVER/SHARE  ls /smb/SERVER/SHARE/PATHNote that WORKGROUP_OR_DOMAIN is *not* used other than at that level.  This isconsistent with the smb:// URI definition.Usage:  smbsh [-L <path to find smbwrapper.so>]        [-p <library to load before smbwrapper.so>]        [-a <library to load after smbwrapper.so>]        [-d <debug value for libsmbclient>]        [-n]                                    (do not ask for username/password)        [-W <workgroup>]        [-U <username%password]        [command]So to list the contents of \\MYDESK\C$ where a username (adventure) and password(xyzzy) are required, and with smbwrapper.so installed in /usr/share/samba, youcould try:  smbsh -L /usr/share/samba -U adventure%xyzzy ls '/smb/MYDESK/C$'(It's a good idea to get in the habit of surrounding windows paths in singlequotes, since they often contain spaces and other characters that'll give youheadaches when not escaped.)This smbsh seems to work quite well on Linux 2.4 and 2.6.  The biggest problem ithas is in tracking your current working directory.  I haven't had the time totrack that down and fix it.Derrell Lipman

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?