Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba shares in Nautilus
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Karny
Tux's lil' helper
Tux's lil' helper


Joined: 03 Sep 2003
Posts: 88
Location: Johannesburg, South Africa

PostPosted: Wed Sep 17, 2003 10:56 am    Post subject: Samba shares in Nautilus Reply with quote

I'm having difficulty browsing my corporate network (Windows) using Nautilus (2.2 - 2.4).

If I use the "Network neighborhood" icon in Nautilus I get the following error

Code:
"Sorry, couldn't display all the contents of "smb:///"."


I can however manually enter the computer name (smb://computer) but after being asked for the password I get the following error:

Code:
"You do not have the permissions necessary to view the contents of "smb://computer"."


I don't have the same problems when using xfsamba (as suggested elsewhere on these boards) so I assume that Nautilus does not use the settings in smb.conf.

My question then, is this, how can i configure the samba settings for Nautilus?

Thanks in advance :)
Karny
_________________
<!-- Insert funny comment here-->

Jabber: Karny@jabber.org
Back to top
View user's profile Send private message
kronon
Apprentice
Apprentice


Joined: 11 Aug 2003
Posts: 212
Location: NL

PostPosted: Wed Sep 17, 2003 12:34 pm    Post subject: Reply with quote

well i think the problem is that you atomaticaly log in as your current user name. You may have an conflict there and if so you should find a way to change your user name manualy.
Back to top
View user's profile Send private message
Karny
Tux's lil' helper
Tux's lil' helper


Joined: 03 Sep 2003
Posts: 88
Location: Johannesburg, South Africa

PostPosted: Wed Sep 17, 2003 12:52 pm    Post subject: Reply with quote

I don't think that that is a problem. I created my *nix user as a clone of my Windows login, so username and password are the same.

The thing is, it even prompts me for my username/password when accessing the shares... but it doesn't seem to like them.

Could it be the encyrpted password issue?
_________________
<!-- Insert funny comment here-->

Jabber: Karny@jabber.org
Back to top
View user's profile Send private message
semiSfear
Guru
Guru


Joined: 08 Jul 2003
Posts: 302
Location: Adelaide, SA

PostPosted: Wed Sep 17, 2003 1:30 pm    Post subject: Reply with quote

Use LinNeighborhood instead. It's much better. It's in portage. I think it's a lot better than Nautilus when it comes to network browsing. Thats my suggestion and oppinion. But if you still incist on using Nautilus as network browser then I can't help you.
_________________
DnB is my religion, Jungle is my church.
Back to top
View user's profile Send private message
Stu L Tissimus
Veteran
Veteran


Joined: 08 Jun 2003
Posts: 1339
Location: NJ, 5 minutes from NYC

PostPosted: Wed Sep 17, 2003 3:22 pm    Post subject: Reply with quote

Meh, I could never understand LinNeighborhood or xSMBrowser. But here's what you can do. I'm doing this from my hed, so it might not be correct... but try it:
Code:
smbmount \\\\computername\\ /mnt/computername -o username=username,password=password
Tell me if it works... Oh yes, one more thing. You have to have SMBFS enabled in your kernel. It's under Filesystems > Network Filesystems.

