Use gist.github.com
That is all.
Its very easy, its hosted by Github.
I like git.
A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.
Jump to
Showing posts with label share. Show all posts
Showing posts with label share. Show all posts
Why doesn't smbclient work?
Symptoms:
You can mount a NetApp 'shared drive' using the mount program fine.
But if you try to browse it using smbclient, you get this error when it fails to connect:
session setup failed: NT_STATUS_MORE_PROCESSING_REQUIRED
Cause:
A bug in Ubuntu 11.04
Workaround:
Change your hostname to a short string, without any hypens (dashes) in it!
(copy)
You can mount a NetApp 'shared drive' using the mount program fine.
But if you try to browse it using smbclient, you get this error when it fails to connect:
session setup failed: NT_STATUS_MORE_PROCESSING_REQUIRED
Cause:
A bug in Ubuntu 11.04
Workaround:
Change your hostname to a short string, without any hypens (dashes) in it!
(copy)
smbclient commands on linux
# List all shares
smbclient -L '\\\\server-name' -U username -W DOMAIN
# Logs into server to type commands
smbclient '//server-name/sharename$' -U username -W DOMAIN
# Logs in, runs 'ls' command and disconnects
smbclient '//server-name/sharename$' -U username -W DOMAIN -c ls
See also smb2www (perl) and smb2www (c).
smbclient -L '\\\\server-name' -U username -W DOMAIN
# Logs into server to type commands
smbclient '//server-name/sharename$' -U username -W DOMAIN
# Logs in, runs 'ls' command and disconnects
smbclient '//server-name/sharename$' -U username -W DOMAIN -c ls
# Other parameters:
-d99 = debug output
-D directory = start from directory
# Commands
get = just like FTP
See also smb2www (perl) and smb2www (c).
Labels:
linux,
networking,
samba,
share,
smbclient
Subscribe to:
Posts (Atom)