I have set up samba and configured resources /pub for "pcguest" account and it works perfect (read/write access for for everyone. No authentication is needed) Now, I want to set new resource called /pub2 where access is limited only for user "userx". What I did: I created userx in /etc/passwd and his home dir in /pub2 I created userx using "smbpasswd" Both users has this same passwd. In /etc/samba/smb.conf added: [pub2] path = /pub2 volume = userx comment = Programy userx public = yes writable = yes share modes = yes read only = no create mode = 0775 directory mode = 0775 oplocks = True level2 oplocks = True After SAMBA restart: sitting on WindowsXP box I am able to see /pub and /pub2 resources. I can even browse /pub2 but I am unable to create any file or dir. This is expected behavior... but why the heck I cant have way to log on to user "userx" account ? How it works ? What am I doin wrong ? Used: Slackware 12, Samba 3.0.25b (from package). Thanks for any help, Czezz
On Feb 3, 2008 11:38 AM, czezz <czezz@o2.pl> wrote:> I have set up samba and configured resources /pub for "pcguest" account and it works perfect (read/write access for for everyone. No authentication is needed) > > Now, I want to set new resource called /pub2 where access is limited only for user "userx". > > What I did: > I created userx in /etc/passwd and his home dir in /pub2 > I created userx using "smbpasswd" > Both users has this same passwd. > > In /etc/samba/smb.conf added: > > [pub2] > path = /pub2 > volume = userx > comment = Programy userx > public = yes > writable = yes > share modes = yes > read only = no > create mode = 0775 > directory mode = 0775 > oplocks = True > level2 oplocks = True > > After SAMBA restart: > sitting on WindowsXP box I am able to see /pub and /pub2 resources. I can even browse /pub2 but I am unable to create any file or dir. > This is expected behavior... but why the heck I cant have way to log on to user "userx" account ? >Did you check the unix permissions of the folder you are sharing? Does userx have rw permissions? John
---- Wiadomo?? Oryginalna ---- Od: "John Drescher" <drescherjm@gmail.com> Do: czezz <czezz@o2.pl> Kopia do: samba@lists.samba.org Data: 3 lutego 2008 19:59 Temat: Re: [Samba] SAMBA authentication ?> On Feb 3, 2008 11:38 AM, czezz <czezz@o2.pl> wrote: > > I have set up samba and configured resources /pub for "pcguest" account and it works perfect (read/write access for for everyone. No authentication is needed) > > > > Now, I want to set new resource called /pub2 where access is limited only for user "userx". > > > > What I did: > > I created userx in /etc/passwd and his home dir in /pub2 > > I created userx using "smbpasswd" > > Both users has this same passwd. > > > > In /etc/samba/smb.conf added: > > > > [pub2] > > path = /pub2 > > volume = userx > > comment = Programy userx > > public = yes > > writable = yes > > share modes = yes > > read only = no > > create mode = 0775 > > directory mode = 0775 > > oplocks = True > > level2 oplocks = True > > > > After SAMBA restart: > > sitting on WindowsXP box I am able to see /pub and /pub2 resources. I can even browse /pub2 but I am unable to create any file or dir. > > This is expected behavior... but why the heck I cant have way to log on to user "userx" account ? > > > Did you check the unix permissions of the folder you are sharing? Does > userx have rw permissions? > > JohnAmmm... John, whats the point of unix permissions? I can browse content of /pub2 from any workstation on LAN. The problem is that when I click on PUB2 resources I should get window to put login and password - why I dont have it ? here is "ls" root@vslack:~# ls -l /home/ drwxr-xr-x 3 pcguest pcguest 4096 2008-01-30 21:30 pub/ drwxr-xr-x 4 userx users 4096 2008-02-02 18:33 pub2/ What is important !!! Windows Workstations from witch I try to login hasnt account "userx". The Windows enviroment is only workgroup. And each station has its own login. Each time someone want to access /pub2 then window asking for login and passwd should apear.
> Ammm... John, whats the point of unix permissions?If the unix user has no access to the share on the unix filesystem. Samba will not have any access either.> I can browse content of /pub2 from any workstation on LAN. > The problem is that when I click on PUB2 resources I should get window to put login and password - why I dont have it ? > > here is "ls" > root@vslack:~# ls -l /home/ > drwxr-xr-x 3 pcguest pcguest 4096 2008-01-30 21:30 pub/ > drwxr-xr-x 4 userx users 4096 2008-02-02 18:33 pub2/ >This looks fine.> What is important !!! > Windows Workstations from witch I try to login hasnt account "userx". > The Windows enviroment is only workgroup. And each station has its own login. > Each time someone want to access /pub2 then window asking for login and passwd should apear. >Can you post your smb.conf? John
czezz wrote:> ---- Wiadomo?? Oryginalna ---- > Od: "John Drescher" <drescherjm@gmail.com> > Do: czezz <czezz@o2.pl> > Kopia do: samba@lists.samba.org > Data: 3 lutego 2008 19:59 > Temat: Re: [Samba] SAMBA authentication ? > > >> On Feb 3, 2008 11:38 AM, czezz <czezz@o2.pl> wrote: >> >>> I have set up samba and configured resources /pub for "pcguest" account and it works perfect (read/write access for for everyone. No authentication is needed) >>> >>> Now, I want to set new resource called /pub2 where access is limited only for user "userx". >>> >>> What I did: >>> I created userx in /etc/passwd and his home dir in /pub2 >>> I created userx using "smbpasswd" >>> Both users has this same passwd. >>> >>> In /etc/samba/smb.conf added: >>> >>> [pub2] >>> path = /pub2 >>> volume = userx >>> comment = Programy userx >>> public = yes >>> writable = yes >>> share modes = yes >>> read only = no >>> create mode = 0775 >>> directory mode = 0775 >>> oplocks = True >>> level2 oplocks = True >>> >>> After SAMBA restart: >>> sitting on WindowsXP box I am able to see /pub and /pub2 resources. I can even browse /pub2 but I am unable to create any file or dir. >>> This is expected behavior... but why the heck I cant have way to log on to user "userx" account ? >>> >>> >> Did you check the unix permissions of the folder you are sharing? Does >> userx have rw permissions? >> >> John >> > > > > Ammm... John, whats the point of unix permissions? I can browse content of /pub2 from any workstation on LAN. > The problem is that when I click on PUB2 resources I should get window to put login and password - why I dont have it ? >Are you using security=share or user? Please post your smb.conf without comments. --Sadique> here is "ls" > root@vslack:~# ls -l /home/ > drwxr-xr-x 3 pcguest pcguest 4096 2008-01-30 21:30 pub/ > drwxr-xr-x 4 userx users 4096 2008-02-02 18:33 pub2/ > > What is important !!! > Windows Workstations from witch I try to login hasnt account "userx". > The Windows enviroment is only workgroup. And each station has its own login. > Each time someone want to access /pub2 then window asking for login and passwd should apear. > > >
smb.conf attached. security is set to SHARE. Otherwise I will not be able to have /pub which is accessable for everyone. Thanks, Czezz ---- Wiadomo?? Oryginalna ---- Od: Sadique Puthen <sputhenp@redhat.com> Do: czezz <czezz@o2.pl> Kopia do: John Drescher <drescherjm@gmail.com>, samba@lists.samba.org Data: 4 lutego 2008 8:37 Temat: Re: [Samba] SAMBA authentication ?> czezz wrote: > > ---- Wiadomo?? Oryginalna ---- > > Od: "John Drescher" <drescherjm@gmail.com> > > Do: czezz <czezz@o2.pl> > > Kopia do: samba@lists.samba.org > > Data: 3 lutego 2008 19:59 > > Temat: Re: [Samba] SAMBA authentication ? > > > > > >> On Feb 3, 2008 11:38 AM, czezz <czezz@o2.pl> wrote: > >> > >>> I have set up samba and configured resources /pub for "pcguest" account and it works perfect (read/write access for for everyone. No authentication is needed) > >>> > >>> Now, I want to set new resource called /pub2 where access is limited only for user "userx". > >>> > >>> What I did: > >>> I created userx in /etc/passwd and his home dir in /pub2 > >>> I created userx using "smbpasswd" > >>> Both users has this same passwd. > >>> > >>> In /etc/samba/smb.conf added: > >>> > >>> [pub2] > >>> path = /pub2 > >>> volume = userx > >>> comment = Programy userx > >>> public = yes > >>> writable = yes > >>> share modes = yes > >>> read only = no > >>> create mode = 0775 > >>> directory mode = 0775 > >>> oplocks = True > >>> level2 oplocks = True > >>> > >>> After SAMBA restart: > >>> sitting on WindowsXP box I am able to see /pub and /pub2 resources. I can even browse /pub2 but I am unable to create any file or dir. > >>> This is expected behavior... but why the heck I cant have way to log on to user "userx" account ? > >>> > >>> > >> Did you check the unix permissions of the folder you are sharing? Does > >> userx have rw permissions? > >> > >> John > >> > > > > > > > > Ammm... John, whats the point of unix permissions? I can browse content of /pub2 from any workstation on LAN. > > The problem is that when I click on PUB2 resources I should get window to put login and password - why I dont have it ? > > > > Are you using security=share or user? Please post your smb.conf without > comments. > > --Sadique > > > here is "ls" > > root@vslack:~# ls -l /home/ > > drwxr-xr-x 3 pcguest pcguest 4096 2008-01-30 21:30 pub/ > > drwxr-xr-x 4 userx users 4096 2008-02-02 18:33 pub2/ > > > > What is important !!! > > Windows Workstations from witch I try to login hasnt account "userx". > > The Windows enviroment is only workgroup. And each station has its own login. > > Each time someone want to access /pub2 then window asking for login and passwd should apear. > > > > > > >
> Please post your smb.conf without comments.Is there a command to generate this output? -- Best regards, Charles
On Feb 4, 2008 5:48 PM, Charles Marcus <CMarcus@media-brokers.com> wrote:> > Please post your smb.conf without comments. > > Is there a command to generate this output? >There probably is a better way but this is the first thing I can think of: grep -v ^# /etc/samba/smb.conf John