Networking Forums

Networking Forums > Computer Networking > Linux Networking > how to mount linux partition in OS X via samba

Reply
Thread Tools Display Modes

how to mount linux partition in OS X via samba

 
 
elduran
Guest
Posts: n/a

 
      01-27-2004, 03:44 AM
Hi, i'm trying to mount my linux hd in my OSX system without results,
i'm using redhat 9 i setup the samba server via GUI, and assign a
user, but when i try to mount it in OSX via samba , i can't see it in
the window, and i type smb//192.168.3.1/home/user it shows me the
window asking for workgroup, user, and password, i type them but i
can't login, send me error = 36
It shows up in winxp, but when i try to mount it send error too, about
not enough privileges, i put the ip of both machines in the line of
hosts allowed, in smb.conf, what am i doing wrong?, or how's the right
way?, thanks in advance
 
Reply With Quote
 
 
 
 
Bev A. Kupf
Guest
Posts: n/a

 
      01-27-2004, 04:12 AM
On 26 Jan 2004 20:44:14 -0800,
elduran ((E-Mail Removed)) wrote:
> Hi, i'm trying to mount my linux hd in my OSX system without results,
> i'm using redhat 9 i setup the samba server via GUI, and assign a
> user, but when i try to mount it in OSX via samba , i can't see it in
> the window, and i type smb//192.168.3.1/home/user it shows me the
> window asking for workgroup, user, and password, i type them but i
> can't login, send me error = 36


I don't know anything about WinXP, but here's how I mount my Samba
exported home directory.

smb://ip_address/user (i.e. you don't need /home/user)

I can also reach it as smb://MATABELELAND/user (see below)

I didn't configure my Samba server with any GUI tool, but here's the
relevant sections of my smb.conf on the Linux box.

[global]
workgroup = WINSLOW
netbios name = MATABELELAND
server string = Matabeleland Samba Server
interfaces = 192.168.0.0/24 127.0.0.1/24
encrypt passwords = Yes
log level = 1
log file = /var/log/samba/samba.%I
max log size = 50
name resolve order = lmhosts host bcast
time server = Yes
os level = 65
preferred master = Yes
domain master = Yes
guest account = ftp
hosts allow = 192.168.0. 127.0.0.1
print command = lpr -r -Plp %s
lpq command = lpq -Plp
lprm command = lprm -Plp %j

[homes]
comment = Home Directories
read only = No
guest ok = Yes

On my Mac, I edited /etc/smb.conf by hand, and restarted nmbd/smbd.
Here's what /etc/smbd.conf looks like:

[global]
workgroup = WINSLOW
netbios name = MANICALAND
server string = Manicaland Samba Server
guest account = unknown
encrypt passwords = yes
dos charset = 437
unix charset = UTF-8-MAC
auth methods = guest opendirectory
passdb backend = opendirectorysam guest
printer admin = @admin, @staff

[homes]
comment = User Home Directories
browseable = yes
read only = no
create mode = 0750

Hope this helps,
Beverly
--
Bev A. Kupf
"The lyfe so short, the craft so long to lerne" -- Chaucer
Tintin turns 75 <http://www.tintin.com>
 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      01-27-2004, 06:20 AM
elduran <(E-Mail Removed)> wrote:
> Hi, i'm trying to mount my linux hd in my OSX system without results,
> i'm using redhat 9 i setup the samba server via GUI, and assign a
> user, but when i try to mount it in OSX via samba , i can't see it in


Mh, OSX is AFAIK based on *BSD, wouldn't one want to use NFS for
file sharing, since that is the way *nix systems share FS.

The NFS HOWTO (www.tldp.org) should be helpful.

--
Michael Heiming

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of SPAM
 
Reply With Quote
 
Rod Smith
Guest
Posts: n/a

 
      01-27-2004, 03:36 PM
elduran wrote:

> Hi, i'm trying to mount my linux hd in my OSX system without results,
> i'm using redhat 9 i setup the samba server via GUI, and assign a
> user, but when i try to mount it in OSX via samba , i can't see it in
> the window, and i type smb//192.168.3.1/home/user it shows me the
> window asking for workgroup, user, and password, i type them but i
> can't login, send me error = 36
> It shows up in winxp, but when i try to mount it send error too, about
> not enough privileges, i put the ip of both machines in the line of
> hosts allowed, in smb.conf, what am i doing wrong?, or how's the right
> way?, thanks in advance


