[Samba] per user smb.conf

Tom Schaefer schaefert at tomcat.umsl.edu
Mon Sep 29 20:40:21 GMT 2003


No offense, I mean I like the creativity of what you are doing, but on the other hand this strikes me as an incredibly stupid security risk.  Has it occured to you that a user could stick something like the following in her .smb.conf file?...

[owned]
path = /        
valid users = %U
force user = root
writeable = yes

Tom Schaefer
UNIX Administrator
University of Missouri Saint Louis


On Sun, 28 Sep 2003 18:34:20 +0200
LeVA <leva at az.isten.hu> wrote:

> LeVA wrote:
> > Tom Dickson wrote:
> > 
> >> -----BEGIN PGP SIGNED MESSAGE-----
> >> Hash: SHA1
> >>
> >> No. Samba will check (and reload if necessary) your smb.conf once a
> >> minute, I think.
> > 
> > 
> > Hi!
> > 
> > Thanks! This is realy works and it's great! But :) do you know a
> > solution that is done automagicaly. You know now the root has to add
> > this include line for each user. And there are realy a lot of users, and
> > and it's a lot work (adding an include line per a user). Is there a way
> > to setup this "user maintained" sharing with a single line. I mean for
> > example:
> > 
> > include = /home/$alluser/.smb.conf (or something like that)
> > 
> > Thanks!
> > 
> > Daniel
> 
> Sorry! I have already found the answer for this question. I have to add 
> the above include line with uppercased U. Like /home/%U/.smb.conf, 
> instead /home/%u/.smb.conf.
> 
> Anyway thanks for helping me to solve this problem!
> 
> Daniel
> 
> 
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba
> 



More information about the samba mailing list