07-07-2009
Do you mean your unix uses smbclient to ftp like a windows server?
the requested servicename (directory on windows server...) is the first argumant you pass...
man smbclient
servicename
servicename is the name of the service you want to use on the
server. A service name takes the form//server/service where
server is the NetBIOS name of the SMB/CIFS server offering the
desired service and service is the name of the service offered.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello,
Anyone out there can help on this problem?
I have a zip file about 34MB containing a file in EBCDIC and is resided on a Windows 2000 server.
This zip file is retrieved and read from a UNIX server via SAMBA "SMBCLIENT" (by default the file is transferred via command bin) and issued... (2 Replies)
Discussion started by: eddie Law
2 Replies
2. Solaris
Hello everybody .. i want connect with smbclient to an windows server 2003 with active directory. Exist a version of samba that can do this?
Thank you very much for your time.
Good Luck :b: (3 Replies)
Discussion started by: enkei17
3 Replies
3. UNIX for Dummies Questions & Answers
I have successfully gotten AIX to print to a windows shared printer with this command:
smbclient -U user%password -W domain -c "print file.ext"
the only problem is: I have this print queue set up on the Windows side to overlay an image to all pages. When printing from samba, the overlay... (2 Replies)
Discussion started by: raidzero
2 Replies
4. Shell Programming and Scripting
Hi,
I am trying to use smbclient to send message to a windows machine.It is showing "connection failed message" . After googled I came to know about "smbfind" which will give me the nodes in my network. In that list the machine name was not present where I was trying to send the message.
... (1 Reply)
Discussion started by: forstudy3
1 Replies
5. UNIX for Advanced & Expert Users
you know I am told to get an image of the whole ubuntu system on my server shared folder.
If you have used dd before to get an image of the occupied space on the system please lemme know bout your command.
(I preferably want dd to only get an image of the occupied file system not the free space)... (11 Replies)
Discussion started by: dr_mabuse
11 Replies
6. Shell Programming and Scripting
Hi,
I've a question regarding a smbclient-Command in my shell script.
Here my relevant script part:
fileattr=`/opt/samba/bin/smbclient --authentication-file=$AUTH_FILE //$SMB_HOST/$SMB_SHARE 2> /dev/null
prompt off
cd $SMB_DIR
put $LOC_FILE $SMB_FILE
dir /$SMB_DIR/$SMB_FILE
... (17 Replies)
Discussion started by: FreddyDaKing
17 Replies
7. Shell Programming and Scripting
Hi All,
I've been facing on this issue.
From SunOS to Windows
/usr/local/samba/bin/smbclient \\IP\<source dir> -D $TARGET_DIR -U dir1/$WINDOWS_USER%$WINDOWS_PWD -c "put $SOURCE_FILE $TAR
GET_FILE;exit"
This command in my shell script work fine but the file saved on windows environment... (3 Replies)
Discussion started by: gio123bgg
3 Replies
8. Shell Programming and Scripting
Hi,
So I am writting a script to copy files from Linux to windows using smbclient, I have done this a fair amount of times now. Unfortunately this time I am using a simply if statement to determine if the file exists before beginning the smbclient section.....however if I tab the smbclient... (4 Replies)
Discussion started by: mcclunyboy
4 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
Have written a couple of lines to move the contents of a folder from a unix box to a windows location using smbclient (below)
smbclient '{servicename}' -A ~/.smbclientauth -c 'mkdir \test_folder"'
smbclient '{servicename}' -A ~/.smbclientauth -c 'cd "; lcd ";... (4 Replies)
Discussion started by: gary2410
4 Replies
10. Linux
I have the smbclient installed and I am able to see information from the '-L' option. But when I attempt to login I'm getting the "NT_STATUS_BAD_NETWORK_NAME". I was hoping for help, because I'm not sure what is supposed to go into the smb.conf file. My goal is to transfer files from my Linux... (2 Replies)
Discussion started by: islanderman
2 Replies
LEARN ABOUT OPENSOLARIS
smbd
smbd(1M) System Administration Commands smbd(1M)
NAME
smbd - CIFS server daemon
SYNOPSIS
/usr/lib/smbsrv/smbd
DESCRIPTION
The smbd daemon handles CIFS/SMB requests from CIFS clients, such as Windows clients. Only processes with {PRIV_SYS_SMB} and sufficient
privileges to write the /var/run directory can run this daemon.
The smbd daemon is automatically invoked by using the sharemgr command over all available transports. By default, smbd starts over the Net-
BIOS-Over-TCP (NBT) and TCP transports.
When smbd is started over NBT, the following services are started:
o The NetBIOS name service is started on UDP port 137.
o The NetBIOS datagram service is started on UDP port 138.
o The NetBIOS session service is started on TCP port 139.
When the smbd daemon is started over TCP, the CIFS service is started on TCP port 445.
Only one instance of smbd may be running at a time.
EXIT STATUS
The following exit values are returned:
0 Daemon exited cleanly.
95 Daemon exited with a fatal error.
96 Daemon exited with a configuration error.
ATTRIBUTES
See the attributes(5) man page for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsmbsu |
+-----------------------------+-----------------------------+
|Interface Stability |Uncommitted |
+-----------------------------+-----------------------------+
SEE ALSO
ps(1), svcs(1), sharectl(1M), sharemgr(1M), smbadm(1M), smbstat(1M), svcadm(1M), smb(4), smbautohome(4), system(4), attributes(5), smf(5)
NOTES
Use the svcadm command to perform administrative actions on the smbd service, such as enabling, disabling, or restarting the service. Use
the svcs command to query the service status.
The smbd service is managed by the service management facility under the service identifier svc:/network/smb/server.
If the smbd service is disabled, it will be enabled by the sharemgr(1M) command, unless its auto_enable property is set to false.
SunOS 5.11 5 Feb 2008 smbd(1M)