This sounds like an authentication problem to me, but I'm not positive of
that. You need to do one of two things on the Samba end:

1) Set it up to use unencrypted (cleartext) passwords by setting the
smb.conf parameter "encrypt passwords = No" and be sure you're
using a valid Linux account.
2) Set it up to use encrypted passwords by setting the smb.conf
parameter "encrypt passwords = Yes" and then add a user to the
Samba password database by typing "smbpasswd -a user", where "user"
is the username you want to add.

I'm not sure how Mac OS X responds to unencrypted passwords, but Windows
XP definitely doesn't like them; it requires encrypted passwords. Thus,
you'll probably want to do #2. (You can change a Registry entry so that
WinXP will accept unencrypted passwords, though. Samba ships with a
sample .REG file to do the job in a documentation directory.)

--
Rod Smith, (E-Mail Removed)
http://www.rodsbooks.com
Author of books on Linux, FreeBSD, and networking
 
Reply With Quote
 
johnny bobby bee
Guest
Posts: n/a

 
      01-27-2004, 05:38 PM
elduran typed:

> Hi, i'm trying to mount my linux hd in my OSX system without results,
> i'm using redhat 9 i setup the samba server via GUI, and assign a
> user, but when i try to mount it in OSX via samba , i can't see it in
> the window, and i type smb//192.168.3.1/home/user it shows me the


firstly, double check your typing. i think it should be 'smb://'
secondly, i don't think you need the /home/ part - instead try:
'smb://192.168.3.1/shared-directory'

> window asking for workgroup, user, and password, i type them but i
> can't login, send me error = 36


first check and see if you have the valid user in your smbpasswd file:
'cat /etc/samba/smbpasswd'
is your user there, with an encrypted password?

if not then (as root):
'smbpasswd -a username'
computer will respond with:
New SMB password:
Retype new SMB password:
Added user username.



--
- Linux: the choice of a GNU generation
- free; as in free speech and free beer

remove '.eh' to email

 
Reply With Quote
 
elduran
Guest
Posts: n/a

 
      01-28-2004, 03:39 AM
A lot of thanks guys, samba it's running, my only concern now is: when
i had the problems i saw the Linux machine icon in the pc and mac, now
that works, can't see the icon, any idea?
 
Reply With Quote
 
johnny bobby bee
Guest
Posts: n/a

 
      01-28-2004, 06:11 AM
elduran typed:

> A lot of thanks guys, samba it's running, my only concern now is: when
> i had the problems i saw the Linux machine icon in the pc and mac, now
> that works, can't see the icon, any idea?


not sure where you're talking about seeing these icons.
but on the pc try clicking on 'network places' -> then 'entire network' ->
then 'microsoft windows network' -> you should see your 'samba' share
there.

also - make sure that all 3 machines have the same workgroup name.


--
- Linux: the choice of a GNU generation
- free; as in free speech and free beer

remove '.eh' to email

 
Reply With Quote
 
elduran
Guest
Posts: n/a

 
      01-28-2004, 12:18 PM
all machines have same workgroup name, and under "microsoft windows
network" just can see the other machines, but no the linux, same
happens when try to see it in OSX "connect to server" window, and i
didn't change the workgroup name, thanks


"johnny bobby bee" <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>. ..
> elduran typed:
>
> > A lot of thanks guys, samba it's running, my only concern now is: when
> > i had the problems i saw the Linux machine icon in the pc and mac, now
> > that works, can't see the icon, any idea?

>
> not sure where you're talking about seeing these icons.
> but on the pc try clicking on 'network places' -> then 'entire network' ->
> then 'microsoft windows network' -> you should see your 'samba' share
> there.
>
> also - make sure that all 3 machines have the same workgroup name.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba mount fails to reconnect aweiland@gmail.com Linux Networking 0 08-30-2007 07:15 PM
Samba mount problem Vinicius 'Corvu' BR Linux Networking 0 07-31-2006 01:35 PM
Sharing a ntfs partition using Samba Daniel Camps Linux Networking 0 01-13-2005 05:48 PM
user specific samba mount bigb Linux Networking 1 11-13-2004 12:10 PM
SAMBA and MS ADS mount William B. Cattell Linux Networking 2 10-19-2004 06:58 PM



1 2 3 4 5 6 7 8 9 10 11