Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to share Window file from linux Samba server? 1

Status
Not open for further replies.

Yescha

Programmer
Aug 10, 2002
16
CA
Hello;
I can view the Linux Samba server in my workgroup and I changed it's name too using netbios.
But, I am still not being able to view the window files(I'm using win2000).
I used this command as told by Fluid11 but in vain:

root> mount -t smbfs -o username="user" //winserver/sharename /mnt/smb

where user= my Window user ID and winserver is my WinServer name in the networkgroup and sharename is share directory name. But it is giving me following error:
ERROR: mount -t smbfs -o username="chakra" //chakra/temp /mnt/s
Could not resolve mount point /mnt/smb

when I tried \\ instead of // like \\chakra\ then same ERROR.
I tried IP instead of winserver(i.e. chakra). But all in vain.
Can anyone give me some idea?

BYE!!!
Like Linux, Want to be Linux Guru
 
You have to create the folder in /mnt first.

mkdir /mnt/smb

...or whatever you want to call it.


ChrisP ------------------------------------------------------------------------------
If somebody helps you, please click the link in the botton left hand corner that says "Mark this post as a helpful/expert post".
 
Again, when I tried to do this after creating smb in /mnt It's not working ...
Message:

root]# mount -t smbfs -o username="chakra" //211.114.125.244/E
Password:
2190: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid sh)
SMB connection failed

Where
chakra = User ID
211....244 = win200 IP
E = shared drive in win2000
 
Don't put the username in double quotes "". You left off the mount point in the end of the command. Try this...

mount -t smbfs -o username=chakra //211.114.125.244/E /mnt/smb


Is your computer on the same network as the Windows server? That IP looks like a public IP to me. Is "E" the name of the share? It says you specified an invalid share. Are you sure its not E$, if you trying to connect to a default administrative share?


ChrisP ------------------------------------------------------------------------------
If somebody helps you, please click the link in the botton left hand corner that says "Mark this post as a helpful/expert post".
 
Hello Fluid11;
Thanks a lot for your help and interest to solve my problem.
Another thing, Yes, the IP is dynamic(public IP) and samba server(name is SambaC) and win2000 server(name is Chakra)) are on the same WORKGROUP i.e. usenix

ERROR Message
[root@localhost root]# mount -t smbfs -o username=chakra //211.114.125.244/E$ /m
nt/smb
Password:
2406: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid sha
re name)
SMB connection failed
[root@localhost root]# mount -t smbfs -o username=chakra //chakra/E$ /mnt/smb
Password:
2410: tree connect failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed
 
Are you entering the password for user "chakra" on the Windows server?


ChrisP ------------------------------------------------------------------------------
If somebody helps you, please click the link in the botton left hand corner that says "Mark this post as a helpful/expert post".
 
Yes; I am using password that is my window user password. But, I tried window administrator password too.

Neither is working.

Again, hoping your kind reply.

Thanks a lot four your co-operation. I think these tyes of forum are becoming popular because of those people like you.

BYE!!! Like Linux, Want to be Linux Guru
 
Does the user "chakra" have access to the share? Try username=admin and then use the admin's password.

Also, try this...

mount -t smbfs -o username=user,ip=1.2.3.4 //server_name/share_name /mnt/smb


ChrisP ------------------------------------------------------------------------------
If somebody helps you, please click the link in the botton left hand corner that says "Mark this post as a helpful/expert post".
 
Thanks a lot Fluid11;
OH, really it worked. And My unconditional and unlimited thanks goes to tek-tips.com family, and special thanks to FLUID11, you're so sportive. THUMBS UP.

BYE!! Like Linux, Want to be Linux Guru
 
The way we thank people on tek-tips is by voting for them for Tipmaster of the Week by granting them one of those purple stars. ------------------------------------------------------------------------------
If somebody helps you, please click the link in the botton left hand corner that says "Mark this post as a helpful/expert post".
 
I have a problem here. I have Linux and Windows NT workstation m/c's on the same LAN. I need to access some docs and xls files of NT m/c from Linux. Please let me know how to do this? I am trying with mount command. It always gives ERRnoaccess (Access Denied).
SMB Connection failed.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top