Thomas Janker
2000-Jan-27  12:06 UTC
Files have 555 and they are deletable or is it a bug ?
Hello !
I've a problem with files which are set to 0555.
For example: two users (user1 and user2)
             two groups (usergroup1 usergroup2)
/daten/rechner/comp1 is set to 777.
User1 creates a file (test.txt) in the [files] share, which is correctly
set to 0555. It's owner is user1 and it's group is usergroup1.
Now user2 from usergroup2, who can correctly read but not edit test.txt,
can delete this file. I think the reason for this is the
/daten/rechner/comp1 directory, which is set to 777.
Is there any option that permits a not owner to delete files set to
0755, in direcorys set to 0777?
Here's al listing of my smb.conf:
[global]
	workgroup = SAMBA
	netbios name = SERVER
	map to guest = Bad User
	keepalive = 30
	socket options = TCP_NODELAY
	os level = 2
	security = USER
	password level = 0
[files]
	comment = Rechner_eigener_Share
	path = /daten/rechner/comp1
	readonly = no
	force create mode = 0755
        create mode = 0755
        force directory mode = 0755
        directory mode = 0755
	guest ok = Yes
	locking = Yes
	delete readonly = no
	public = yes
	browsable = yes
Thanks in advance
Thomas Janker
-- 
                                                           ,,,,
                                                           (oo)
------------------------------------------------------o0O--(_)--O0o-
| Paranoia is    | Thomas Janker 		       /       /
| the belief in  | 				      /       /
| a hidden order | tom@janker.de		     /       /
| behind the     |      			    /   o   / 
| visible        |                                Oooo    oooO
--------------------------------------------------) /-----) /-------
						 (_/     (_/
Giulio Orsero
2000-Jan-27  12:36 UTC
Files have 555 and they are deletable or is it a bug ?
On Thu, 27 Jan 2000 23:09:46 +1100, hai scritto:>Now user2 from usergroup2, who can correctly read but not edit test.txt, >can delete this file. I think the reason for this is the >/daten/rechner/comp1 directory, which is set to 777. >Is there any option that permits a not owner to delete files set to >0755, in direcorys set to 0777?Have you tried chmod 1777 /daten/rechner/comp1 ? -- giulioo@pobox.com
Thomas Janker
2000-Jan-27  12:55 UTC
Files have 555 and they are deletable or is it a bug ?
Sorry, My Question is: Is there any option that forbids a not owner to delete files set to 0755, in direcorys set to 0777? Thomas Janker schrieb:> > Hello ! > > I've a problem with files which are set to 0555. > For example: two users (user1 and user2) > two groups (usergroup1 usergroup2) > /daten/rechner/comp1 is set to 777. > User1 creates a file (test.txt) in the [files] share, which is correctly > set to 0555. It's owner is user1 and it's group is usergroup1. > Now user2 from usergroup2, who can correctly read but not edit test.txt, > can delete this file. I think the reason for this is the > /daten/rechner/comp1 directory, which is set to 777. > Is there any option that permits a not owner to delete files set to > 0755, in direcorys set to 0777? > > Here's al listing of my smb.conf: > > [global] > workgroup = SAMBA > netbios name = SERVER > map to guest = Bad User > keepalive = 30 > socket options = TCP_NODELAY > os level = 2 > security = USER > password level = 0 > > [files] > comment = Rechner_eigener_Share > path = /daten/rechner/comp1 > readonly = no > force create mode = 0755 > create mode = 0755 > force directory mode = 0755 > directory mode = 0755 > guest ok = Yes > locking = Yes > delete readonly = no > public = yes > browsable = yes > > Thanks in advance > > Thomas Janker > > -- > ,,,, > (oo) > ------------------------------------------------------o0O--(_)--O0o- > | Paranoia is | Thomas Janker / / > | the belief in | / / > | a hidden order | tom@janker.de / / > | behind the | / o / > | visible | Oooo oooO > --------------------------------------------------) /-----) /------- > (_/ (_/-- ?,??,????`????,??,????`????,??,????`????,??,????`???????`????,??,???? ,,,, (oo) ------------------------------------------------------o0O--(_)--O0o- | Paranoia is | Thomas Janker / / | the belief in | / / | a hidden order | tom@janker.de / / | behind the | / o / | visible | http://www.janker.de Oooo oooO --------------------------------------------------) /-----) /------- (_/ (_/