One more thing. if you want to access a specific drive (I'm guessing this is a WIndows machine you want to connect to) you can just do \\\\computername\\c to connect to the C drive, etc.
_________________
old outdated sig
Back to top
View user's profile Send private message
Karny
Tux's lil' helper
Tux's lil' helper


Joined: 03 Sep 2003
Posts: 88
Location: Johannesburg, South Africa

PostPosted: Wed Sep 17, 2003 3:31 pm    Post subject: Reply with quote

Thanks Stu L Tissimus.

I've already got the most common network resources in my fstab. My main issue is when i have to go to an obscure network locate to get X file. Mounting and Unmounting shares is painful.

Ultimately I'm just being lazy, but it would be nice to have a network neighborhood-like feature, and as nautilus "supports" it, its frustrating that I can't use it.

Thanks for the response tho.
_________________
<!-- Insert funny comment here-->

Jabber: Karny@jabber.org
Back to top
View user's profile Send private message
Stu L Tissimus
Veteran
Veteran


Joined: 08 Jun 2003
Posts: 1339
Location: NJ, 5 minutes from NYC

PostPosted: Wed Sep 17, 2003 3:33 pm    Post subject: Reply with quote

(Meh, I still have to figure out how to do most of this... I only just started using Samba like a day ago)

But also, wouldn't this do a bit better in the Networking/Security section?
_________________
old outdated sig
Back to top
View user's profile Send private message
474
l33t
l33t


Joined: 19 Apr 2002
Posts: 714

PostPosted: Wed Sep 17, 2003 3:36 pm    Post subject: Reply with quote

If attempting to use SMB shares from Nautilus, then be certain that you have installed gnome-vfs-extras. This provides a handy "Network Neighborhood" icon in the Network Servers area (bottom of Gnome menu). You should be prompted for your credentials when you attempt to connect to a share, at which point they are cached for a while. The configuration of smb.conf shouldn't really be important.

When you are asked for the password, are you also asked for your username? If not, then it would be reasonable to assume that your current username is being used when attempting to connect to the share. If there is not a matching username/password pair in the SAM of the Windows machine you are connecting to (assuming it is a Windows machine) then you will certainly be denied access.

Stu, for direct mounting this is probably more like it:
Code:
mount -t smbfs //computername/sharename /mnt/point -o username=username,password=password

Things can obviously be more tricky if you are part of an NT domain or such, but even in these cases you should always be able to authenticate against a Windows box's local user account SAM provided you use the administrator's credentials. My point being that smb.
conf configuration shouldn't really be necessary for casual SMB usage, and that full explanation of the way it works is a bit out of scope for this post ;-)
Back to top
View user's profile Send private message
Stu L Tissimus
Veteran
Veteran


Joined: 08 Jun 2003
Posts: 1339
Location: NJ, 5 minutes from NYC

PostPosted: Wed Sep 17, 2003 3:39 pm    Post subject: Reply with quote

Wouldn't //computer/sharename be \\computer\sharename?

Just wondering.
_________________
old outdated sig
Back to top
View user's profile Send private message
Karny
Tux's lil' helper
Tux's lil' helper


Joined: 03 Sep 2003
Posts: 88
Location: Johannesburg, South Africa

PostPosted: Wed Sep 17, 2003 3:45 pm    Post subject: Reply with quote

kerframil, thanks for the response... it was a good one!

The strange thing is, if I use xfsamba (or LinNeighborhood for that matter) I can connect to and authenticate myself on Windows machines. I just can't do it through Nautilus.

My main question was whether Nautilus used smb.conf and if not, what does it use? I'd really like to fiddle with some settings, but Nautilus itself doesn't really have any and I couldn't find anything in gconf-editor.

Not sure if this means anything, but I'm the sole Linux box in our organisation and all the servers and clients are a mixture of almost every flavour of windows and MacOS.
_________________
<!-- Insert funny comment here-->

Jabber: Karny@jabber.org
Back to top
View user's profile Send private message
474
l33t
l33t


Joined: 19 Apr 2002
Posts: 714

PostPosted: Wed Sep 17, 2003 4:00 pm    Post subject: Reply with quote

Stu: the short answer is no it wouldn't ;-)

Karny: as far as I know, virtually anything that makes use of SMB does not re-invent the wheel. It typically uses smbclient, smbfs support and so forth.

If you wish to change the way your machine participates then you need to alter smb.conf. Make sure that you have installed samba (I realise that may sound obvious, but kernel support is not enough). If you are operating as a domain client or wish for you box to authenticate logons itself and/or provide resources then you may wish to ensure that you have started the samba service and that you keep it running.

There are vast quantities of resources concerning Samba available. The Using Samba book is provided with Samba itself in HTML format. The many text docs are also of excellent quality. Then there is the SWAT web administration tool, webmin and countless other resources on the Net. The smb.conf file should be well commented too, and the smb.conf man page is excellent. If you need specific help with some aspect of SMB configuration then I would propose another post in the Networking section of these forums.

One more thing, it may be possible to specify the username/password in the URI path. Example:
Code:
smb://administrator@computer/share
or
Code:
smb://administrator:password@computer/share

but that is completely unverified! I know that syntax works in CUPS, but that's a different ball game.
Back to top
View user's profile Send private message
Stu L Tissimus
Veteran
Veteran


Joined: 08 Jun 2003
Posts: 1339
Location: NJ, 5 minutes from NYC

PostPosted: Wed Sep 17, 2003 4:07 pm    Post subject: Reply with quote

Well, while we're on the subject, may I ask how to use xSMBrowser or LinNeighborhood? I can never get them to work.

Also, I've been looking around but I can never find a good guide to smb.conf...
_________________
old outdated sig
Back to top
View user's profile Send private message
Karny
Tux's lil' helper
Tux's lil' helper


Joined: 03 Sep 2003
Posts: 88
Location: Johannesburg, South Africa

PostPosted: Thu Sep 18, 2003 7:23 am    Post subject: Reply with quote

kerframil, thanks a million! That what I needed to know :)

