public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] help with a simple file share with samba
@ 2006-04-07 13:21 Allan Spagnol Comar
  2006-04-07 15:24 ` Michael Crute
  2006-04-14  9:12 ` Mariusz Zalewski
  0 siblings, 2 replies; 4+ messages in thread
From: Allan Spagnol Comar @ 2006-04-07 13:21 UTC (permalink / raw
  To: gentoo-user

Hi all in the list,

I was wondering if some one can help me with that, I am try to put to
work a simple file share with samba where I will share a folder to any
one, and one folder have to autenticate users at pam

I try it like that:
[global]

        workgroup = COMMODITY
        netbios name = thewho
        log file = /var/log/samba3/log.%m
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

[mp3]
        comment = Shared Musics
        path = /home/mp3
        security = share
        writeable = no
        browseable = yes
        guest ok = yes
        printable = no
        guest only = yes

[sandbox]
        comment = Sand Box to genrate releases
        path = /home/sandbox
        security = user
        user = allan longhin
        writeable = yes
        public = no
        printable = no
        create mask = 0765

what did I do wrong ? or how can I make this ?

thanks for attention, Allan
--
An application asked:
"Requeires Windows 9x, NT4 or better",
so I´ve installed Linux

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] help with a simple file share with samba
  2006-04-07 13:21 [gentoo-user] help with a simple file share with samba Allan Spagnol Comar
@ 2006-04-07 15:24 ` Michael Crute
  2006-04-07 16:54   ` Allan Spagnol Comar
  2006-04-14  9:12 ` Mariusz Zalewski
  1 sibling, 1 reply; 4+ messages in thread
From: Michael Crute @ 2006-04-07 15:24 UTC (permalink / raw
  To: gentoo-user

On 4/7/06, Allan Spagnol Comar <allan.comar@gmail.com> wrote:
> Hi all in the list,
>
> I was wondering if some one can help me with that, I am try to put to
> work a simple file share with samba where I will share a folder to any
> one, and one folder have to autenticate users at pam
>
> I try it like that:
> [global]
>
>        workgroup = COMMODITY
>        netbios name = thewho
>        log file = /var/log/samba3/log.%m
>        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>
> [mp3]
>        comment = Shared Musics
>        path = /home/mp3
>        security = share
>        writeable = no
>        browseable = yes
>        guest ok = yes
>        printable = no
>        guest only = yes
>
> [sandbox]
>        comment = Sand Box to genrate releases
>        path = /home/sandbox
>        security = user
>        user = allan longhin
>        writeable = yes
>        public = no
>        printable = no
>        create mask = 0765
>
> what did I do wrong ? or how can I make this ?
>

You may just be overthinking this. Here is a snip of my config file
(only relevant portions). You may want to add the user guest to your
smbpasswd file you can even use no password, then have your guest
users authenticate with that. Maybe there is a better way but that
works for me.

[global]
	workgroup = akron
	netbios name = snoopy
	server string = Gentoo File Server
	...
	map to guest = nobody
	security = user
	...

...

[public]
	comment = Public folder for all users.
	path = /home/pub
	public = yes
	only guest = yes
	writable = yes
	printable = no

[webroot]
	comment = Storage for public web files.
	path=/home/www
	public = no
	writable = yes
	valid users = cruteme

--
________________________________
Michael E. Crute
http://mike.crute.org

It is a mistake to think you can solve any major problems just with potatoes.
--Douglas Adams

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] help with a simple file share with samba
  2006-04-07 15:24 ` Michael Crute
@ 2006-04-07 16:54   ` Allan Spagnol Comar
  0 siblings, 0 replies; 4+ messages in thread
From: Allan Spagnol Comar @ 2006-04-07 16:54 UTC (permalink / raw
  To: gentoo-user

autentication on sandbox have worked, but, mp3 folder still block the
users .....
have a clue ?

On 4/7/06, Michael Crute <mcrute@gmail.com> wrote:
> On 4/7/06, Allan Spagnol Comar <allan.comar@gmail.com> wrote:
> > Hi all in the list,
> >
> > I was wondering if some one can help me with that, I am try to put to
> > work a simple file share with samba where I will share a folder to any
> > one, and one folder have to autenticate users at pam
> >
> > I try it like that:
> > [global]
> >
> >        workgroup = COMMODITY
> >        netbios name = thewho
> >        log file = /var/log/samba3/log.%m
> >        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
> >
> > [mp3]
> >        comment = Shared Musics
> >        path = /home/mp3
> >        security = share
> >        writeable = no
> >        browseable = yes
> >        guest ok = yes
> >        printable = no
> >        guest only = yes
> >
> > [sandbox]
> >        comment = Sand Box to genrate releases
> >        path = /home/sandbox
> >        security = user
> >        user = allan longhin
> >        writeable = yes
> >        public = no
> >        printable = no
> >        create mask = 0765
> >
> > what did I do wrong ? or how can I make this ?
> >
>
> You may just be overthinking this. Here is a snip of my config file
> (only relevant portions). You may want to add the user guest to your
> smbpasswd file you can even use no password, then have your guest
> users authenticate with that. Maybe there is a better way but that
> works for me.
>
> [global]
>         workgroup = akron
>         netbios name = snoopy
>         server string = Gentoo File Server
>         ...
>         map to guest = nobody
>         security = user
>         ...
>
> ...
>
> [public]
>         comment = Public folder for all users.
>         path = /home/pub
>         public = yes
>         only guest = yes
>         writable = yes
>         printable = no
>
> [webroot]
>         comment = Storage for public web files.
>         path=/home/www
>         public = no
>         writable = yes
>         valid users = cruteme
>
> --
> ________________________________
> Michael E. Crute
> http://mike.crute.org
>
> It is a mistake to think you can solve any major problems just with potatoes.
> --Douglas Adams
>
> --
> gentoo-user@gentoo.org mailing list
>
>


--
An application asked:
"Requeires Windows 9x, NT4 or better",
so I´ve installed Linux

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] help with a simple file share with samba
  2006-04-07 13:21 [gentoo-user] help with a simple file share with samba Allan Spagnol Comar
  2006-04-07 15:24 ` Michael Crute
@ 2006-04-14  9:12 ` Mariusz Zalewski
  1 sibling, 0 replies; 4+ messages in thread
From: Mariusz Zalewski @ 2006-04-14  9:12 UTC (permalink / raw
  To: gentoo-user

Allan Spagnol Comar wrote:

> I was wondering if some one can help me with that, I am try to put to
> work a simple file share with samba where I will share a folder to any
> one, and one folder have to autenticate users at pam
[cutted configuration]
> what did I do wrong ? or how can I make this ?

As far as I know, the 'security' parameter can be use only
in global section. Delete security options in [mp3] and [sandbox]
section. Add to [global] section two lines:

security = user
map to guest = Bad Password

>From Windows perspective - anybody can access to your [mp3] share. If
someone would like to access [sandbox], he will be prompted for login/pass.

More info about 'map to guest' you can find in 'man smb.conf'.

-- 
Mariusz
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-04-14  9:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-07 13:21 [gentoo-user] help with a simple file share with samba Allan Spagnol Comar
2006-04-07 15:24 ` Michael Crute
2006-04-07 16:54   ` Allan Spagnol Comar
2006-04-14  9:12 ` Mariusz Zalewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox