[SuSE Linux] access denied when writing to shared files via samba
I am trying to create files/copy files to a shared directory from the samba server. Ikee getting access denied! messages. However I can create files in my home Directory. I have no Idea why I cant write to the samba shared Directorys ??<BR> <BR> Here is the smb.conf file<BR> <BR> <BR> <BIG>[global]<BR> workgroup = workgroup<BR> guest account = nobody<BR> keep alive = 30<BR> os level = 2<BR> security = user<BR> printing = bsd<BR> printcap name = /etc/printcap<BR> load printers = yes<BR> <BR> ; Please uncomment the following entry and replace the <BR> ; ip number and netmask with the correct numbers for<BR> ; your ethernet interface.<BR> ; interfaces = 10.20.30.1/255.0.0.0<BR> <BR> <BR> ; If you want Samba to act as a wins server, please set<BR> ; 'wins support = yes'<BR> wins support = no<BR> <BR> ; If you want Samba to use an existing wins server,<BR> ; please uncomment the following line and replace<BR> ; the dummy with the wins server's ip number.<BR> ; wins server = 192.168.1.1<BR> <BR> [homes]<BR> comment = Heimatverzeichnis<BR> browseable = no<BR> read only = no<BR> create mode = 0750<BR> <BR> ; The following share gives all users access to the Server's CD drive,<BR> ; assuming it is mounted under /cd. To enable this share, please remove<BR> ; the semicolons before the lines<BR> ;<BR> [cdrom]<BR> comment = Linux CD-ROM<BR> path = /cdrom<BR> read only = no<BR> locking = no<BR> <BR> [linserv]<BR> comment = linux shared files<BR> path = /linserv<BR> readonly = no<BR> locking = no<BR> <BR> <BR> [test]<BR> comment = testshare<BR> path = /usr/tshare<BR> browseable = yes<BR> read only = no<BR> public = yes<BR> <BR> <BR> [printers]<BR> comment = All Printers<BR> browseable = no<BR> printable = yes<BR> public = no<BR> read only = yes<BR> create mode = 0700<BR> directory = /tmp<BR> <BR> </BIG><BR> <BR> <BR> - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at http://www.suse.com/Support/Doku/FAQ/ and the archiv at http://www.suse.com/Mailinglists/suse-linux-e/index.html
One thing that you may want to check is the linux permissions on the directories that you have set up as shares. Most of the directories created on a Linux system is set up for root/root with the write attribute off for others. You will need to change those shares to chmod 777 in order to enable writing to those areas via samba (either that or set up your users as belonging to group "samba"? Samy Elashmawy wrote:
I am trying to create files/copy files to a shared directory from the samba server. Ikee getting access denied! messages. However I can create files in my home Directory. I have no Idea why I cant write to the samba shared Directorys ??
Here is the smb.conf file
[global] workgroup = workgroup guest account = nobody keep alive = 30 os level = 2 security = user printing = bsd printcap name = /etc/printcap load printers = yes
; Please uncomment the following entry and replace the ; ip number and netmask with the correct numbers for ; your ethernet interface. ; interfaces = 10.20.30.1/255.0.0.0
; If you want Samba to act as a wins server, please set ; 'wins support = yes' wins support = no
; If you want Samba to use an existing wins server, ; please uncomment the following line and replace ; the dummy with the wins server's ip number. ; wins server = 192.168.1.1
[homes] comment = Heimatverzeichnis browseable = no read only = no create mode = 0750
; The following share gives all users access to the Server's CD drive, ; assuming it is mounted under /cd. To enable this share, please remove ; the semicolons before the lines ; [cdrom] comment = Linux CD-ROM path = /cdrom read only = no locking = no
[linserv] comment = linux shared files path = /linserv readonly = no locking = no
[test] comment = testshare path = /usr/tshare browseable = yes read only = no public = yes
[printers] comment = All Printers browseable = no printable = yes public = no read only = yes create mode = 0700 directory = /tmp
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
-- cya l8r Leon McClatchey leonmcclatchey@homemail.com Linux User 78912 (Win95 Box) On-line, adj.: The idea that a human being should always be accessible to a computer. - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
One thing that you may want to check is the linux permissions on the
directories that you have set up as shares. How do you check this ? Can it be deone with MC ?
Most of the directories created on a Linux system is set up for root/root with the write attribute off for >others. You will need to change those shares to chmod 777 in order to enable writing to those areas via samba (either that or set up your users as belonging to group "samba"?
Samy Elashmawy wrote:
I am trying to create files/copy files to a shared directory from the samba server. Ikee getting access denied! messages. However I can create files in my home Directory. I have no Idea why I cant write to the samba shared Directorys ??
Here is the smb.conf file
[global] workgroup = workgroup guest account = nobody keep alive = 30 os level = 2 security = user printing = bsd printcap name = /etc/printcap load printers = yes
; Please uncomment the following entry and replace the ; ip number and netmask with the correct numbers for ; your ethernet interface. ; interfaces = 10.20.30.1/255.0.0.0
; If you want Samba to act as a wins server, please set ; 'wins support = yes' wins support = no
; If you want Samba to use an existing wins server, ; please uncomment the following line and replace ; the dummy with the wins server's ip number. ; wins server = 192.168.1.1
[homes] comment = Heimatverzeichnis browseable = no read only = no create mode = 0750
; The following share gives all users access to the Server's CD drive, ; assuming it is mounted under /cd. To enable this share, please remove ; the semicolons before the lines ; [cdrom] comment = Linux CD-ROM path = /cdrom read only = no locking = no
[linserv] comment = linux shared files path = /linserv readonly = no locking = no
[test] comment = testshare path = /usr/tshare browseable = yes read only = no public = yes
[printers] comment = All Printers browseable = no printable = yes public = no read only = yes create mode = 0700 directory = /tmp
- To get out of this list, please send email to majordomo@suse.com with
Cab you ellaborate some more here. I created two users via yast when installing suse 6 ? They have the same user and passwoord the win95/8 machines. How do you do the chmod thing ? Thanks Samy this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
-- cya l8r Leon McClatchey leonmcclatchey@homemail.com Linux User 78912 (Win95 Box)
On-line, adj.: The idea that a human being should always be accessible to a computer.
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
On Wed, Feb 10, 1999 at 09:50:14AM +0000, Samy Elashmawy wrote:
One thing that you may want to check is the linux permissions on the directories that you have set up as shares.
Yes. You also need to have a few global items that are missing from your config file. lock directory = /var/log/samba/var/locks share modes = yes And from the individual shares. [htdocs] path = /usr/local/etc/httpd/htdocs public = no writable = yes printable = no directory mode = 0775 create mode = 0664 It would probably also be a good idea, if you have a large number of users accessing files, to create a special group that all samba users are in and set the group permissions to write.
Samy Elashmawy wrote:
I am trying to create files/copy files to a shared directory from the samba server. Ikee getting access denied! messages. However I can create files in my home Directory. I have no Idea why I cant write to the samba shared Directorys ??
Here is the smb.conf file
[global] workgroup = workgroup guest account = nobody keep alive = 30 os level = 2 security = user printing = bsd printcap name = /etc/printcap load printers = yes
; Please uncomment the following entry and replace the ; ip number and netmask with the correct numbers for ; your ethernet interface. ; interfaces = 10.20.30.1/255.0.0.0
; If you want Samba to act as a wins server, please set ; 'wins support = yes' wins support = no
; If you want Samba to use an existing wins server, ; please uncomment the following line and replace ; the dummy with the wins server's ip number. ; wins server = 192.168.1.1
[homes] comment = Heimatverzeichnis browseable = no read only = no create mode = 0750
; The following share gives all users access to the Server's CD drive, ; assuming it is mounted under /cd. To enable this share, please remove ; the semicolons before the lines ; [cdrom] comment = Linux CD-ROM path = /cdrom read only = no locking = no
[linserv] comment = linux shared files path = /linserv readonly = no locking = no
[test] comment = testshare path = /usr/tshare browseable = yes read only = no public = yes
[printers] comment = All Printers browseable = no printable = yes public = no read only = yes create mode = 0700 directory = /tmp
-- Brad Shelton bshelton@ole.net On Line Exchange <A HREF="http://ole.net"><A HREF="http://ole.net</A">http://ole.net</A</A>> Detroit News <A HREF="http://detnews.com"><A HREF="http://detnews.com</A">http://detnews.com</A</A>> - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Samy Elashmawy wrote:
One thing that you may want to check is the linux permissions on the directories that you have set up as shares.
How do you check this ? Can it be deone with MC ?
As a matter of fact, for most of my File Browsing tools, I do use MC here and it is very easy to see at first glance what the permissions are. Just open the info window (Ctrl-X, I) and you will see who the owner is, the group, and the file/directory permissions as well as the size, create and access dates. Also, on the bottom of the screen, the file permissions do show up whenever you put your curser on a file or directory. Here you can also see where the true fle/directory that your symlinks are pointing to:-) I know I ran into that problem on a couple of file areas (mainly when I tried to save a file I was downloading into a share that was set up for no write access unless you were either the owner or belonged to the group, when I went in as root and changed those permissions, the shares behaved more like I wanted them to:-) -- cya l8r Leon McClatchey <A HREF="mailto:leonmcclatchey@homemail.com">mailto:leonmcclatchey@homemail.com</A> Linux User 78912 (Linux Box) Hlade's Law: If you have a difficult task, give it to a lazy person -- they will find an easier way to do it. - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Samy Elashmawy wrote:
(either that or set up your users as belonging to group "samba"?
Cab you ellaborate some more here. I created two users via yast when installing suse 6 ? They have the same user and passwoord the win95/8 machines. How do you do the chmod thing ?
I've got pretty much the same set up here, all my users (mostly family) has the same userid and password on both the linux box and the win95 box (BTW, I'm still running Suse 5.1 here, though I have updated some of the packages since my original installation, For instance Samba 2.0 and diald .98?). At any rate, as far as my handling users and groups goes, I do most of that (if not all) via Yast, since it is so easy to Create/Select a group, and then move to the users area and use F3 to pick what users you want to have in that group. As far as my handling ownerships of files and directories, I'm a long time user of Norton Commander for Dos, and I've found that the Midnight Commander in Linux is an excellent substitute (with quite a bit more power). So, I just select the files I want to change ownerships on and then pull down the menu to chmod them (sometimes however, advanced chown works better as it allows you to set both ownerships and access rights at one "fell stroke":=).>> create mode = 0700 -- cya l8r Leon McClatchey <A HREF="mailto:leonmcclatchey@homemail.com">mailto:leonmcclatchey@homemail.com</A> Linux User 78912 (Linux Box) Hlade's Law: If you have a difficult task, give it to a lazy person -- they will find an easier way to do it. - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
participants (3)
-
bshelton-suse-linux@ole.net
-
leonmcclatchey@homemail.com
-
samelash@ix.netcom.com