Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-26-2006, 07:09 AM   #1
Registered: Sep 2002
Location: Perth Australia
Distribution: OpenWRT, debian, Ubuntu
Posts: 135
Blog Entries: 18

Rep: Reputation: 15
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:

# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2005-09-13
	workgroup = WARD
	printing = cups
	printcap name = cups
	printcap cache time = 750
	cups options = raw
	map to guest = Bad User
	include = /etc/samba/dhcp.conf
	logon path = \\%L\profiles\.msprofile
	logon home = \\%L\%U\.9xprofile
	logon drive = P:
	add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
	domain logons = No
	domain master = No
	security = share

## Share disabled by YaST
# [homes]
#	comment = Home Directories
#	valid users = %S
#	browseable = No
#	read only = No
#	inherit acls = Yes

## Share disabled by YaST
# [profiles]
#	comment = Network Profiles Service
#	path = %H
#	read only = No
#	store dos attributes = Yes
#	create mask = 0600
#	directory mask = 0700

## Share disabled by YaST
# [users]
#	comment = All users
#	path = /home
#	read only = No
#	inherit acls = Yes
#	veto files = /aquota.user/groups/shares/

## Share disabled by YaST
# [groups]
#	comment = All groups
#	path = /home/groups
#	read only = No
#	inherit acls = Yes
	comment = All Printers
	path = /var/tmp
	printable = Yes
	create mask = 0600
	browseable = No
	comment = Printer Drivers
	path = /var/lib/samba/drivers
	write list = @ntadmin root
	force group = ntadmin
	create mask = 0664
	directory mask = 0775

## Share disabled by YaST
# [netlogon]

	comment = store1
	inherit acls = Yes
	path = /store1/
	read only = No
This allowed me to create files and folders, but I'm unable to delete the folders.

	guest ok = Yes
	force group = nobody
	force user = nobody
	create mode = 0777
to store1 doesn't fix it. The directory /store1/ is writable to everyone and anyone. At one point I thought I had got it right, so I tried copying a folder with content over, and the folder got created (still unable to delete though) but the files within it were denied access.

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
Old 01-27-2006, 04:35 AM   #2
Senior Member
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,481

Rep: Reputation: 88

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:


netbios name = stefan
workgroup = GOEDEHOOP10
security = share
log file = /var/log/samba.log
log level = 1
wins support = yes
domain logons = no
logon drive = f:
logon home = \\stefan\%U
os level = 99
preferred master = yes
local master = yes
hosts allow =
encrypt passwords = yes
browseable = yes
lanman auth = yes
lm announce = yes

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.
Old 01-27-2006, 08:01 AM   #3
Registered: Sep 2002
Location: Perth Australia
Distribution: OpenWRT, debian, Ubuntu
Posts: 135
Blog Entries: 18

Original Poster
Rep: Reputation: 15
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
Old 01-29-2006, 05:57 AM   #4
Registered: Sep 2002
Location: Perth Australia
Distribution: OpenWRT, debian, Ubuntu
Posts: 135
Blog Entries: 18

Original Poster
Rep: Reputation: 15
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
Old 02-04-2006, 05:41 AM   #5
Registered: Sep 2002
Location: Perth Australia
Distribution: OpenWRT, debian, Ubuntu
Posts: 135
Blog Entries: 18

Original Poster
Rep: Reputation: 15
I tried Fedora Core 4 and followed the tutorial at
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).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba can create new files and folders but access denied in any new folders k.king Linux - Networking 2 01-15-2006 07:14 AM
Can't delete folders from Windows Tenover Linux - Networking 8 12-24-2005 12:55 AM
Can't delete Folders. duffmckagan SUSE / openSUSE 1 09-19-2005 12:09 PM
Samba roaming profiles - can't delete folders from desktop Mr2001 Linux - Networking 6 01-10-2004 06:35 AM
Can you delete folders after ./configure ? iLLuSionZ Linux - Newbie 2 11-19-2003 08:39 PM

All times are GMT -5. The time now is 10:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration