Hi & sorry if this is too "newbie" of a question but I just can`t find a solution. I`m trying to use smbclient or at least smbmount, but both is not working. What I want to do is: copy files via command line (I will have to do that later with an automated script) from my Linux server to the NT Server (server1) in a directory called "photo library test" (I tried as well "Bit" as directory because I`m not sure of the long directory name with spaces). Here are my closest tries: [root@linux usr]# smbmount '\\server1\Bit' /usr/test -o username=***,password=*** 12775: session setup failed: ERRDOS - ERRnoaccess (Access denied.) SMB connection failed # mount -t smbfs -o username=***,password=*** //server1/Bit /usr/test 12831: session setup failed: ERRDOS - ERRnoaccess (Access denied.) SMB connection failed $ smbclient '\\server1\groups\photo library test' -I 1**.***.**.** -U username added interface ip=10.144.43.230 bcast=10.144.47.255 nmask=255.255.248.0 Password: session setup failed: NT_STATUS_LOGON_FAILURE $ smbclient '\\server1\photo library test' -U username added interface ip=10.144.43.230 bcast=10.144.47.255 nmask=255.255.248.0 Password: session setup failed: NT_STATUS_LOGON_FAILURE $ smbclient \\\\hy1srv1\\Bit -U ddit009 added interface ip=10.144.43.230 bcast=10.144.47.255 nmask=255.255.248.0 Password: session setup failed: NT_STATUS_LOGON_FAILURE I also have to mention: I`m inside a big company network (without any Linux servers) and I wanted to have a linux server for my project (Running Apache & MySQL & Samba). Everything is working fine except the copying of files. In the other directioon it works fine, when I` logged in to my NT workstation I can do copies via cmd using xcopy and copy files from the Linux machine to server1. (server1 is NOT the PDC). Because my whole project is written in PHP I need to start the copy process serverside, ie from my linux server. Any help how to get this done would be greatly appreciated! Thanks a lot and again sorry for this newbie question, but I just didn`t find what I want in the manual (please don`t suggest to rtfm or use google -- already tried that!). Diana ====WHEN ALL ELSE FAILS, HUG YOUR SNOOPY ------------------------------------------------------------ Those who bring sunshine to the lives of others cannot keep it from themselves. J.M. Barrie (1860-1937) ------------------------------------------------------------ __________________________________________________________________ Gesendet von Yahoo! Mail - http://mail.yahoo.de Logos und Klingelt?ne f?rs Handy bei http://sms.yahoo.de
The syntax for smbclient is: smbclient //server/share -U username ...which I see you have tried. You may want to throw in -l and specify a logfile location (ie. /tmp/smbclient.log) and elevating the debug level to about 3 in the smb.conf. Are you sure the password is correct? ---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin |$&| |__| | | |__/ | \| _| | novosirj@umdnj.edu - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630 On Wed, 11 Jun 2003, Diana wrote:> Hi & sorry if this is too "newbie" of a question but I > just can`t find > a > solution. > > I`m trying to use smbclient or at least smbmount, but > both is not > working. > What I want to do is: > copy files via command line (I will have to do that > later with an > automated > script) from my Linux server to the NT Server > (server1) in a directory > called "photo library test" (I tried as well "Bit" as > directory because > I`m > not sure of the long directory name with spaces). > Here are my closest tries: > > > [root@linux usr]# smbmount '\\server1\Bit' /usr/test > -o > username=***,password=*** > 12775: session setup failed: ERRDOS - ERRnoaccess > (Access denied.) > SMB connection failed > > > # mount -t smbfs -o username=***,password=*** > //server1/Bit /usr/test > 12831: session setup failed: ERRDOS - ERRnoaccess > (Access denied.) > SMB connection failed > > > > $ smbclient '\\server1\groups\photo library test' -I > 1**.***.**.** -U > username > added interface ip=10.144.43.230 bcast=10.144.47.255 > nmask=255.255.248.0 > Password: > session setup failed: NT_STATUS_LOGON_FAILURE > > > $ smbclient '\\server1\photo library test' -U username > added interface ip=10.144.43.230 bcast=10.144.47.255 > nmask=255.255.248.0 > Password: > session setup failed: NT_STATUS_LOGON_FAILURE > > > $ smbclient \\\\hy1srv1\\Bit -U ddit009 > added interface ip=10.144.43.230 bcast=10.144.47.255 > nmask=255.255.248.0 > Password: > session setup failed: NT_STATUS_LOGON_FAILURE > > > I also have to mention: I`m inside a big company > network (without any > Linux > servers) and I wanted to have a linux server for my > project (Running > Apache > & MySQL & Samba). Everything is working fine except > the copying of > files. In > the other directioon it works fine, when I` logged in > to my NT > workstation I > can do copies via cmd using xcopy and copy files from > the Linux machine > to > server1. (server1 is NOT the PDC). Because my whole > project is written > in > PHP I need to start the copy process serverside, ie > from my linux > server. > Any help how to get this done would be greatly > appreciated! > Thanks a lot and again sorry for this newbie question, > but I just > didn`t > find what I want in the manual (please don`t suggest > to rtfm or use > google > -- already tried that!). > Diana > > > ====> WHEN ALL ELSE FAILS, HUG YOUR SNOOPY > ------------------------------------------------------------ > Those who bring sunshine to the lives of others cannot keep it from themselves. > J.M. Barrie (1860-1937) > ------------------------------------------------------------ > > __________________________________________________________________ > > Gesendet von Yahoo! Mail - http://mail.yahoo.de > Logos und Klingelt?ne f?rs Handy bei http://sms.yahoo.de > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Thanks, just tried that. using -l does not give me an output into the specified logfile. How do I "raise my debug level"? Went through smb.conf but did not find something like debug level. As well: my password is working (just did a new login to NT & it worked. And the listing works as well (if I give -L ). Thanks for your help! I`m using Redhat 9 professional with the preconfigured Samba 2.2.7a that comes with Redhat. -----Original Message----- From: Ryan Novosielski [mailto:novosirj@umdnj.edu] Sent: 11 June 2003 16:47 To: Samba Mailing List Subject: Re: [Samba] copy files from Linux to NT Server The syntax for smbclient is: smbclient //server/share -U username ...which I see you have tried. You may want to throw in -l and specify a logfile location (ie. /tmp/smbclient.log) and elevating the debug level to about 3 in the smb.conf. Are you sure the password is correct? ---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin |$&| |__| | | |__/ | \| _| | novosirj@umdnj.edu - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630 __________________________________________________________________ Gesendet von Yahoo! Mail - http://mail.yahoo.de Logos und Klingelt?ne f?rs Handy bei http://sms.yahoo.de
personally, I always have to use the -w <workgroup> option too (workgroup=xxx for the mount) to set what workgroup/domain it's using. -----Original Message----- From: Diana [mailto:datachaos@yahoo.de] Sent: Wednesday, June 11, 2003 12:07 To: samba@lists.samba.org Subject: Re: [Samba] copy files from Linux to NT Server Thanks, just tried that. using -l does not give me an output into the specified logfile. How do I "raise my debug level"? Went through smb.conf but did not find something like debug level. As well: my password is working (just did a new login to NT & it worked. And the listing works as well (if I give -L ). Thanks for your help! I`m using Redhat 9 professional with the preconfigured Samba 2.2.7a that comes with Redhat. -----Original Message----- From: Ryan Novosielski [mailto:novosirj@umdnj.edu] Sent: 11 June 2003 16:47 To: Samba Mailing List Subject: Re: [Samba] copy files from Linux to NT Server The syntax for smbclient is: smbclient //server/share -U username ...which I see you have tried. You may want to throw in -l and specify a logfile location (ie. /tmp/smbclient.log) and elevating the debug level to about 3 in the smb.conf. Are you sure the password is correct? ---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin |$&| |__| | | |__/ | \| _| | novosirj@umdnj.edu - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630 __________________________________________________________________ Gesendet von Yahoo! Mail - http://mail.yahoo.de Logos und Klingelt?ne f?rs Handy bei http://sms.yahoo.de -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba