Hello, I am using Samba shares as a way for my users to publish files from their Windows XP PC's to my Apache Web Server on Red Hat Linux. The username I use for Apache is apache and it has full read,write and execute access on all the files within my webserver root directory. In the Samba Shares I use force user = apache so this means that any files created using the share actually get apache as the owner. However, this actually gives the person who connects using the samba share the power of the user apache which means they can change anything. I dont want this. I just want to set it so that the owner of any files created by using the samba share is set as apache. I do not want people to have the power of apache! Is this possible? Or does anyone know a better way of publishing to the apache webserver? PLease help, thanks Mr. Gerard O'Reilly Intranet Manager Siam Stars Ltd/ Thai-Belgium Industrial Co. Ltd 21/6 Moo 3, Soi Kayha Bangbua, Viphavadee Rangsit Road, 60 Talad Bangkhen, Laksi Bangkok 10210 Tel: 02-561-4649 or 02-940-8750 Fax: (66-2) 5611486 -------------- next part -------------- A non-text attachment was scrubbed... Name: Gerard O'Reilly.vcf Type: text/x-vcard Size: 762 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20021105/c4a16745/GerardOReilly.vcf
You will need ACL support. info wrote:> > Hello, > I am using Samba shares as a way for my users to publish files from their > Windows XP PC's to my Apache Web Server on Red Hat Linux. > > The username I use for Apache is apache and it has full read,write and > execute access on all the files within my webserver root directory. In the > Samba Shares I use force user = apache so this means that any files created > using the share actually get apache as the owner. However, this actually > gives the person who connects using the samba share the power of the user > apache which means they can change anything. I dont want this. I just want > to set it so that the owner of any files created by using the samba share is > set as apache. I do not want people to have the power of apache! Is this > possible? > > Or does anyone know a better way of publishing to the apache webserver? > PLease help, thanks > > Mr. Gerard O'Reilly > Intranet Manager > Siam Stars Ltd/ Thai-Belgium Industrial Co. Ltd > 21/6 Moo 3, Soi Kayha Bangbua, > Viphavadee Rangsit Road, > 60 Talad Bangkhen, > Laksi Bangkok 10210 > Tel: 02-561-4649 or 02-940-8750 > Fax: (66-2) 5611486
Why you dont use ftp? Is more flexible as samba to web. When you must use samba try disable force user and create cron job to change owner on new files to apache. It creates flexibility to users can change uploaded files only by its owner and only by time to cron job. After this only admin user can change or delete.> ----- Original Message ----- > From: "info" <info@ssltbivdc.com> > To: <samba@lists.samba.org> > Sent: Tuesday, November 05, 2002 1:21 AM > Subject: [Samba] Force User - > > > > Hello, > > I am using Samba shares as a way for my users to publish files fromtheir> > Windows XP PC's to my Apache Web Server on Red Hat Linux. > > > > The username I use for Apache is apache and it has full read,write and > > execute access on all the files within my webserver root directory. In > the > > Samba Shares I use force user = apache so this means that any files > created > > using the share actually get apache as the owner. However, thisactually> > gives the person who connects using the samba share the power of theuser> > apache which means they can change anything. I dont want this. I just > want > > to set it so that the owner of any files created by using the sambashare> is > > set as apache. I do not want people to have the power of apache! Isthis> > possible? > > > > Or does anyone know a better way of publishing to the apache webserver? > > PLease help, thanks > > > > > > Mr. Gerard O'Reilly > > Intranet Manager > > Siam Stars Ltd/ Thai-Belgium Industrial Co. Ltd > > 21/6 Moo 3, Soi Kayha Bangbua, > > Viphavadee Rangsit Road, > > 60 Talad Bangkhen, > > Laksi Bangkok 10210 > > Tel: 02-561-4649 or 02-940-8750 > > Fax: (66-2) 5611486 > > >