| View previous topic :: View next topic |
| Author |
Message |
justincataldo Guru


Joined: 15 Jun 2005 Posts: 376 Location: Australia
|
Posted: Sat Jan 14, 2006 3:52 pm Post subject: Specific user access to samba share. [SOLVED] |
|
|
I'm trying to access a samba share on my Gentoo server from my mac (which is running OSX). I want to set up a samba share which will ask for a username and password combination to gain access to it. Here's the share defined in my /etc/samba/smb.conf file at the moment:
| Code: |
[mirror]
writeable = yes
path = /mirror
only user = yes
force create mode = 0775
comment = mirror
valid users = justin,@users
create mode = 0775
directory mode = 0775
|
It is asking for a domain, username and password when I try to connect to the share from the mac. When I type it in it says that the username or password is not correct.
Yes, the user justin exists on the Gentoo box. Have I got the /etc/samba/smb.conf file set up correctly? When I try to connect to it do I need to have the username as 'justin@servername' or just 'justin'?
What am I doing wrong? _________________ Core i7 2.67GHz with 12GB DDR3 RAM.
Last edited by justincataldo on Fri Mar 30, 2007 5:52 am; edited 1 time in total |
|
| Back to top |
|
 |
pbengtsson n00b

Joined: 13 Jan 2006 Posts: 14 Location: Ronneby, Sweden
|
Posted: Sat Jan 14, 2006 7:52 pm Post subject: |
|
|
Have you added the users to samba, with smbpasswd?
you need to :
smbpasswd -a justin
and any other user that is to connect with samba (afaik)
You can run testparm to checked your config?
Just run testparm and look for any errors
Hopes this help, I am stuck myself with some samba config issues.....
/PO _________________ Running Gentoo as file server since 2005. |
|
| Back to top |
|
 |
justincataldo Guru


Joined: 15 Jun 2005 Posts: 376 Location: Australia
|
Posted: Sun Jan 15, 2006 6:46 am Post subject: |
|
|
Got it! That was the missing piece of the puzzle!
Thanks very much!  _________________ Core i7 2.67GHz with 12GB DDR3 RAM. |
|
| Back to top |
|
 |
|