#311594 - 27/06/2008 14:42
First steps in Ubuntu and a problem...
|
carpal tunnel
Registered: 20/05/2001
Posts: 2616
Loc: Bruges, Belgium
|
Hi all,
Today I've decided to get started with Ubuntu. I've installed it next to my current WinXP setup and partitioned the drive manually. This all went rather smooth.
Now I'm fiddling around a bit in this OS. I've found the network icon and to my surprise my Windows laptop connected to the same LAN was found immediately. (I guess Samba is installed by default in Ubuntu?) The correct workgroup was also found. I can see the shared maps, but when I click on one of the maps, a window pops up asking me for my login name, workgroup (which is wrong 'cause it uses the standard workgoup name and not the current one - but that's easily corrected) and password. No matter what I fill in here, I don't get access to the map. Not even if I fill in 'Administrator' and my admin password. I always get the error message 'The map contents could not be displayed. - You don't have the necessary rights to view this map'
Anybody got any idea what I'm doing wrong here?
_________________________
Riocar 80gig S/N : 010101580 red Riocar 80gig (010102106) - backup
|
Top
|
|
|
|
#311595 - 27/06/2008 14:58
Re: First steps in Ubuntu and a problem...
[Re: BartDG]
|
carpal tunnel
Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
|
Maybe try the Windows laptop's name as the workgroup/domain?
_________________________
Bitt Faulk
|
Top
|
|
|
|
#311597 - 27/06/2008 15:31
Re: First steps in Ubuntu and a problem...
[Re: wfaulk]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
Maybe try the Windows laptop's name as the workgroup/domain? Yup, that's very likely the thing. In windows, "Domain" means "...the security database that hosts your user name and password." In the case of machines joined to a corporate domain, the domain, user name and password are the corporate ones, i.e., MYCOMPANY\TFabris. In the case of machines that have not ever joined to a corporate domain, the domain, user name and password are the local computer ones, i.e., COMPUTERNAME\TFabris. The workgroup is not related to domains or security in any way, so the workgroup should not be included in the user name or domain fields at all. Workgroups only sort things into groups for browsing a group of computers.
|
Top
|
|
|
|
#311602 - 27/06/2008 18:43
Re: First steps in Ubuntu and a problem...
[Re: tfabris]
|
carpal tunnel
Registered: 20/05/2001
Posts: 2616
Loc: Bruges, Belgium
|
Tried that, but it doesn't work. I keep getting the error. The stupid part is that, after trying and entering the data once (and receiving the error), I can't try again. Then I receive the error immediately, not giving me the chance to simply try a different option. I need to log out and back again again before I can try again. I also tried to install Samba via Synaptic (I guess it wasn't installed after all?), and since that the correct workgroup is shown, but it doesn't make any difference in connecting to the windows share.
_________________________
Riocar 80gig S/N : 010101580 red Riocar 80gig (010102106) - backup
|
Top
|
|
|
|
#311605 - 27/06/2008 19:51
Re: First steps in Ubuntu and a problem...
[Re: BartDG]
|
carpal tunnel
Registered: 20/05/2001
Posts: 2616
Loc: Bruges, Belgium
|
OK, this may be one cause for the problem. When I had installed Windows Home Server and the WHS connector utility, I had noticed that my shares menu under XP had changed. All of a sudden, there was a menu added to it in which I could set permissions on a user level. (usually I chose 'everyone'). Since a couple of weeks I have uninstalled the WHS connector software and installed XP SP3. I see I now have the 'old' Windows XP shares menu again, without the possibility of selecting permissions on a user level. (I know it used to be a separate tab)
Is this permissions tab something that needs to be activated separately in XP? If so, how?
My guess is this is the reason why Ubuntu refuses to connect to the share. It hasn't got the rights to, and for me, without that permissions tab, it's impossible to set them.
Anybody know how I can get that permissions tab back? I'm using XP Pro SP3.
_________________________
Riocar 80gig S/N : 010101580 red Riocar 80gig (010102106) - backup
|
Top
|
|
|
|
#311607 - 27/06/2008 20:03
Re: First steps in Ubuntu and a problem...
[Re: BartDG]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
I believe that setting is the difference between normal file sharing and something called " Simple File Sharing". Also, you might need to fiddle with permissions for the individual files and folders that you're sharing. In any case, first, check from another windows computer to make sure you can access the shares before worrying about Ubuntu. If another Windows box can't reach it, then neither can Ubuntu.
|
Top
|
|
|
|
#311608 - 27/06/2008 20:09
Re: First steps in Ubuntu and a problem...
[Re: BartDG]
|
carpal tunnel
Registered: 17/01/2002
Posts: 3996
Loc: Manchester UK
|
I don't think you need Samba just to connect to some SMB shares. I rarely use the GUI to connect. Try manually mounting it instead. For example, say I'm logged in as andy.marriott on a domain called WINDOWSDOMAIN and I usually connect to a share in windows like //somecomputer/some_share from Run in the start menu. I would connect to it on a random linux box using the following. sudo mount -t smbfs -o username=WINDOWSDOMAIN\andy.marriott,password=XXXXX //somecomputer/some_share /mnt/some_share If you're not using domains then substitute the WINDOWSDOMAIN bit with whatever your workgroup is. If you know the name of the one of the local users on the machine providing the share then you could use that info instead, just replace the WINDOWSDOMAIN bit with the name of the machine instead. I do quite a bit of connecting to Windows shares using domain authentication from linux and osx boxes and it does work pretty well.
Edited by andym (27/06/2008 20:13)
_________________________
Cheers,
Andy M
|
Top
|
|
|
|
#311609 - 27/06/2008 20:13
Re: First steps in Ubuntu and a problem...
[Re: andym]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
If you're not using domains then substitute the WINDOWSDOMAIN bit with whatever your workgroup is. Picking a nit: In the example you cited, with the WINDOWSDOMAIN being part of the username in that format (WINDOWSDOMAIN\Username) then that's never the name of the workgroup, it's always either the name of the domain or the name of the local computer you're logging into.
|
Top
|
|
|
|
#311611 - 27/06/2008 20:21
Re: First steps in Ubuntu and a problem...
[Re: tfabris]
|
carpal tunnel
Registered: 17/01/2002
Posts: 3996
Loc: Manchester UK
|
I stand corrected, said the man in the orthopaedic shoes.
At work it's either local machine or domain, so I don't have a tonne of experience at workgroup level.
_________________________
Cheers,
Andy M
|
Top
|
|
|
|
#311612 - 27/06/2008 21:19
Re: First steps in Ubuntu and a problem...
[Re: andym]
|
carpal tunnel
Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
|
username=WINDOWSDOMAIN\andy.marriott,password=XXXXX Surely you need two backslashes there. (Not Windows-double-backslash-ness; one to escape the other from the shell.)
_________________________
Bitt Faulk
|
Top
|
|
|
|
#311613 - 27/06/2008 21:20
Re: First steps in Ubuntu and a problem...
[Re: andym]
|
pooh-bah
Registered: 12/01/2002
Posts: 2009
Loc: Brisbane, Australia
|
"smbfs" is no longer called that. It's now called cifs. I'm not sure where Ubuntu is in that but if it says smbfs is unknown use cifs. Fedora 8 is like this for example.
Also you don't need samba as mentioned to connect to shares. You probably do need "samba-client" though.
_________________________
Christian #40104192 120Gb (no longer in my E36 M3, won't fit the E46 M3)
|
Top
|
|
|
|
#311614 - 27/06/2008 21:55
Re: First steps in Ubuntu and a problem...
[Re: wfaulk]
|
carpal tunnel
Registered: 17/01/2002
Posts: 3996
Loc: Manchester UK
|
username=WINDOWSDOMAIN\andy.marriott,password=XXXXX Surely you need two backslashes there. (Not Windows-double-backslash-ness; one to escape the other from the shell.) Sorry, typo.
_________________________
Cheers,
Andy M
|
Top
|
|
|
|
#311615 - 27/06/2008 21:57
Re: First steps in Ubuntu and a problem...
[Re: Shonky]
|
carpal tunnel
Registered: 17/01/2002
Posts: 3996
Loc: Manchester UK
|
"smbfs" is no longer called that. It's now called cifs. I'm not sure where Ubuntu is in that but if it says smbfs is unknown use cifs. Fedora 8 is like this for example.
Also you don't need samba as mentioned to connect to shares. You probably do need "samba-client" though. The machine I have to hand is running Dapper on a 2.6.15 kernel and smbfs is accepted without any quibbles. EDIT: It appears that 8.04 JEOS on 2.6.22 accepts that as well.
_________________________
Cheers,
Andy M
|
Top
|
|
|
|
#311622 - 28/06/2008 04:46
Re: First steps in Ubuntu and a problem...
[Re: tfabris]
|
carpal tunnel
Registered: 20/05/2001
Posts: 2616
Loc: Bruges, Belgium
|
I believe that setting is the difference between normal file sharing and something called " Simple File Sharing". Yes, after reading through that article, I'm sure that is what I'm experiencing. WHS will have disabled the simple file sharing option after install. Once I removed the WHS connector software again, everything went back to what it was. I can connect to the share via other windows PC's, that's not a problem. I also read that, if the PC is part of a workgroup, simple file sharing is enabled by default. It's disabled if it logs onto a domain. I also found this quote very interesting: "When Simple File Sharing is turned on, if you configure specific user ACEs, remote users are not affected when Simple File Sharing is turned on because all remote users authenticate as Guest when Simple File Sharing is turned on".Doesn't this mean this should 'just work'? (it does with another Windows PC anyway - I'm guessing Linux is different en needs regular permissions, not a guest account?) I'll also try Andy's suggestion when I get home in a few hours. I hope this'll fix it. Not sure why this doesn't work. This is still the reason why most people are afraid to get started with Linux I guess: when relatively simple things like this turn into problems. I've made up my mind now: I really want to understand more about Linux and will push through this time, but I can understand other just giving up. I've worked in DOS for years, so I understand command lines. But I have to admit: the Linux prompt is a whole different ballgame, looking quite daunting with all those switches and options. But I guess it's just different than what I'm used to and it'll grow on me.
_________________________
Riocar 80gig S/N : 010101580 red Riocar 80gig (010102106) - backup
|
Top
|
|
|
|
#311623 - 28/06/2008 04:51
Re: First steps in Ubuntu and a problem...
[Re: andym]
|
carpal tunnel
Registered: 20/05/2001
Posts: 2616
Loc: Bruges, Belgium
|
sudo mount -t smbfs -o username=WINDOWSDOMAIN\andy.marriott,password=XXXXX //somecomputer/some_share /mnt/some_share Thanks! I'll try it this afternoon when I get home!
_________________________
Riocar 80gig S/N : 010101580 red Riocar 80gig (010102106) - backup
|
Top
|
|
|
|
#311626 - 28/06/2008 05:59
Re: First steps in Ubuntu and a problem...
[Re: BartDG]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14496
Loc: Canada
|
(..lots of discussion of a MS-Windows issue..) This is still the reason why most people are afraid to get started with Linux I guess: when relatively simple things like this turn into problems. I find that a particularly strange point of view. -ml
|
Top
|
|
|
|
#311627 - 28/06/2008 07:56
Re: First steps in Ubuntu and a problem...
[Re: mlord]
|
carpal tunnel
Registered: 20/05/2001
Posts: 2616
Loc: Bruges, Belgium
|
I find that a particularly strange point of view. -ml Heh.. I can imagine, this coming from someone who wrote some nice chapters in the book they call Linux.
_________________________
Riocar 80gig S/N : 010101580 red Riocar 80gig (010102106) - backup
|
Top
|
|
|
|
#311629 - 28/06/2008 09:12
Re: First steps in Ubuntu and a problem...
[Re: BartDG]
|
pooh-bah
Registered: 09/08/2000
Posts: 2091
Loc: Edinburgh, Scotland
|
Just had to teach a two day course on Unix. Most of the class have only ever worked with windows (if any experience at all)
The frustration in trying to help them understand logaical ways to do things, and not just trusting a crazed GUI to do the right thing. Gahhhh!
_________________________
Rory MkIIa, blue lit buttons, memory upgrade, 1Tb in Subaru Forester STi MkII, 240Gb in Mark Lord dock MkII, 80Gb SSD in dock
|
Top
|
|
|
|
#311637 - 28/06/2008 16:43
Re: First steps in Ubuntu and a problem...
[Re: BartDG]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
remote users are not affected when Simple File Sharing is turned on because all remote users authenticate as Guest when Simple File Sharing is turned on Oh yeah. By default, the account "GUEST" is disabled, so anyone trying to authenticate as guest doesn't get in...
|
Top
|
|
|
|
#311639 - 28/06/2008 18:47
Re: First steps in Ubuntu and a problem...
[Re: tfabris]
|
carpal tunnel
Registered: 18/01/2000
Posts: 5683
Loc: London, UK
|
remote users are not affected when Simple File Sharing is turned on because all remote users authenticate as Guest when Simple File Sharing is turned on Oh yeah. By default, the account "GUEST" is disabled, so anyone trying to authenticate as guest doesn't get in... Simple File Sharing is more correctly known as Broken File Sharing...
_________________________
-- roger
|
Top
|
|
|
|
|
|