> ... > > Yes, i got the root access and need to modify the > smb.conf from a non-root account. > > > > > * Using the existing samba web administration interface is not > > possible - even if automated. > > This is true, because i'm making a script to create > new printers automagically in the samba: when > you install a new CUPS printer, the script create > this printer in smb.conf.
Interesting... it stuck me that perhaps someone had already come up with a solution: http://www.linuxprinting.org/kpfeifle/LinuxKongress2002/Tutorial/IX.CUPS-Samba/IX.Samba-HOWTO-Collection-Chapter-7.html as a result of searching for "CUPS Samba" on google. It is amazing what google can find. > > I would consider changing the group of smb.conf to say "lp", > > then the permissions to 664. That would probably be better > > than any suid program. > > Yes, i had consider this option too, maybe this can be the better > solution, but what do you say about a C wrapper? Depends on your knowledge of C security issues. A carefully written C wrapper is going to be more secure than a carefully written Perl script. Jonathan Paton -- #!perl $J=' 'x25 ;for (qq< 1+10 9+14 5-10 50-9 7+13 2-18 6+13 17+6 02+1 2-10 00+4 00+8 3-13 3+12 01-5 2-10 01+1 03+4 00+4 00+8 1-21 01+1 00+5 01-7 >=~/ \S\S \S\S /gx) {m/( \d+) (.+) /x,, vec$ J,$p +=$2 ,8,= $c+= +$1} warn $J,, -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>