smbclient question...

TheOmegaCode

Platinum Member
Aug 7, 2001
2,954
1
0
FAQ needs more linux support ;)
Anyways, I rarely mess with Samba... but I had to install samba client on my Nix box at work. I can get to mapped drives
#smbclient //ersmain/apps -U Administrator
password# XXXXXXX
smb: >


Now my question as follows... Can I mount server shares? Do I have the ability/ability to write to the shares? The account which I'm logging on with does...
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
You should be able to write to them, but mounting them depends on your OS. Linux has smbfs (?) support to my knowledge, but many of the other UNIX-like systems dont. Check your kernel config.
 

TheOmegaCode

Platinum Member
Aug 7, 2001
2,954
1
0
ok, say I have a file under /home/interns/tmp and I want to copy it to a windows share \\ersmain\apps\ ?
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0


<< ok, say I have a file under /home/interns/tmp and I want to copy it to a windows share \\ersmain\apps\ ? >>



man smbclient

I have no clue how it works. :)
 

kylef

Golden Member
Jan 25, 2000
1,430
0
0
You can mount samba shares in linux and make them appear as though they're on the local filesystem. You must have smbfs support enabled in your kernel either as a module or directly compiled into your kernel. Most default kernels have support already.

Typically, you'd add a line like this to your /etc/fstab file:



<<
\\machine.domainname.com\sharename /mountpoint smbfs auto,owner,username=username%passwd 0 0
>>



Obviously, this is not an ideal solution if you want to keep your password secret...

Also, make sure that your samba server, if it is a Windows box, has "NetBIOS over TCP/IP" enabled.


 

TheOmegaCode

Platinum Member
Aug 7, 2001
2,954
1
0
xSMBrowser is so cool... I went ahead and installed it on my box. The good news is that it doesn't need smbfs so you can install it on essentially any nix box... BTW, it comes back showing me all shares, even 'hidden 2k' shares ;)