Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Specific user access to samba share. [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
justincataldo
Guru
Guru


Joined: 15 Jun 2005
Posts: 376
Location: Australia

PostPosted: Sat Jan 14, 2006 3:52 pm    Post subject: Specific user access to samba share. [SOLVED] Reply with quote

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
View user's profile Send private message
pbengtsson
n00b
n00b


Joined: 13 Jan 2006
Posts: 14
Location: Ronneby, Sweden

PostPosted: Sat Jan 14, 2006 7:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
justincataldo
Guru
Guru


Joined: 15 Jun 2005
Posts: 376
Location: Australia

PostPosted: Sun Jan 15, 2006 6:46 am    Post subject: Reply with quote

Got it! That was the missing piece of the puzzle!

Thanks very much! :smile:
_________________
Core i7 2.67GHz with 12GB DDR3 RAM.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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