LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-01-2004, 12:15 AM   #1
flynnhandley
LQ Newbie
 
Registered: Aug 2003
Distribution: mandrake
Posts: 28

Rep: Reputation: 15
trouble mounting samba shares


hi just a small issue,
i cant mount shares on my win2k3 box, when i go to the mdk control center, choose samba mount points then search for servers only the xp box shows,

any ideas ?
 
Old 07-01-2004, 03:08 AM   #2
ashish_pathak
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
Hi,

Can you please try with other windows versions? Are you using iptables services on linux box?
If possible copy paste ur smb.conf.

Thanks and Regards,
Ashish Pathak.
 
Old 07-01-2004, 03:35 AM   #3
stanlo
LQ Newbie
 
Registered: Apr 2003
Distribution: Suse & Redhat
Posts: 7

Rep: Reputation: 0
Hi Flynn.

Start up a command shell and run the following command.

smbclient -L //<computer name> -U <user logon id> -W <domain>

This is what I get. If your computer name is a domain controler it will list all the other PCs on the domain

[stanlo@TUX overnet]$ smbclient -L //sdns -Uslovisa -W corp
added interface ip=172.30.17.25 bcast=172.30.31.255 nmask=255.255.240.0
Got a positive name query response from 172.30.20.66 ( 172.30.20.66 )
Password:
Domain=[CORP] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
stan Disk
IPC$ IPC Remote IPC
D$ Disk Default share
E Disk
ADMIN$ Disk Remote Admin
C$ Disk Default share
Shared Disk

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

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


Hope this helps.

Stan
 
Old 07-01-2004, 03:58 AM   #4
flynnhandley
LQ Newbie
 
Registered: Aug 2003
Distribution: mandrake
Posts: 28

Original Poster
Rep: Reputation: 15
I decided to bite the bullet and RTFM, heres the answer for any one else with the same prob

[fibremux@localhost fibremux]$ su
Password:
[root@localhost fibremux]# mount -t smbfs -o username=<username>,password=<password> //<server>/<share> /<localdir>

Last edited by flynnhandley; 07-01-2004 at 04:10 AM.
 
Old 07-01-2004, 06:09 AM   #5
ashish_pathak
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
I decided to bite the bullet and RTFM, heres the answer for any one else with the same prob

[fibremux@localhost fibremux]$ su
Password:
[root@localhost fibremux]# mount -t smbfs -o username=<username>,password=<password> //<server>/<share> /<localdir>
I decided to bite the bullet and RTFM, heres the answer for any one else with the same prob

I guess for this u need to compile the kernel using smbfs option in filesystem.
Correct me if I m wrong.

[stanlo@TUX overnet]$ smbclient -L //sdns -Uslovisa -W corp

Create the same user in windows with same login credentials as Linux. (Same password)
Use same command which u used earlier. After machine name give sharename also.
Like //sdns/someshare.

Try this and let us know.

Thanks,
Ashish.
 
Old 07-01-2004, 11:19 AM   #6
BenjiF
LQ Newbie
 
Registered: Aug 2003
Location: Minneapolis, MN
Distribution: Slackware
Posts: 16

Rep: Reputation: 0
Quote:
Originally posted by flynnhandley
I decided to bite the bullet and RTFM, heres the answer for any one else with the same prob

[fibremux@localhost fibremux]$ su
Password:
[root@localhost fibremux]# mount -t smbfs -o username=<username>,password=<password> //<server>/<share> /<localdir>
Alternatively, you could add a line like this to /etc/fstab:

//<server>/<share> /<localdir> smbfs noauto,users,rw,username=<username>,password=<password>

(Your web browser might wrap the above, but it is all a single line.)

Then, you can mount and unmount the share as a normal user. I have my laptop setup this way, so that I can access the W2k file server at work. I also put a link to /mnt/docs in my home directory, so I can just type:

[benji@localhost]$ mount docs

and have access to the share. The only hazard is that the username and password can be seen by anyone who types "cat /etc/fstab". For this reason, I created a special account just for my Linux file access - with a password I don't use anywhere else.

|)
|)enji

Last edited by BenjiF; 07-01-2004 at 11:21 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble mounting /net shares on Suse (NLD) brow27 Linux - Networking 0 10-04-2005 04:00 PM
Mounting Samba Shares ad user hobz Linux - Software 1 06-17-2005 11:10 PM
mounting shares with samba darkleaf Linux - Software 1 02-13-2005 07:13 AM
Mounting Samba shares and Samba Share Login time112852 Linux - Software 1 09-14-2003 03:23 PM
Mounting Win98 shares using SAMBA desbyleo Linux - Software 3 02-17-2002 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration