Error on smbclient login on Red Hat


 
Thread Tools Search this Thread
Operating Systems Linux Error on smbclient login on Red Hat
# 1  
Old 05-07-2014
Error on smbclient login on Red Hat

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 host to a windows share.

hldv0153 - name of the linux server
gaalpa1ihsshw11 - name of the windows server
aots\UFO\UFOUserCharts - name of the share
/opt/app/samba/files - linux directory housing files

This is the response from my "smbclient -L gaalpa1ihsshw11" command

Failed to load upcase.dat, will use lame ASCII-only case sensitivity rules
Failed to load lowcase.dat, will use lame ASCII-only case sensitivity rules
Domain=[ITDOMAIN] OS=[Windows Server 2008 R2 Standard 7601 Service Pack 1] Server=[Windows Server 2008 R2 Standard 6.1]

Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Remote Admin
aots Disk
BMC$ Disk
C$ Disk Default share
D$ Disk Default share
devices Disk
E$ Disk Default share
IPC$ IPC Remote IPC
kforms Disk
LogFiles Disk
omwallpaper Disk
sitelauncher Disk
W3SVC2 Disk
Domain=[ITDOMAIN] OS=[Windows Server 2008 R2 Standard 7601 Service Pack 1] Server=[Windows Server 2008 R2 Standard 6.1]

Server Comment
--------- -------

Workgroup Master
--------- -------


This is what my smb.conf file consists of. I'm not sure if the netbios name is correct. Any help as to what to place into the smb.conf file is appreciated.

[global]
workgroup = ITTDOMAIN
netbios name = gaalpa1ihsshw11
server string = Samba Server %v
map to guest = Bad User
log file = /opt/app/d1car1m6/samba/var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
preferred master = No
local master = No
dns proxy = No
security = Domain
# 2  
Old 05-07-2014
You have to login to a particular service (e.g. a share).
Because the Windows notation \\server\service makes problems in the shell, smbclients allow //server/service.
Code:
smbclient -d 1 '//gaalpa1ihsshw11/BMC$' -W ITTDOMAIN

I have added a moderate debug option and a domain (in case smbclient does not pick it from smb.conf).
# 3  
Old 05-07-2014
Can you tell me what the BMC$ is doing ?

---------- Post updated at 07:37 PM ---------- Previous update was at 06:53 PM ----------

Actually I see, I didn't notice it was one of the paths. I am now successfully logging in. Thanks.
Is there a way to create a batch script, automating this using a perl script?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Red Hat: Error connecting using secure shell

Hi All, I am getting below error when I try to connect with ssh. Not sure why the error is on.I am able to connect from a different login from the same server (local: rhe/home/s3>) ssh acces1@91.1.12.102 Connection closed by 91.1.12.102 (local: rhe/home/s3>) ssh redhlinx102 Connection... (7 Replies)
Discussion started by: arunkumar_mca
7 Replies

2. Red Hat

collect red hat linux error logs

Hi, I have two questions,first of all is where can I collect more error logs(the log under /var/log/messages), also give the corresponding explain is grateful.The second one is the log under various versions(such as red hat,suse,etc) is the same or not. Thanks for answers. (1 Reply)
Discussion started by: zhaoyy
1 Replies

3. UNIX for Dummies Questions & Answers

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ?

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ? (2 Replies)
Discussion started by: ahmedamer12
2 Replies

4. Red Hat

Oracle Listener Error on Red hat 5

Hello everybody, the reason why im posting this thread is because i've installed an oracle test database on RHEL 5, on a localhost (Since it is for test)... the thing is, after i have installed the DB it works just fine, but after i re start it, i get the following errors when i want to go into the... (5 Replies)
Discussion started by: blacksteel1988
5 Replies

5. Red Hat

"ERROR : failed to mount nfs source" Red Hat Kickstart

Hi There, I have been googling for this error and try solution provided but still not avail to resolve Kickstart Issue. Any expert have encounter this problem? Thanks. Regards, Regmaster (4 Replies)
Discussion started by: regmaster
4 Replies

6. Red Hat

Buffer I/O error in red hat linux boot up

I get error message when boot up red hat linux Buffer I/O error on device hdc ,logical block XX ... /dev/hdc:read failed after 0 of 2048 at 0 : input/output error ..... I paste the /etc/fstab file in here /dev/hdc is cdrom How can I fix it Please advice # cat /etc/fstab # This file... (3 Replies)
Discussion started by: chuikingman
3 Replies

7. Linux

red hat check error log

Hi All, Where should start checking error on red hat? I want to check error on system, paging, memory, pci, external storage, etc. I few advise will do and highly appreciated. Thanks, itik (3 Replies)
Discussion started by: itik
3 Replies

8. Linux

login in red hat linux

Hi, I have got a very simple, but unresolved problem. I am trying to login in Red Hat Linux here. However the login shell is mentioned as csh in /etc/passwd file. I am unable to make out which file is executed on login - .bash_profile ? There is no file like .bash_login or .bash_tshrc.... (3 Replies)
Discussion started by: asutoshch
3 Replies

9. Linux

Red Hat 9 Login Screen Help

As some users may know, Red Hat 9 uses a graphical login. This works perfectly fine, but one day I had a problem. I logged in as root and changed the resolution of the display. It told me to log out for the changes to take effect. I did...but was faced with my monitor going down to standby. It... (3 Replies)
Discussion started by: Alux
3 Replies
Login or Register to Ask a Question