Samba - can't delete remote folders ?
I'm using OpenSuSE 10, and wanting to set up a samba server.
Using the basic file, I've done an anonymous config: Code:
# smb.conf is the main Samba configuration file. You find a full commented Adding Code:
guest ok = Yes It's a home LAN, I'm not concerned about security (stuck behind an IPCop firewall). Need to take a break from it now ;p If anyone has ideas, I'll try them out :) |
Hi
Well, here is my smb.conf that allows users to come in over the network and delete files on my system in the /mnt/win/shared folder: [global] netbios name = stefan workgroup = GOEDEHOOP10 security = share log file = /var/log/samba.log log level = 1 socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=16384 SO_SNDBUF=16384 wins support = yes domain logons = no logon drive = f: logon home = \\stefan\%U os level = 99 preferred master = yes local master = yes hosts allow = 169.254.255.10 169.254.255.11 169.254.255.20 169.254.255.30 127.0.0.1 169.254.255.40 169.254.255.50 169.254.255.60 169.254.255.70 169.254.255.80 encrypt passwords = yes browseable = yes lanman auth = yes lm announce = yes [shared] path = /mnt/win/shared guest ok = yes writeable = yes create mode = 0666 directory mode = 0777 browseable = yes public = yes You'll note that the only major difference in the share definition (at least as far as I can see) is that I also have a "create mode" line - thought I doubt that is the problem. Anyway, try the above settings, and see what happens. |
I see you're using browser master options with lan manager - that's more than I want, but I don't know what is selected by default.
I tried the create mode etc and there still no change in behaviour. What is /mnt/win/shared formated as ? It's occurred to me that in the past when I've made use of windows shares, it's been to windows shares on a win98 or xp box that's using a FAT32 formatted drive, so I've never had to contend with user/group permissions (ie this is the first time I've set up samba ;)). I'm wondering if formatting the share as FAT32 will sort this out, but if I go this way, I lose features like journalling. I'm going to do another install (I think I know just enough to screw things up and not enough to correct the problems, so it's easier for now) and try http://www.informit.com/articles/article.asp?p=328802 |
I tried the informit article, but still no luck, so I'm missing something.
Since then, I've been looking at some liveCD/minimal installs, and found FreeNAS, NASLite (NASLight ?) and OpenFiler. FreeNAS is based on BSD, and the fxp Intel nic driver appears to be broken (not sure how to confirm this). NASLite has a free download, but requires formatting a floppy as 1722 Kb (not game to try on Mandrake 10, doesn't seem to be an obvious way to do it). They charge for the boot cd that allows the simple creation of the floppy ;p OpenFiler is much larger, and looks suitable for a corporation; requires an external server to authenticate against (eg LDAP), which is much overkill for my needs. May do more experimentation later, but so far I've seem to have had a bad run of luck with this ;) |
I tried Fedora Core 4 and followed the tutorial at
http://www.fedoraforum.org/forum/showthread.php?t=19967 and I still couldn't delete a folder. So I decided there had to be something screwy with the client, and it seems that if I select to browse the mounted share in konqueror after it's selected in smbk4, I get the error. I'm using smb4k 0.4.0, and there don't appear to be any updates via Mandrake for it. If I browse straight from from konqueror, I can do it fine, both under OpenSuse 10 and Mandrake 10.1 - I noticed that the files look like they're stamped with the client user as owner, but on the server they're as per the smb.conf file. My next step (finally) is to install the second drive and make it the shared area (so far it's been under the home folder, just to check that I can get things working). |
All times are GMT -5. The time now is 03:37 PM. |