LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-11-2009, 06:59 AM   #1
jbrutch
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Rep: Reputation: 0
Access windows shares from linux computer


Noob disclaimer: I only have a little bit of linux experience, so please, bare with me.

I recently got a laptop from a friend of mine and I installed ubuntu linux on it. So far I have pretty much everything that I want working on it, except for accessing windows shares.

I have windows vista 32 bit on my desktop computer with service pack1. I set up a share on there, and want to be able to access it with this laptop. If I go to places>network and then open up windows network. I get nothing. I've tried to mount the share using the smbmount command and it asks for a password and then just hangs up and does nothing.

How can I tell if this is an issue with the laptop, or if I'm doing something wrong trying to share the files on my vista machine (I'm not very familiar with vista yet)

I tried to search through the forum for help, but I didn't find anything that helped make this work. Any help is greatly appreciated. Thanks a ton
 
Old 04-11-2009, 07:19 AM   #2
Retrievil_Knievil
Member
 
Registered: Mar 2004
Location: Stavanger, Norway
Distribution: Gentoo, Slackware/SLAX, Knoppix, CentOS, IPCop & DSL
Posts: 138

Rep: Reputation: 21
Ok, how far have you got it working?

1. Can you access the share from another Windows Machine? Or from the Vista Machine?

2. Which mount options did you use? You can specify the user/password like this:

smbmount //vistapc/shared /mnt/share -o username=user,password=pass,rw

3. If you need to give a user access, you could add permissions like this:

smbmount //vistapc/shared /mnt/share -o username=user,password=pass,rw,uid=user

4. Firewalls and IPTables? Try disabling both before attempting to mount the share, and see if it works wothout them. Then activate and check the rules.

Last edited by Retrievil_Knievil; 04-11-2009 at 07:20 AM. Reason: Removed <code> tags, didn't work anyway :)
 
Old 04-11-2009, 07:21 AM   #3
cj_cheema
Member
 
Registered: Mar 2006
Location: INDIA
Distribution: RedHat, SuSE, Debian
Posts: 166

Rep: Reputation: 16
Smile Commands for checking shares

Hi
Well I'm not sure whether Vista support samba or not
but yes you can do one thing for checking it first of all create a user id in linux machine add it in samba with the help of smbpasswd
eg. smbpasswd -a <userid>


<userid> is any user id which you created it by useradd command
the smbpasswd command will prompt you to set <userid> password

share your vista local drive and from Linux box issue this command
smbclient -L //<windows_machine_ipaddress>/ -U <userid>

after issuing this above command smbclient will prompt you the password for this id put it. If vista supports smb protocol and your samba is working fine then windows share should display in your linux machine.

Regards
Charanjit Singh

Last edited by cj_cheema; 04-11-2009 at 07:25 AM.
 
Old 04-11-2009, 07:44 AM   #4
cj_cheema
Member
 
Registered: Mar 2006
Location: INDIA
Distribution: RedHat, SuSE, Debian
Posts: 166

Rep: Reputation: 16
Lightbulb Got some solution...

Hi I was searching through net for your mentioned problem I got a good link related to your query hope it will help you please click on below link.

http://social.msdn.microsoft.com/For...-4136492483b0/

Regards

Charanjit Singh
 
Old 04-12-2009, 07:21 AM   #5
jbrutch
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Retrievil_Knievil View Post
Ok, how far have you got it working?

1. Can you access the share from another Windows Machine? Or from the Vista Machine?

2. Which mount options did you use? You can specify the user/password like this:

smbmount //vistapc/shared /mnt/share -o username=user,password=pass,rw

3. If you need to give a user access, you could add permissions like this:

smbmount //vistapc/shared /mnt/share -o username=user,password=pass,rw,uid=user

4. Firewalls and IPTables? Try disabling both before attempting to mount the share, and see if it works wothout them. Then activate and check the rules.
1. I didn't have another windows machine at the time to try to access the shares on, but I do know that the problem wasn't with the laptop now. I set up a different windows xp computer with some shares, and the laptop found them immediately.

2. I did try exactly what you just shared with me with pretty much no luck.

3. didn't make any sort of a difference either.

4. I pretty much disabled anything that I thought might be blocking the way. nothing was protecting the vista machine and it still wouldn't work.

Honestly, I'm incredibly disappointed with Vista. This isn't the first problem that I've run in to with it. I tried to give it a chance, and I've been playing with it for too long now. I'm thinking that the machine that has vista on it is going to be downgraded to a windows xp machine again (the shares work great from windows xp) and I wont be going back to windows until they figure out something that plays nice.

Thank you much for the help, but I think I'm going to retreat back to what I know works well. Maybe eventually I'll get the guts to just install linux on the machine and cast windows out of my house for good.
 
Old 04-12-2009, 10:27 AM   #6
Retrievil_Knievil
Member
 
Registered: Mar 2004
Location: Stavanger, Norway
Distribution: Gentoo, Slackware/SLAX, Knoppix, CentOS, IPCop & DSL
Posts: 138

Rep: Reputation: 21
One other option, which is the way I do it myself, is to just set up Samba on one of your Linux boxes, and share stuff through that box in stead. I have had very few issues connecting to a Samba share from a windows machine, and I have always been sceptical to share files or run any kind of server from a MS box anyway. (Even the server editions have seemed like a joke to me since I discovered *nix).

Must say I am agreeing wholeheartedly with your opinion on Vista though. I bought the x64 Ultimate edition when it came out, and I have had it installed as a dual boot on my main machine since then, but six months ago I just deleted the partition. I had used it 10-15 times in total for the time it had been installed, and 90% of the time used in the OS was updating software.

If you DO decide to go 100% *nix though, check out VMWare Converter and VMWare Player. With them, you can turn a normal machine (i.e. your windows desktop) into a virtual machine, and store it on the same box. Then you boot Linux, and start the Windows OS as a VM. This gives you the best of both worlds, you can have a stable environment to do 99% of your tasks in, and then "boot" the virtual machine in a window (or fullscreen, to make the illusion complete ) when you need access to those windows apps that have not found their way to Linux yet. This works perfectly for me, I hardly notice that the Virtual XP is running slower than before, and just to be able to "reboot" Windows without shutting everything I work with down is a dream come through for me. (Also, since I already paid for the stuff, I thought I might as well put it to good use.. )
 
  


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
How to link windows xp and linux and access server from outside computer Kkfrink Linux - General 1 12-12-2005 05:53 AM
Cannot access Windows XP shares from Linux FKereki Linux - Software 14 08-03-2005 07:14 PM
Access windows shares from Linux crossconnects Linux - Networking 4 04-23-2004 04:22 PM
Can't access Windows shares in Linux (FC1) lnxconvrt Linux - Networking 2 02-23-2004 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:13 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
Open Source Consulting | Domain Registration