Hi, I have a very frustrating problem and I can't seem to find a solution. I am running redhat 8.0GPL and samba 2.2.8 on two linux boxes. The first linux box is my storage (used by multiple pc's). The second is my web-server running apache and php. The web-server recieves files which are meant to be stored to the first linux box and processed by other computers on the network. The following is the smb.conf file. [global] encrypt passwords = yes guest account = smbuser hide unreadable = yes hide dot files = yes log level = 3 log file = /var/log/samba/%m.log netbios name = myserver security = user server string = "Development Storage" socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192 time server = yes wins support = yes workgroup = myworkgroup [webdocs] browseable = yes create mode = 0666 directory mode = 0777 directory mask = 0775 guest ok = yes guest only = yes path = /share/webdocuments read only = no I can connect to the webdocs directory from a windows box, browse read, edit and create files/directories. on the second linux box I use automout as follows file:auto.master /share /etc/auto.share --timeout=600 file:auto.share webdocs -fstype=smbfs,username=smbuser,password=smbuser://192.168.69.202/we bdocs The problem is the automount seems to work, the directory is available and I can browse, view and edit the files. However I cannot create files in the in the share unless I am logged in as root. This means that I cannot recieve files with PHP and push them off to the storage server. I have tried different settings all to no avail. I have tried everything I can think of and can't get this to work. Can anybody help me. Thanks.
Barry, Christopher
2003-Mar-25 05:27 UTC
[Samba] Mapping samba shares to a second linux box
have you tried to hard mount it as root? Why do you need the automounter? mount -t smbfs //192.168.69.202/webdocs /path/to/webdocs Also, what are the actual unix permissions on the share's unix folder? It's very odd that you can edit as smbuser, but not create. -- Christopher Barry Manager of Information Systems InfiniCon Systems http://www.infiniconsys.com -----Original Message----- From: Andrew Niven [mailto:niven@cdxit.com] Sent: Monday, March 24, 2003 11:44 PM To: samba@lists.samba.org Subject: [Samba] Mapping samba shares to a second linux box Hi, I have a very frustrating problem and I can't seem to find a solution. I am running redhat 8.0GPL and samba 2.2.8 on two linux boxes. The first linux box is my storage (used by multiple pc's). The second is my web-server running apache and php. The web-server recieves files which are meant to be stored to the first linux box and processed by other computers on the network. The following is the smb.conf file. [global] encrypt passwords = yes guest account = smbuser hide unreadable = yes hide dot files = yes log level = 3 log file = /var/log/samba/%m.log netbios name = myserver security = user server string = "Development Storage" socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192 time server = yes wins support = yes workgroup = myworkgroup [webdocs] browseable = yes create mode = 0666 directory mode = 0777 directory mask = 0775 guest ok = yes guest only = yes path = /share/webdocuments read only = no I can connect to the webdocs directory from a windows box, browse read, edit and create files/directories. on the second linux box I use automout as follows file:auto.master /share /etc/auto.share --timeout=600 file:auto.share webdocs -fstype=smbfs,username=smbuser,password=smbuser://192.168.69.202/we bdocs The problem is the automount seems to work, the directory is available and I can browse, view and edit the files. However I cannot create files in the in the share unless I am logged in as root. This means that I cannot recieve files with PHP and push them off to the storage server. I have tried different settings all to no avail. I have tried everything I can think of and can't get this to work. Can anybody help me. Thanks. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Barry, Christopher
2003-Mar-25 05:48 UTC
[Samba] Re: Mapping samba shares to a second linux box
chown smbuser webdocs try that. -- Christopher Barry Manager of Information Systems InfiniCon Systems http://www.infiniconsys.com office: 610.233.4747 direct: 610.233.4870 cell: 267.879.8321 -----Original Message----- From: Andrew Niven [mailto:niven@cdxit.com] Sent: Tuesday, March 25, 2003 12:44 AM To: samba@lists.samba.org Subject: [Samba] Re: Mapping samba shares to a second linux box Thanks for the quick reply. As root everything works correctly. The problem is I am receiving files in the apache server and need to store them on the a storage drive so that they can be processed by other computers. What I can't understand is that everything works correctly from windows. I log in as smbuser and have full access to everything I require. It's only the linux share that fails with automount. The permissions on the automount are as follows [niven@devweb niven]$ ls -la /share total 5 drwxr-xr-x 3 root root 0 Mar 25 15:03 . drwxr-xr-x 20 root root 1024 Mar 25 09:02 .. drwxr-xr-x 1 root root 4096 Mar 25 2003 webdocs If I'm reading this correctly then only root has write access but the frustrating thing is how do I get public access to this share when not logged in as root. "Barry, Christopher" <cbarry@infiniconsys.com> wrote in message news:08628CA53C6CBA4ABAFB9E808A5214CB0142B631@mercury.infiniconsys.com... have you tried to hard mount it as root? Why do you need the automounter? mount -t smbfs //192.168.69.202/webdocs /path/to/webdocs Also, what are the actual unix permissions on the share's unix folder? It's very odd that you can edit as smbuser, but not create. -- Christopher Barry Manager of Information Systems InfiniCon Systems http://www.infiniconsys.com -----Original Message----- From: Andrew Niven [mailto:niven@cdxit.com] Sent: Monday, March 24, 2003 11:44 PM To: samba@lists.samba.org Subject: [Samba] Mapping samba shares to a second linux box Hi, I have a very frustrating problem and I can't seem to find a solution. I am running redhat 8.0GPL and samba 2.2.8 on two linux boxes. The first linux box is my storage (used by multiple pc's). The second is my web-server running apache and php. The web-server recieves files which are meant to be stored to the first linux box and processed by other computers on the network. The following is the smb.conf file. [global] encrypt passwords = yes guest account = smbuser hide unreadable = yes hide dot files = yes log level = 3 log file = /var/log/samba/%m.log netbios name = myserver security = user server string = "Development Storage" socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192 time server = yes wins support = yes workgroup = myworkgroup [webdocs] browseable = yes create mode = 0666 directory mode = 0777 directory mask = 0775 guest ok = yes guest only = yes path = /share/webdocuments read only = no I can connect to the webdocs directory from a windows box, browse read, edit and create files/directories. on the second linux box I use automout as follows file:auto.master /share /etc/auto.share --timeout=600 file:auto.share webdocs -fstype=smbfs,username=smbuser,password=smbuser://192.168.69.202/we bdocs The problem is the automount seems to work, the directory is available and I can browse, view and edit the files. However I cannot create files in the in the share unless I am logged in as root. This means that I cannot recieve files with PHP and push them off to the storage server. I have tried different settings all to no avail. I have tried everything I can think of and can't get this to work. Can anybody help me. Thanks. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Bradley W. Langhorst
2003-Mar-25 14:14 UTC
[Samba] Mapping samba shares to a second linux box
On Mon, 2003-03-24 at 23:44, Andrew Niven wrote:> > I have tried different settings all to no avail. I have tried everything I > can think of and can't get this to work.if you su to the guest user (smbuser) are you able to do what you want on the storage machine? (ie remove samba from the test) brad -- Bradley W. Langhorst <brad@langhorst.com>