Stu, maybe try using xfsamba, It was suggested in another post on this forums and its very nice. It also uses the settings in the smb.conf file though, so you would need to have a correctly set up smb.conf in order to get the most out of it.

xfsamba is in portage :)
_________________
<!-- Insert funny comment here-->

Jabber: Karny@jabber.org
Back to top
View user's profile Send private message
Hull
n00b
n00b


Joined: 17 Jan 2003
Posts: 17

PostPosted: Mon Jan 19, 2004 5:29 pm    Post subject: Reply with quote

I noticed the same problem with kernel 2.6.0 with supermount enabled.
When I uncommented supermount options in fstab - everything work
perfect. In my opinion its bug with supermount or kernel.
Back to top
View user's profile Send private message
green sun
Guru
Guru


Joined: 04 Nov 2002
Posts: 325
Location: Wista, MA

PostPosted: Mon Jan 19, 2004 9:30 pm    Post subject: Reply with quote

Stu L Tissimus wrote:
Well, while we're on the subject, may I ask how to use xSMBrowser or LinNeighborhood? I can never get them to work.

Also, I've been looking around but I can never find a good guide to smb.conf...


The O'Reilly book "Using Samba, 2nd Edition" is available free on the web:

http://www.oreilly.com/catalog/samba2/book/toc.html

It has an excellent section on smb.conf

I personally have always had LinNeighborhood work 'out of the box', tho I wish it would get a GTK2 facelift. When trying to connect to Windows shares, remember what context you are connecting in.. for example, if trying to connect to Winbox X, using a user in domain Domain, you have to log in like:

user: DOMAIN\user
pass: <whatever>

Windows has to be able to find your user account. Also, if you are using an account on the Winbox, make sure the user has the 'User can connect to this machine over the network' right. (but dont ask me where you set this... )
Back to top
View user's profile Send private message
psyeye
Guru
Guru


Joined: 06 Dec 2002
Posts: 409
Location: Germany

PostPosted: Tue Jan 27, 2004 7:18 pm    Post subject: Re: Samba shares in Nautilus Reply with quote

Karny wrote:
I'm having difficulty browsing my corporate network (Windows) using Nautilus (2.2 - 2.4).

If I use the "Network neighborhood" icon in Nautilus I get the following error

Code:
"Sorry, couldn't display all the contents of "smb:///"."


I had the same until I re-emerged gnome-vfs-extras-0.99.10 and replaced the config file (etc-update).
It's kinda strange now: I have both installed (0.99.10 & 0.99.11), but smb:/// only works if I merge 0.99.10 after 0.99.11 and overwrite the config file. It also works by removing 0.99.11 and only having 0.99.10 installed (but only if it wasn't present before).
For me, this all seems like some runaway slot or whatnot - and I'm wondering if I shall report a bug on this...

greets,
psyeye
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum