Bluehost.com Web Hosting $6.95

Re: [Samba] How to delete NON-EMPTY directories through a Samba share?

This is a discussion on Re: [Samba] How to delete NON-EMPTY directories through a Samba share? within the Samba forums, part of the Networking and Network Related category; Hi, The shared folder is owned by root:products_admin drwxrwsr-x 2 root products_admins 4096 Feb 13 07:56 data ...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-14-2006
Sandor Balogh
 
Posts: n/a
Default Re: [Samba] How to delete NON-EMPTY directories through a Samba share?

Hi,

The shared folder is owned by root:products_admin
drwxrwsr-x 2 root products_admins 4096 Feb 13 07:56 data

This directory contains another directory created through his samba share
drwxrwsr-x 2 bas products_admins 4096 Feb 14 09:08
a_new_directory

As you can see, the directory is owned by user bas (that would be me) and b=
y
the group products_admin.
User bas is member of group products_admin.

The content of directory a_new_directory:
-rwxrwxr-x 1 bas products_admins 6769 Dec 12 10:14 softice.txt

I am trying to delete the directory with the same user bas, but this only
succeeds when the directory is empty. Still I can rename it independently o=
f
it's content.

I know that in UNIX world, you can delete a folder which has some contents,
only if you delete it's contents recursively. This should be specified in
command line using option -R (-r). By default UNIX does not ask you if you
want to delete the content of the directory. It's just give you an error
message saying that wht are you trying to delete is a directory (he thinks
that you don't kno that :)) I think here is the same kind of problem.

Thanks,
Sandor


On 2/14/06, Louis van Belle <louis@van-belle.nl> wrote:
>
> most likely the rights ( owner ) of the folder is not
> the users u used to deleted.
>
> This is not but, just a rights problem.
>
> Louis
>
>
> >-----Oorspronkelijk bericht-----
> >Van: samba-bounces+louis=3Dvan-belle.nl@lists.samba.org
> >[mailto: samba-bounces+louis=3Dvan-belle.nl@lists.samba.org]
> >Namens Sandor Balogh
> >Verzonden: maandag 13 februari 2006 17:31
> >Aan: samba@lists.samba.org
> >Onderwerp: [Samba] How to delete NON-EMPTY directories through
> >a Samba share?
> >
> >Hi all,
> >
> >I have setup a Samba server as file and print server. Everything works
> >perfectly, I can print, I can write, delete files through
> >Samba. But, the
> >only thing that does not work is to delete a NON-EMPTY
> >directory. No error
> >message received, just don't want to delete it. As soon as I delete all
> >files from the directory, then the directory can be deleted
> >too. The problem
> >is recursive for subdirectories. Just think how awful is to delete a
> >directory with lots of subdirectories. I don't think it's a permission
> >problem (it can't be) and I could't find any posts on this
> >problem over the
> >internet.
> >
> >Thanks for help,
> >Sandor
> >--
> >To unsubscribe from this list go to the following URL and read the
> >instructions: https://lists.samba.org/mailman/listinfo/samba
> >

>
>

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:55 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0